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

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;
}