Don't access garbage pointer.

svn path=/branches/reactos-yarotows/; revision=46354
This commit is contained in:
Jérôme Gardou 2010-03-23 15:30:41 +00:00
parent c16ad873a6
commit 6ca135323d

View file

@ -90,7 +90,7 @@ void
DC_InitHack(PDC pdc)
{
HRGN hVisRgn;
if (!pdc) return;
TextIntRealizeFont(pdc->pdcattr->hlfntNew,NULL);
pdc->pdcattr->iCS_CP = ftGdiGetTextCharsetInfo(pdc,NULL,0);
@ -594,7 +594,7 @@ NtGdiCreateCompatibleDC(HDC hdc)
{
HDC hdcNew;
PPDEVOBJ ppdev;
PDC pdc, pdcNew;
PDC pdc = NULL, pdcNew;
DPRINT("NtGdiCreateCompatibleDC(0x%p)\n", hdc);