[WIN32K]
authorTimo Kreuzer <timo.kreuzer@reactos.org>
Fri, 4 May 2012 17:39:00 +0000 (17:39 +0000)
committerTimo Kreuzer <timo.kreuzer@reactos.org>
Fri, 4 May 2012 17:39:00 +0000 (17:39 +0000)
Commit what I forgot

svn path=/trunk/; revision=56497

reactos/win32ss/user/ntuser/clipboard.c
reactos/win32ss/user/ntuser/misc/file.c

index 9688166..60c355b 100644 (file)
@@ -225,6 +225,7 @@ IntSynthesizeBitmap(PWINSTATION_OBJECT pWinStaObj, PCLIP pBmEl)
                                     pConvertedBmi,
                                     DIB_RGB_COLORS,
                                     0,
+                                    pMemObj->cbData - Offset,
                                     0);
 
     if (hBm)
index fea2114..6ad25a6 100644 (file)
@@ -229,6 +229,7 @@ UserLoadImage(PCWSTR pwszName)
                                          pConvertedInfo,
                                          DIB_RGB_COLORS,
                                          0,
+                                         pbmfh->bfSize - pbmfh->bfOffBits,
                                          0);
 
                NtGdiDeleteObjectApp(hdc);