diff --git a/src/pc.c b/src/pc.c index 533a499b5..e7bae2ca5 100644 --- a/src/pc.c +++ b/src/pc.c @@ -368,6 +368,7 @@ pc_init(int argc, wchar_t *argv[]) int c; int cfgp = 0; wchar_t cmdl_cfg_path[2048]; + wchar_t emu_cwd[2048]; /* Grab the executable's full path. */ plat_get_exe_name(exe_path, sizeof(exe_path)-1); @@ -381,7 +382,7 @@ pc_init(int argc, wchar_t *argv[]) * a shortcut (desktop icon), however, the CWD * could have been set to something else. */ - plat_getcwd(cfg_path, sizeof(cfg_path)-1); + plat_getcwd(emu_cwd, sizeof(emu_cwd)-1); for (c=1; c