OverlayWndProc: remove unnecessary NULL check
We already check for NULL before casting scrn, so there's no situation where it'll fail after casting. Mysterious reasons, indeed. git-svn-id: svn://vcs.sdm.2ki.xyz/Grabby/trunk@25 27729192-006e-004d-b9b5-06fbd0ef7001
This commit is contained in:
parent
4a72ca0f37
commit
9658fb44d6
|
@ -129,15 +129,6 @@ OverlayWndProc(HWND hWnd,
|
|||
LPCREATESTRUCT csCreate = (LPCREATESTRUCT)lParam;
|
||||
if (csCreate && csCreate->lpCreateParams) {
|
||||
scrn = (Screen *)csCreate->lpCreateParams;
|
||||
if (!scrn) {
|
||||
// uhhhhhhhhh
|
||||
MessageBox(hWnd,
|
||||
_T("Couldn't get screen info for mysterious reasons !?"),
|
||||
_T("Fatal Error"),
|
||||
MB_OK | MB_ICONERROR);
|
||||
PostQuitMessage(1);
|
||||
return 1;
|
||||
}
|
||||
|
||||
GetRgnBox(scrn->hScreenRgn, &rcScreen);
|
||||
|
||||
|
|
Loading…
Reference in a new issue