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:
parent
898c7e819c
commit
b8456cc1d4
@ -1,6 +1,5 @@
|
|||||||
#include "Common/Hook.h"
|
#include "Common/Hook.h"
|
||||||
#include "Common/Log.h"
|
#include "Common/Log.h"
|
||||||
#include "D3dDdi/ScopedCriticalSection.h"
|
|
||||||
#include "Gdi/Gdi.h"
|
#include "Gdi/Gdi.h"
|
||||||
#include "Gdi/ScrollFunctions.h"
|
#include "Gdi/ScrollFunctions.h"
|
||||||
#include "Gdi/Window.h"
|
#include "Gdi/Window.h"
|
||||||
@ -52,7 +51,6 @@ namespace Gdi
|
|||||||
|
|
||||||
void updateScrolledWindow(HWND hwnd)
|
void updateScrolledWindow(HWND hwnd)
|
||||||
{
|
{
|
||||||
D3dDdi::ScopedCriticalSection lock;
|
|
||||||
auto window(Gdi::Window::get(hwnd));
|
auto window(Gdi::Window::get(hwnd));
|
||||||
UINT flags = RDW_ERASE | RDW_INVALIDATE | RDW_NOCHILDREN | RDW_UPDATENOW;
|
UINT flags = RDW_ERASE | RDW_INVALIDATE | RDW_NOCHILDREN | RDW_UPDATENOW;
|
||||||
if (!window || window->getPresentationWindow() != hwnd)
|
if (!window || window->getPresentationWindow() != hwnd)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user