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:
parent
ff74ffb34b
commit
d08b963619
1 changed files with 2 additions and 3 deletions
|
@ -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 _?=
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue