cmdline and realcmds might not be pointing to the same string.

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3466 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
eccles 2004-02-05 14:06:05 +00:00
parent d07ec8774f
commit 5c83974226

View file

@ -156,7 +156,8 @@ int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInst,LPSTR lpszCmdParam,
#ifdef NSIS_CONFIG_UNINSTALL_SUPPORT
if (g_is_uninstaller)
{
char *p=cmdline;
char *p=realcmds;
while (*p) p++;
while (p >= realcmds && (p[0] != '_' || p[1] != '?' || p[2] != '=')) p--;
@ -271,4 +272,4 @@ void NSISCALL CleanUp()
// Clean up after plug-ins
doRMDir(state_plugins_dir, 1);
#endif // NSIS_CONFIG_PLUGIN_SUPPORT
}
}