diff --git a/src/prefix.cpp b/src/prefix.cpp
index 8c1dd4f0022857dff53fef33a80e8c10f77c961b..92409a7d2c3dc3aff3e60c7c89b9a8acff1eb221 100644 (file)
--- a/src/prefix.cpp
+++ b/src/prefix.cpp
/**
* Return the directory of the .exe that is currently running
*/
-static Glib::ustring win32_getExePath()
+Glib::ustring win32_getExePath()
{
gunichar2 path[2048];
- GetModuleFileNameW(NULL, (WCHAR*) path, 2048);
- gchar *exe = g_utf16_to_utf8(path, -1, NULL, NULL, NULL);
+ GetModuleFileNameW(0, (WCHAR*) path, 2048);
+ gchar *exe = g_utf16_to_utf8(path, -1, 0,0,0);
gchar *dir = g_path_get_dirname(exe);
Glib::ustring ret = dir;
g_free(dir);
*/
char *win32_relative_path(const char *childPath)
{
- static char *returnPath = NULL;
+ static char *returnPath = 0;
if (!childPath)
childPath = "";
Glib::ustring resourcePath = win32_getResourcePath(childPath);