Windows: Fix crash when using wmain() and passing a fake argv.
Return true from isArgvModified() when __argv is null (as is the case when using wmain()) indicating arguments are modified. Task-number: QTBUG-47023 Task-number: QTBUG-30330 Change-Id: I44329ed3369cd4db79ba1b7c19303895f67b1616 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
parent
3ebbd5db7b
commit
f1f9489d08
@ -393,7 +393,7 @@ static bool quitLockRefEnabled = true;
|
||||
// GUI apps or when using MinGW due to its globbing.
|
||||
static inline bool isArgvModified(int argc, char **argv)
|
||||
{
|
||||
if (__argc != argc)
|
||||
if (__argc != argc || !__argv /* wmain() */)
|
||||
return true;
|
||||
if (__argv == argv)
|
||||
return false;
|
||||
|
Loading…
Reference in New Issue
Block a user