mirror of
https://github.com/FunkyFr3sh/cnc-ddraw.git
synced 2025-03-24 17:49:52 +01:00
only save hwnd for video windows
This commit is contained in:
parent
c328ae9550
commit
488d4ea567
@ -475,7 +475,10 @@ BOOL CALLBACK util_enum_child_proc(HWND hwnd, LPARAM lparam)
|
|||||||
strcmp(class_name, "AVIWnd32") == 0 ||
|
strcmp(class_name, "AVIWnd32") == 0 ||
|
||||||
strcmp(class_name, "MCIWndClass") == 0)
|
strcmp(class_name, "MCIWndClass") == 0)
|
||||||
{
|
{
|
||||||
InterlockedExchangePointer(&g_ddraw->video_window_hwnd, hwnd);
|
if (g_config.fixchilds != FIX_CHILDS_DETECT_HIDE)
|
||||||
|
{
|
||||||
|
InterlockedExchangePointer(&g_ddraw->video_window_hwnd, hwnd);
|
||||||
|
}
|
||||||
|
|
||||||
LONG style = real_GetWindowLongA(hwnd, GWL_EXSTYLE);
|
LONG style = real_GetWindowLongA(hwnd, GWL_EXSTYLE);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user