]> git.ipfire.org Git - thirdparty/krb5.git/commitdiff
Call CWinAppEx::InitInstance()
authorKevin Wasserman <kevin.wasserman@painless-security.com>
Wed, 18 Jul 2012 21:32:31 +0000 (17:32 -0400)
committerTom Yu <tlyu@mit.edu>
Wed, 29 Aug 2012 20:28:16 +0000 (16:28 -0400)
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

src/windows/leash/Leash.cpp

index fe2e7e7dacd91415bb14c516151d7b821de3b9d2..25a17de5df3052032940812054d823e1d81b69d7 100644 (file)
@@ -345,6 +345,9 @@ BOOL CLeashApp::InitInstance()
     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));