mirror of
https://github.com/decompals/wibo.git
synced 2025-12-12 22:56:13 +00:00
more more more
This commit is contained in:
@@ -5,10 +5,24 @@ namespace advapi32 {
|
||||
DEBUG_LOG("RegOpenKeyExA(key=%p, subkey=%s, ...)\n", hKey, lpSubKey);
|
||||
return 1; // screw them for now
|
||||
}
|
||||
|
||||
bool WIN_FUNC CryptAcquireContextW(void** phProv, const wchar_t* pszContainer, const wchar_t* pszProvider, unsigned int dwProvType, unsigned int dwFlags){
|
||||
DEBUG_LOG("STUB: CryptAcquireContextW(%p)\n", phProv);
|
||||
|
||||
// to quote the guy above me: screw them for now
|
||||
static int lmao = 42;
|
||||
if (phProv) {
|
||||
*phProv = &lmao;
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
static void *resolveByName(const char *name) {
|
||||
if (strcmp(name, "RegOpenKeyExA") == 0) return (void *) advapi32::RegOpenKeyExA;
|
||||
if (strcmp(name, "CryptAcquireContextW") == 0) return (void*) advapi32::CryptAcquireContextW;
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user