提交 1949e783 编写于 作者: U Ulf Möller

Jeffrey Altman points out that GetQueueStatus() crashes on NT.

上级 2273d6b6
......@@ -242,11 +242,9 @@ int RAND_poll(void)
{
GETCURSORINFO cursor;
GETFOREGROUNDWINDOW win;
GETQUEUESTATUS queue;
win = (GETFOREGROUNDWINDOW) GetProcAddress(user, "GetForegroundWindow");
cursor = (GETCURSORINFO) GetProcAddress(user, "GetCursorInfo");
queue = (GETQUEUESTATUS) GetProcAddress(user, "GetQueueStatus");
if (win)
{
......@@ -263,13 +261,6 @@ int RAND_poll(void)
if (cursor(p))
RAND_add(p+sizeof(p->cbSize), p->cbSize-sizeof(p->cbSize), 0);
}
if (queue)
{
/* message queue status */
w = queue(QS_ALLEVENTS);
RAND_add(&w, sizeof(w), 0);
}
}
/* Toolhelp32 snapshot: enumerate processes, threads, modules and heap
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册