fixed uninstallers (thanks again eccles ;)

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3464 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
kichik 2004-02-04 23:12:54 +00:00
parent ff74ffb34b
commit d08b963619

View file

@ -157,13 +157,12 @@ int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInst,LPSTR lpszCmdParam,
if (g_is_uninstaller)
{
char *p=cmdline;
while (*p) p++;
while (p >= cmdline && (p[0] != '_' || p[1] != '?' || p[2] != '=')) p--;
while (p >= realcmds && (p[0] != '_' || p[1] != '?' || p[2] != '=')) p--;
m_Err = _LANG_UNINSTINITERROR;
if (p >= cmdline)
if (p >= realcmds)
{
*(p-1)=0; // terminate before the " _?="
p+=3; // skip over _?=