From 32a93a80a9a3be1c6251e0785b7d8225fd10a555 Mon Sep 17 00:00:00 2001 From: Elia Devito Date: Mon, 9 Dec 2024 20:41:12 +0100 Subject: [PATCH] win32u: HACK: Hide a window also for Post Mortem. Apply same hack of syberia to Post Mortem to fix black screen --- dlls/win32u/window.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/win32u/window.c b/dlls/win32u/window.c index 239cf3dcf60..cc02f399010 100644 --- a/dlls/win32u/window.c +++ b/dlls/win32u/window.c @@ -479,7 +479,7 @@ HWND WINAPI NtUserSetParent( HWND hwnd, HWND parent ) WCHAR name[32]; UNICODE_STRING us = { 0, sizeof(name), name }; - if (NtUserGetClassName( hwnd, FALSE, &us ) && !wcscmp( us.Buffer, u"SyberiaRenderWindowClass" )) + if (NtUserGetClassName( hwnd, FALSE, &us ) && ( !wcscmp( us.Buffer, u"SyberiaRenderWindowClass" ) || !wcscmp( us.Buffer, u"Post MortemRenderWindowClass" ) )) { ERR( "HACK: Hiding window.\n" ); was_visible = FALSE;