librb: provide rb_path_to_self() on windows

This commit is contained in:
William Pitcock 2016-03-21 21:20:50 -05:00
parent 4d383612d4
commit b7c7f290c7
1 changed files with 1 additions and 1 deletions

View File

@ -619,7 +619,7 @@ const char *
rb_path_to_self(void)
{
static char path_buf[MAX_PATH];
GetModuleFileName(NULL, exepath, MAX_PATH);
GetModuleFileName(NULL, path_buf, MAX_PATH);
return path_buf;
}