OSDN Git Service
(root)
/
winmerge-jp
/
winmerge-jp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
057c313
)
Fix a crash during exit observed on Windows Vista
author
Jochen Tucht
<jtuc@users.sourceforge.net>
Sun, 26 Oct 2008 10:50:15 +0000
(10:50 +0000)
committer
Jochen Tucht
<jtuc@users.sourceforge.net>
Sun, 26 Oct 2008 10:50:15 +0000
(10:50 +0000)
Externals/heksedit/main.cpp
patch
|
blob
|
history
diff --git
a/Externals/heksedit/main.cpp
b/Externals/heksedit/main.cpp
index
cca78f7
..
f3c4d71
100644
(file)
--- a/
Externals/heksedit/main.cpp
+++ b/
Externals/heksedit/main.cpp
@@
-189,7
+189,7
@@
int WINAPI WinMain(HINSTANCE hIconInstance, HINSTANCE, char *szCmdLine, int)
\r
while (GetMessage(&msg, NULL, 0, 0))
\r
{
\r
- if (!pHexWnd->translate_accelerator(&msg))
\r
+ if (!pHexWnd
|| !pHexWnd
->translate_accelerator(&msg))
\r
{
\r
TranslateMessage(&msg);
\r
DispatchMessage(&msg);
\r
@@
-309,6
+309,7
@@
LRESULT CALLBACK MainWndProc(HWND hwnd, UINT iMsg, WPARAM wParam, LPARAM lParam)
pHexWnd->iWindowHeight = wndpl.rcNormalPosition.bottom - pHexWnd->iWindowY;
\r
pHexWnd->save_ini_data();
\r
DragAcceptFiles(hwndMain, FALSE);
\r
+ pHexWnd = 0;
\r
PostQuitMessage(0);
\r
}
\r
break;
\r