mirror of
https://github.com/FunkyFr3sh/cnc-ddraw.git
synced 2025-03-25 01:57:47 +01:00
add missing NULL checks
This commit is contained in:
parent
0e173ef6a8
commit
d6b2249c78
@ -1637,7 +1637,7 @@ HWND WINAPI fake_CreateWindowExA(
|
|||||||
|
|
||||||
/* Fallout 1/2 */
|
/* Fallout 1/2 */
|
||||||
if (HIWORD(lpClassName) && _strcmpi(lpClassName, "GNW95 Class") == 0 &&
|
if (HIWORD(lpClassName) && _strcmpi(lpClassName, "GNW95 Class") == 0 &&
|
||||||
strstr(lpWindowName, "FALLOUT"))
|
lpWindowName && strstr(lpWindowName, "FALLOUT"))
|
||||||
{
|
{
|
||||||
/* Workaround for window not showing up in taskbar sometimes */
|
/* Workaround for window not showing up in taskbar sometimes */
|
||||||
dwExStyle |= WS_EX_APPWINDOW;
|
dwExStyle |= WS_EX_APPWINDOW;
|
||||||
@ -1665,7 +1665,7 @@ HWND WINAPI fake_CreateWindowExA(
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Center Lego Loco overlays */
|
/* Center Lego Loco overlays */
|
||||||
if (_strcmpi(lpWindowName, "LEGO LOCO") == 0 &&
|
if (lpWindowName && _strcmpi(lpWindowName, "LEGO LOCO") == 0 &&
|
||||||
g_ddraw.ref && g_ddraw.hwnd && hWndParent == g_ddraw.hwnd &&
|
g_ddraw.ref && g_ddraw.hwnd && hWndParent == g_ddraw.hwnd &&
|
||||||
g_ddraw.width &&
|
g_ddraw.width &&
|
||||||
(dwStyle & WS_POPUP))
|
(dwStyle & WS_POPUP))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user