Silence type safety warnings for rand-w32.c

Cast parameters to exact expected type so compiler won't complain.
This commit is contained in:
Asanka Herath
2010-06-02 21:13:41 -04:00
parent cd1e4911ca
commit ccc5fa16b1

View File

@@ -66,7 +66,8 @@ _hc_CryptProvider(void)
}
if (rv &&
InterlockedCompareExchangePointer(&g_cryptprovider, cryptprovider, 0) != 0) {
InterlockedCompareExchangePointer((PVOID *) &g_cryptprovider,
(PVOID) cryptprovider, 0) != 0) {
CryptReleaseContext(cryptprovider, 0);
cryptprovider = g_cryptprovider;