Commit b449bd51 authored by Adi Shavit's avatar Adi Shavit

Clarified code.

parent e25dca21
...@@ -1520,9 +1520,9 @@ static LRESULT CALLBACK HighGUIProc( HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM ...@@ -1520,9 +1520,9 @@ static LRESULT CALLBACK HighGUIProc( HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM
////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////
// if handle is allocated (i.e. != 0) then clean-up. // if handle is allocated (i.e. != 0) then clean-up.
memBM && ::DeleteObject(memBM); if (memBM) ::DeleteObject(memBM);
memDC && ::DeleteDC(memDC); if (memDC) ::DeleteDC(memDC);
hDC && ::ReleaseDC(hwnd, hDC); if (hDC) ::ReleaseDC(hwnd, hDC);
::CloseClipboard(); ::CloseClipboard();
break; break;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment