mirror of
https://github.com/matrix-construct/construct
synced 2024-12-29 00:44:17 +01:00
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)
|
||||
{
|
||||
static char path_buf[MAX_PATH];
|
||||
GetModuleFileName(NULL, exepath, MAX_PATH);
|
||||
GetModuleFileName(NULL, path_buf, MAX_PATH);
|
||||
return path_buf;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue