1
0
mirror of https://github.com/FunkyFr3sh/cnc-ddraw.git synced 2025-03-25 10:07:47 +01:00

#304 add a check for CW_USEDEFAULT just to be sure

This commit is contained in:
FunkyFr3sh 2024-04-16 03:11:33 +02:00
parent 36bf42af6f
commit 18c15280ba

View File

@ -1359,10 +1359,17 @@ HWND WINAPI fake_CreateWindowExA(
/* Limit window size to max surface size (Dune2000 1.02) */
if (dwStyle & WS_POPUP)
{
if (nWidth != CW_USEDEFAULT)
{
nWidth = min(nWidth, 16384);
}
if (nHeight != CW_USEDEFAULT)
{
nHeight = min(nHeight, 16384);
}
}
return real_CreateWindowExA(
dwExStyle,