Commit f158f541 authored by Marcus Meissner's avatar Marcus Meissner Committed by Alexandre Julliard

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

parent 872097cc
......@@ -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),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment