We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
OS_Get_Boot_Path
1 parent aaed749 commit 11b46deCopy full SHA for 11b46de
src/os/win32/host-lib.c
@@ -464,15 +464,16 @@ static void *Task_Ready;
464
465
/***********************************************************************
466
**
467
-*/ REBOOL OS_Get_Boot_Path(REBCHR *name)
+*/ REBOOL OS_Get_Boot_Path(REBCHR **name)
468
/*
469
** Used to determine the program file path for REBOL.
470
** This is the path stored in system->options->boot and
471
** it is used for finding default boot files.
472
473
***********************************************************************/
474
{
475
- return (GetModuleFileName(0, name, MAX_FILE_NAME) > 0);
+ *name = MAKE_STR(MAX_FILE_NAME);
476
+ return (GetModuleFileName(0, *name, MAX_FILE_NAME) > 0);
477
}
478
479
0 commit comments