1
0
mirror of https://github.com/narzoul/DDrawCompat synced 2024-12-30 08:55:36 +01:00

Fixed deadlock in ScrollWindow(Ex)

This commit is contained in:
narzoul 2019-08-24 15:50:29 +02:00
parent 898c7e819c
commit b8456cc1d4

View File

@ -1,6 +1,5 @@
#include "Common/Hook.h"
#include "Common/Log.h"
#include "D3dDdi/ScopedCriticalSection.h"
#include "Gdi/Gdi.h"
#include "Gdi/ScrollFunctions.h"
#include "Gdi/Window.h"
@ -52,7 +51,6 @@ namespace Gdi
void updateScrolledWindow(HWND hwnd)
{
D3dDdi::ScopedCriticalSection lock;
auto window(Gdi::Window::get(hwnd));
UINT flags = RDW_ERASE | RDW_INVALIDATE | RDW_NOCHILDREN | RDW_UPDATENOW;
if (!window || window->getPresentationWindow() != hwnd)