winstorecompat/Crypto: Use proper namespaced Release method.
Signed-off-by: Biswapriyo Nath <nathbappai@gmail.com>
Signed-off-by: Liu Hao <lh_mouse@126.com>
diff --git a/mingw-w64-libraries/winstorecompat/src/Crypto.c b/mingw-w64-libraries/winstorecompat/src/Crypto.c
index c8299a8..dd3a99a 100644
--- a/mingw-w64-libraries/winstorecompat/src/Crypto.c
+++ b/mingw-w64-libraries/winstorecompat/src/Crypto.c
@@ -35,6 +35,7 @@
#include <windef.h>
#include <windows.h>
#include <windows.security.cryptography.h>
+#include <windows.storage.streams.h>
#include <winstring.h>
#include <roapi.h>
#undef CertOpenSystemStore
@@ -93,12 +94,12 @@
unsigned char *rnd = NULL;
hr = __x_ABI_CWindows_CSecurity_CCryptography_CICryptographicBufferStatics_CopyToByteArray(phProv, buffer, &olength, (BYTE**)&rnd);
if (FAILED(hr)) {
- IBuffer_Release(buffer);
+ __x_ABI_CWindows_CStorage_CStreams_CIBuffer_Release(buffer);
return FALSE;
}
memcpy(pbBuffer, rnd, dwLen);
- IBuffer_Release(buffer);
+ __x_ABI_CWindows_CStorage_CStreams_CIBuffer_Release(buffer);
return TRUE;
}