Skip to content

Commit 11b46de

Browse files
committed
FEAT: Windows version of OS_Get_Boot_Path function
1 parent aaed749 commit 11b46de

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/os/win32/host-lib.c

+3-2
Original file line numberDiff line numberDiff line change
@@ -464,15 +464,16 @@ static void *Task_Ready;
464464

465465
/***********************************************************************
466466
**
467-
*/ REBOOL OS_Get_Boot_Path(REBCHR *name)
467+
*/ REBOOL OS_Get_Boot_Path(REBCHR **name)
468468
/*
469469
** Used to determine the program file path for REBOL.
470470
** This is the path stored in system->options->boot and
471471
** it is used for finding default boot files.
472472
**
473473
***********************************************************************/
474474
{
475-
return (GetModuleFileName(0, name, MAX_FILE_NAME) > 0);
475+
*name = MAKE_STR(MAX_FILE_NAME);
476+
return (GetModuleFileName(0, *name, MAX_FILE_NAME) > 0);
476477
}
477478

478479

0 commit comments

Comments
 (0)