]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
STABLE12-winnt-afsd-initialize-rect-20030314
authorChaskiel M Grundman <cg2v@andrew.cmu.edu>
Fri, 14 Mar 2003 20:29:34 +0000 (20:29 +0000)
committerDerrick Brashear <shadow@dementia.org>
Fri, 14 Mar 2003 20:29:34 +0000 (20:29 +0000)
FIXES 1333

rect is used uninitialized, I'm pretty sure they really meant to
refer to main_rect.top, not rect.top

src/WINNT/afsd/afsd.c

index a481f2e7d41f3304a8aa2a664f16a0f1c2f0c200..cbcea84536e65f2c7463b2bbe01716d5dc114d41 100644 (file)
@@ -148,7 +148,7 @@ BOOL InitInstance(
        main_rect.right  = GetDeviceCaps(hDC, HORZRES);
        main_rect.top    = GetDeviceCaps(hDC, LOGPIXELSY) / 4;   /* 1/4 inch */
        ReleaseDC(hWnd, hDC);
-       main_rect.bottom = rect.top + nLineHeight;
+       main_rect.bottom = main_rect.top + nLineHeight;
 
        osi_InitPanic(afsd_notifier);