Skip to content

Commit

Permalink
FEAT: Windows version of OS_Get_Boot_Path function
Browse files Browse the repository at this point in the history
  • Loading branch information
Oldes committed Oct 18, 2021
1 parent aaed749 commit 11b46de
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/os/win32/host-lib.c
Original file line number Diff line number Diff line change
Expand Up @@ -464,15 +464,16 @@ static void *Task_Ready;

/***********************************************************************
**
*/ REBOOL OS_Get_Boot_Path(REBCHR *name)
*/ REBOOL OS_Get_Boot_Path(REBCHR **name)
/*
** Used to determine the program file path for REBOL.
** This is the path stored in system->options->boot and
** it is used for finding default boot files.
**
***********************************************************************/
{
return (GetModuleFileName(0, name, MAX_FILE_NAME) > 0);
*name = MAKE_STR(MAX_FILE_NAME);
return (GetModuleFileName(0, *name, MAX_FILE_NAME) > 0);
}


Expand Down

0 comments on commit 11b46de

Please sign in to comment.