Commit 2004d2b2 authored by Alexandre Julliard's avatar Alexandre Julliard

wordpad: Don't pass an invalid DC to CreateCompatibleDC.

parent 8a2e7871
......@@ -500,7 +500,7 @@ static void add_ruler_units(HDC hdcRuler, RECT* drawRect, BOOL NewMetrics, long
DeleteObject(hBitmap);
}
hdc = CreateCompatibleDC(hdc);
hdc = CreateCompatibleDC(0);
CmPixels = twips_to_pixels(TWIPS_PER_CM, GetDeviceCaps(hdc, LOGPIXELSX));
QuarterCmPixels = (int)((float)CmPixels / 4.0);
......
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