Without this, AfxGlobalsAddRef() is never called, so AfxGlobalsRelease()
does nothing, causing many leaks and a crash on exit in GdiplusShutdown()
on Vista.
Signed-off-by: Kevin Wasserman <kevin.wasserman@painless-security.com>
(cherry picked from commit
78b3e95e27ee1f53fc9e7cb2efda617ccd761bd7)
ticket: 7306
status: resolved
if (!FirstInstance())
return FALSE;
+ if (!CWinAppEx::InitInstance())
+ return FALSE;
+
//register our unique wnd class name to find it later
WNDCLASS wndcls;
memset(&wndcls, 0, sizeof(WNDCLASS));