librb: provide rb_path_to_self() on windows
This commit is contained in:
parent
4d383612d4
commit
b7c7f290c7
1 changed files with 1 additions and 1 deletions
|
@ -619,7 +619,7 @@ const char *
|
||||||
rb_path_to_self(void)
|
rb_path_to_self(void)
|
||||||
{
|
{
|
||||||
static char path_buf[MAX_PATH];
|
static char path_buf[MAX_PATH];
|
||||||
GetModuleFileName(NULL, exepath, MAX_PATH);
|
GetModuleFileName(NULL, path_buf, MAX_PATH);
|
||||||
return path_buf;
|
return path_buf;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue