Skip to content

Commit f3f11eb

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 f3f11eb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

dlls/win32u/window.c

+1
Original file line numberDiff line numberDiff line change
@@ -479,6 +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" ) || !wcscmp( us.Buffer, u"Post MortemRenderWindowClass" ) ))
482483
if (NtUserGetClassName( hwnd, FALSE, &us ) && !wcscmp( us.Buffer, u"SyberiaRenderWindowClass" ))
483484
{
484485
ERR( "HACK: Hiding window.\n" );

0 commit comments

Comments
 (0)