Skip to content

Commit

Permalink
fix(fs.c, win32): correct nBufferLength parameter for GetCurrentDirec…
Browse files Browse the repository at this point in the history
…toryW
  • Loading branch information
NaitLee authored and divVerent committed Oct 25, 2024
1 parent e80bb97 commit ef5f75a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs.c
Original file line number Diff line number Diff line change
Expand Up @@ -2197,7 +2197,7 @@ static void FS_Init_Dir (void)
#else
// use the working directory
#ifdef WIN32
GetCurrentDirectoryW(sizeof(fs_basedirw), fs_basedirw);
GetCurrentDirectoryW(sizeof(fs_basedirw) / sizeof(*fs_basedirw), fs_basedirw);
NARROW(fs_basedirw, fs_basedir);
#else
getcwd(fs_basedir, sizeof(fs_basedir));
Expand Down

0 comments on commit ef5f75a

Please sign in to comment.