diff --git a/librb/src/win32.c b/librb/src/win32.c index bf0635fd..d9184d97 100644 --- a/librb/src/win32.c +++ b/librb/src/win32.c @@ -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; }