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

This commit is contained in:
Alexandre Julliard 2008-04-14 12:05:57 +02:00
parent 8a2e787161
commit 2004d2b2f6
1 changed files with 1 additions and 1 deletions

View File

@ -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);