From: Christoph von Wittich Date: Mon, 17 Oct 2005 12:44:16 +0000 (+0000) Subject: fixed "index out of range" X-Git-Tag: backups/ros-branch-0_2_9@19949~1333 X-Git-Url: https://git.reactos.org/?p=reactos.git;a=commitdiff_plain;h=5afb16c7490658aed8d79e095df9820d5c03e7e4 fixed "index out of range" svn path=/trunk/; revision=18517 --- diff --git a/reactos/subsys/system/welcome/welcome.c b/reactos/subsys/system/welcome/welcome.c index e59a02ad61c..9f5bf916281 100755 --- a/reactos/subsys/system/welcome/welcome.c +++ b/reactos/subsys/system/welcome/welcome.c @@ -566,7 +566,7 @@ OnPaint(HWND hWnd, WPARAM wParam, LPARAM lParam) 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]);