]> git.ipfire.org Git - thirdparty/openssl.git/blobdiff - crypto/rand/rand_win.c
There have been a number of complaints from a number of sources that names
[thirdparty/openssl.git] / crypto / rand / rand_win.c
index 78a55f32d37cd3f415cca3e202084a369f6953d8..2ee4a48cc80c6b2572a1c493071fda8ac92a8fd6 100644 (file)
@@ -252,7 +252,7 @@ void RAND_screen(void)
   GetObject(hBitmap, sizeof(BITMAP), (LPSTR)&bm);
   size = (unsigned int)bm.bmWidthBytes * bm.bmHeight * bm.bmPlanes;
 
-  bmbits = Malloc(size);
+  bmbits = OPENSSL_malloc(size);
   if (bmbits) {
     /* Now go through the whole screen, repeatedly grabbing n lines */
     for (y = 0; y < h-n; y += n)
@@ -272,7 +272,7 @@ void RAND_screen(void)
        RAND_seed(md, MD_DIGEST_LENGTH);
        }
 
-    Free(bmbits);
+    OPENSSL_free(bmbits);
   }
 
   /* Select old bitmap back into memory DC */