From b7c7f290c75087177979a52f432468daf1c825c5 Mon Sep 17 00:00:00 2001 From: William Pitcock Date: Mon, 21 Mar 2016 21:20:50 -0500 Subject: [PATCH] librb: provide rb_path_to_self() on windows --- librb/src/win32.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }