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:
parent
d07ec8774f
commit
5c83974226
1 changed files with 3 additions and 2 deletions
|
@ -156,7 +156,8 @@ int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInst,LPSTR lpszCmdParam,
|
||||||
#ifdef NSIS_CONFIG_UNINSTALL_SUPPORT
|
#ifdef NSIS_CONFIG_UNINSTALL_SUPPORT
|
||||||
if (g_is_uninstaller)
|
if (g_is_uninstaller)
|
||||||
{
|
{
|
||||||
char *p=cmdline;
|
char *p=realcmds;
|
||||||
|
while (*p) p++;
|
||||||
|
|
||||||
while (p >= realcmds && (p[0] != '_' || p[1] != '?' || p[2] != '=')) p--;
|
while (p >= realcmds && (p[0] != '_' || p[1] != '?' || p[2] != '=')) p--;
|
||||||
|
|
||||||
|
@ -271,4 +272,4 @@ void NSISCALL CleanUp()
|
||||||
// Clean up after plug-ins
|
// Clean up after plug-ins
|
||||||
doRMDir(state_plugins_dir, 1);
|
doRMDir(state_plugins_dir, 1);
|
||||||
#endif // NSIS_CONFIG_PLUGIN_SUPPORT
|
#endif // NSIS_CONFIG_PLUGIN_SUPPORT
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue