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:
snow flurry 2024-02-27 06:38:31 +00:00
parent 4a72ca0f37
commit 9658fb44d6

View file

@ -129,15 +129,6 @@ OverlayWndProc(HWND hWnd,
LPCREATESTRUCT csCreate = (LPCREATESTRUCT)lParam; LPCREATESTRUCT csCreate = (LPCREATESTRUCT)lParam;
if (csCreate && csCreate->lpCreateParams) { if (csCreate && csCreate->lpCreateParams) {
scrn = (Screen *)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); GetRgnBox(scrn->hScreenRgn, &rcScreen);