diff --git a/reactos/subsystems/win32/win32k/eng/mouse.c b/reactos/subsystems/win32/win32k/eng/mouse.c index 97a84d158a3..6ba618a5b42 100644 --- a/reactos/subsystems/win32/win32k/eng/mouse.c +++ b/reactos/subsystems/win32/win32k/eng/mouse.c @@ -686,11 +686,11 @@ GreSetPointerShape( fl | SPS_CHANGE); /* Cleanup */ - if (hbmColor) - EXLATEOBJ_vCleanup(&exlo); - if (psurfColor) + { + EXLATEOBJ_vCleanup(&exlo); SURFACE_ShareUnlockSurface(psurfColor); + } if (psurfMask) SURFACE_ShareUnlockSurface(psurfMask);