mirror of
https://github.com/decompals/wibo.git
synced 2025-12-12 22:56:13 +00:00
Everything needed to run simple Rust programs (#40)
* Everything needed to run simple Rust programs * Add IsDBCSLeadByte implementation * Address PR comments
This commit is contained in:
@@ -7,8 +7,17 @@ namespace advapi32 {
|
||||
}
|
||||
}
|
||||
|
||||
void *wibo::resolveAdvApi32(const char *name) {
|
||||
static void *resolveByName(const char *name) {
|
||||
if (strcmp(name, "RegOpenKeyExA") == 0) return (void *) advapi32::RegOpenKeyExA;
|
||||
return 0;
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
wibo::Module lib_advapi32 = {
|
||||
(const char *[]){
|
||||
"advapi32",
|
||||
"advapi32.dll",
|
||||
nullptr,
|
||||
},
|
||||
resolveByName,
|
||||
nullptr,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user