Use GetDC(0) instead of CreateCompatibleDC(0).

This commit is contained in:
Marcus Meissner 2001-08-20 18:00:10 +00:00 committed by Alexandre Julliard
parent 872097ccd4
commit f158f541dd

View File

@ -882,7 +882,7 @@ static HRESULT WINAPI OLEPictureImpl_Load(IPersistStream* iface,IStream*pStm) {
HeapFree(GetProcessHeap(),0,samprow);
jpeg_finish_decompress(&jd);
jpeg_destroy_decompress(&jd);
hdcref = CreateCompatibleDC(0);
hdcref = GetDC(0);
This->desc.u.bmp.hbitmap=CreateDIBitmap(
hdcref,
&bmi,
@ -910,7 +910,7 @@ static HRESULT WINAPI OLEPictureImpl_Load(IPersistStream* iface,IStream*pStm) {
/* Does not matter whether this is a coreheader or not, we only use
* components which are in both
*/
hdcref = CreateCompatibleDC(0);
hdcref = GetDC(0);
This->desc.u.bmp.hbitmap = CreateDIBitmap(
hdcref,
&(bi->bmiHeader),