Sync with trunk (r48545)
[reactos.git] / subsystems / win32 / win32k / objects / bitmaps.c
index 163fda6..3c9f0e2 100644 (file)
@@ -953,6 +953,8 @@ BITMAP_CopyBitmap(HBITMAP hBitmap)
         if (resBitmap)
         {
             IntSetBitmapBits(resBitmap, Bitmap->SurfObj.cjBits, Bitmap->SurfObj.pvBits);
+            resBitmap->ppal = Bitmap->ppal;
+            GDIOBJ_IncrementShareCount((POBJ)Bitmap->ppal);
                        SURFACE_UnlockSurface(resBitmap);
         }
         else