fixed "index out of range"
Modified: trunk/reactos/subsys/system/welcome/welcome.c
_____
Modified: trunk/reactos/subsys/system/welcome/welcome.c
--- trunk/reactos/subsys/system/welcome/welcome.c 2005-10-17
12:41:52 UTC (rev 18516)
+++ trunk/reactos/subsys/system/welcome/welcome.c 2005-10-17
12:44:16 UTC (rev 18517)
@@ -566,7 +566,7 @@
0,
SRCCOPY);
}
- else if (hTopicBitmap[nTopic] != 0)
+ else if ((nTopic != -1) && (hTopicBitmap[nTopic] != 0))
{
GetObject(hTopicBitmap[nTopic], sizeof(BITMAP), &bmpInfo);
hOldBitmap = SelectObject (hdcMem, hTopicBitmap[nTopic]);
Show replies by date