Module: wine Branch: master Commit: 2004d2b2f687846ca0120462c8f50e3012368dc0 URL: http://source.winehq.org/git/wine.git/?a=commit;h=2004d2b2f687846ca0120462c8...
Author: Alexandre Julliard julliard@winehq.org Date: Mon Apr 14 12:05:57 2008 +0200
wordpad: Don't pass an invalid DC to CreateCompatibleDC.
---
programs/wordpad/print.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/programs/wordpad/print.c b/programs/wordpad/print.c index aa9ac71..c0cd182 100644 --- a/programs/wordpad/print.c +++ b/programs/wordpad/print.c @@ -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);