Skip to content

Commit 32a93a8

Browse files
committed
win32u: HACK: Hide a window also for Post Mortem.
Apply same hack of syberia to Post Mortem to fix black screen
1 parent 488fb29 commit 32a93a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dlls/win32u/window.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -479,7 +479,7 @@ HWND WINAPI NtUserSetParent( HWND hwnd, HWND parent )
479479
WCHAR name[32];
480480
UNICODE_STRING us = { 0, sizeof(name), name };
481481

482-
if (NtUserGetClassName( hwnd, FALSE, &us ) && !wcscmp( us.Buffer, u"SyberiaRenderWindowClass" ))
482+
if (NtUserGetClassName( hwnd, FALSE, &us ) && ( !wcscmp( us.Buffer, u"SyberiaRenderWindowClass" ) || !wcscmp( us.Buffer, u"Post MortemRenderWindowClass" ) ))
483483
{
484484
ERR( "HACK: Hiding window.\n" );
485485
was_visible = FALSE;

0 commit comments

Comments
 (0)