diff options
Diffstat (limited to 'win32/runperl.c')
-rw-r--r-- | win32/runperl.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/win32/runperl.c b/win32/runperl.c index 20423c7660..1b569d2557 100644 --- a/win32/runperl.c +++ b/win32/runperl.c @@ -44,8 +44,7 @@ main(int argc, char **argv, char **env) char *ptr; GetModuleFileName(NULL, szModuleName, sizeof(szModuleName)); - (void)GetFullPathName(szModuleName, sizeof(szModuleName), - szModuleName, &ptr); + (void)win32_longpath(szModuleName); argv[0] = szModuleName; #endif @@ -93,8 +92,7 @@ main(int argc, char **argv, char **env) char *ptr; GetModuleFileName(NULL, szModuleName, sizeof(szModuleName)); - (void)GetFullPathName(szModuleName, sizeof(szModuleName), - szModuleName, &ptr); + (void)win32_longpath(szModuleName); argv[0] = szModuleName; #endif return RunPerl(argc, argv, env, (void*)0); |