Skip to content

Commit

Permalink
win32u: HACK: Hide a window also for Post Mortem.
Browse files Browse the repository at this point in the history
Apply same hack of syberia to Post Mortem to fix black screen
  • Loading branch information
eliadevito committed Dec 9, 2024
1 parent 488fb29 commit 32a93a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dlls/win32u/window.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 32a93a8

Please sign in to comment.