From b08374c70816cd3f7f2474e2e349111da01110c9 Mon Sep 17 00:00:00 2001 From: Magnus Olsen Date: Fri, 2 May 2008 17:47:46 +0000 Subject: [PATCH] fix a typo in function DxEngGetHdevData the sub function DxEGShDevData_OpenRefs did validate data bit wrong it should send back 0 for no openrefs and 1 for openrefs. thx Pigglesworth debuglog to found it. svn path=/trunk/; revision=33241 --- reactos/subsystems/win32/win32k/ntddraw/dxeng.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reactos/subsystems/win32/win32k/ntddraw/dxeng.c b/reactos/subsystems/win32/win32k/ntddraw/dxeng.c index 6c877fd6c53..bb4d960384e 100644 --- a/reactos/subsystems/win32/win32k/ntddraw/dxeng.c +++ b/reactos/subsystems/win32/win32k/ntddraw/dxeng.c @@ -362,7 +362,7 @@ DxEngGetHdevData(HDEV hDev, break; case DxEGShDevData_OpenRefs: DPRINT1("requested DXEGSHDEVDATA DxEGShDevData_OpenRefs\n"); - retVal = (DWORD_PTR) PDev->cPdevOpenRefs == 0; + retVal = (DWORD_PTR) PDev->cPdevOpenRefs != 0; break; case DxEGShDevData_palette: DPRINT1("requested DXEGSHDEVDATA DxEGShDevData_palette\n");