mirror of
https://github.com/FunkyFr3sh/cnc-ddraw.git
synced 2025-03-24 17:49:52 +01:00
#304 add a check for CW_USEDEFAULT just to be sure
This commit is contained in:
parent
36bf42af6f
commit
18c15280ba
@ -1360,8 +1360,15 @@ HWND WINAPI fake_CreateWindowExA(
|
|||||||
/* Limit window size to max surface size (Dune2000 1.02) */
|
/* Limit window size to max surface size (Dune2000 1.02) */
|
||||||
if (dwStyle & WS_POPUP)
|
if (dwStyle & WS_POPUP)
|
||||||
{
|
{
|
||||||
nWidth = min(nWidth, 16384);
|
if (nWidth != CW_USEDEFAULT)
|
||||||
nHeight = min(nHeight, 16384);
|
{
|
||||||
|
nWidth = min(nWidth, 16384);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (nHeight != CW_USEDEFAULT)
|
||||||
|
{
|
||||||
|
nHeight = min(nHeight, 16384);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return real_CreateWindowExA(
|
return real_CreateWindowExA(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user