On Fri, 30 Sep 2022, LIU Hao wrote:
在 2022/9/30 05:25, Martin Storsjö 写道:
+
+#ifdef _X86_
+BOOLEAN (WINAPI *__MINGW_IMP_SYMBOL(SystemFunction036))(PVOID
RandomBuffer, ULONG RandomBufferLength)
__asm__("__imp__SystemFunction036@8") = SystemFunction036;
+#else
+BOOLEAN (WINAPI *__MINGW_IMP_SYMBOL(SystemFunction036))(PVOID
RandomBuffer, ULONG RandomBufferLength) __asm__("__imp__SystemFunction036")
= SystemFunction036;
+#endif
Is the asm name for non-x86 correct? I would expect it to be
`__imp_SystemFunction036`.
Oh, indeed, you're right - thanks! Fixed locally.
The declaration of RtlGenRandom/SystemFunction036 in ntsecapi.h doesn't
use dllimport, which is why I didn't notice before.
// Martin
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public