File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
subsystems/win32/win32k/eng Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -388,7 +388,8 @@ EngAssociateSurface(
388
388
psurf -> flags &= ~HOOK_FLAGS ;
389
389
psurf -> flags |= (flHooks & HOOK_FLAGS );
390
390
391
- /* Get palette */
391
+ /* Get new palette */
392
+ if (psurf -> ppal ) PALETTE_ShareUnlockPalette (psurf -> ppal );
392
393
psurf -> ppal = PALETTE_ShareLockPalette (ppdev -> devinfo .hpalDefault );
393
394
394
395
SURFACE_ShareUnlockSurface (psurf );
@@ -432,7 +433,8 @@ EngModifySurface(
432
433
psurf -> flags &= ~HOOK_FLAGS ;
433
434
psurf -> flags |= (flHooks & HOOK_FLAGS );
434
435
435
- /* Get palette */
436
+ /* Get new palette */
437
+ if (psurf -> ppal ) PALETTE_ShareUnlockPalette (psurf -> ppal );
436
438
psurf -> ppal = PALETTE_ShareLockPalette (ppdev -> devinfo .hpalDefault );
437
439
438
440
SURFACE_ShareUnlockSurface (psurf );
You can’t perform that action at this time.
0 commit comments