mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 18:15:11 +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,
|
0,
|
||||||
SRCCOPY);
|
SRCCOPY);
|
||||||
}
|
}
|
||||||
else if (hTopicBitmap[nTopic] != 0)
|
else if ((nTopic != -1) && (hTopicBitmap[nTopic] != 0))
|
||||||
{
|
{
|
||||||
GetObject(hTopicBitmap[nTopic], sizeof(BITMAP), &bmpInfo);
|
GetObject(hTopicBitmap[nTopic], sizeof(BITMAP), &bmpInfo);
|
||||||
hOldBitmap = SelectObject (hdcMem, hTopicBitmap[nTopic]);
|
hOldBitmap = SelectObject (hdcMem, hTopicBitmap[nTopic]);
|
||||||
|
|
Loading…
Reference in a new issue