mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +00:00
fixed "index out of range"
svn path=/trunk/; revision=18517
This commit is contained in:
parent
47110fba6f
commit
5afb16c749
1 changed files with 1 additions and 1 deletions
|
@ -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]);
|
||||
|
|
Loading…
Reference in a new issue