Jeffrey Altman points out that GetQueueStatus() crashes on NT.
authorUlf Möller <ulf@openssl.org>
Fri, 15 Sep 2000 04:20:40 +0000 (04:20 +0000)
committerUlf Möller <ulf@openssl.org>
Fri, 15 Sep 2000 04:20:40 +0000 (04:20 +0000)
crypto/rand/rand_win.c

index 3119200..5dc186f 100644 (file)
@@ -242,11 +242,9 @@ int RAND_poll(void)
                {
                GETCURSORINFO cursor;
                GETFOREGROUNDWINDOW win;
                {
                GETCURSORINFO cursor;
                GETFOREGROUNDWINDOW win;
-               GETQUEUESTATUS queue;
 
                win = (GETFOREGROUNDWINDOW) GetProcAddress(user, "GetForegroundWindow");
                cursor = (GETCURSORINFO) GetProcAddress(user, "GetCursorInfo");
 
                win = (GETFOREGROUNDWINDOW) GetProcAddress(user, "GetForegroundWindow");
                cursor = (GETCURSORINFO) GetProcAddress(user, "GetCursorInfo");
-               queue = (GETQUEUESTATUS) GetProcAddress(user, "GetQueueStatus");
 
                if (win)
                {
 
                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 (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
                }
 
        /* Toolhelp32 snapshot: enumerate processes, threads, modules and heap