* want to free() argv after main() returns. As luck would have it,
* Borland's CRT does the right thing to argv[0] already. */
char szModuleName[MAX_PATH];
+ char *ptr;
GetModuleFileName(NULL, szModuleName, sizeof(szModuleName));
+ (void)GetFullPathName(szModuleName, sizeof(szModuleName),
+ szModuleName, &ptr);
argv[0] = szModuleName;
#endif
* want to free() argv after main() returns. As luck would have it,
* Borland's CRT does the right thing to argv[0] already. */
char szModuleName[MAX_PATH];
+ char *ptr;
+
GetModuleFileName(NULL, szModuleName, sizeof(szModuleName));
+ (void)GetFullPathName(szModuleName, sizeof(szModuleName),
+ szModuleName, &ptr);
argv[0] = szModuleName;
#endif
return RunPerl(argc, argv, env, (void*)0);