diff --git a/reactos/subsystems/win32/win32k/objects/gdibatch.c b/reactos/subsystems/win32/win32k/objects/gdibatch.c index 9bcac6b714e..68c758475ae 100644 --- a/reactos/subsystems/win32/win32k/objects/gdibatch.c +++ b/reactos/subsystems/win32/win32k/objects/gdibatch.c @@ -149,10 +149,10 @@ NtGdiFlushUserBatch(VOID) PCHAR pHdr = (PCHAR)&pTeb->GdiTebBatch.Buffer[0]; PDC pDC = NULL; - if (hDC && !IsObjectDead(hDC)) - { - pDC = DC_LockDc(hDC); - } + if (hDC && !IsObjectDead(hDC)) + { + pDC = DC_LockDc(hDC); + } // No need to init anything, just go! for (; GdiBatchCount > 0; GdiBatchCount--)