mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 04:13:34 +00:00
[LOGOFF]
* LocalFree should only be executed if AllocAndLoadString() succeeds. Spotted by Thomas Faber. svn path=/trunk/; revision=65137
This commit is contained in:
@@ -89,9 +89,10 @@ BOOL ParseCommandLine(int argc, TCHAR *argv[])
|
||||
}
|
||||
default:
|
||||
//Invalid parameter detected
|
||||
if (AllocAndLoadString(&lpIllegalMsg, GetModuleHandle(NULL), IDS_ILLEGAL_PARAM))
|
||||
_putts(lpIllegalMsg);
|
||||
LocalFree(lpIllegalMsg);
|
||||
if (AllocAndLoadString(&lpIllegalMsg, GetModuleHandle(NULL), IDS_ILLEGAL_PARAM)) {
|
||||
_putts(lpIllegalMsg);
|
||||
LocalFree(lpIllegalMsg);
|
||||
}
|
||||
return FALSE;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user