mirror of
https://github.com/decompals/wibo.git
synced 2025-12-13 07:06:18 +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:
@@ -29,8 +29,18 @@ namespace ole32 {
|
||||
}
|
||||
}
|
||||
|
||||
void *wibo::resolveOle32(const char *name) {
|
||||
static void *resolveByName(const char *name) {
|
||||
if (strcmp(name, "CoInitialize") == 0) return (void *) ole32::CoInitialize;
|
||||
if (strcmp(name, "CoCreateInstance") == 0) return (void *) ole32::CoCreateInstance;
|
||||
return 0;
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
wibo::Module lib_ole32 = {
|
||||
(const char *[]){
|
||||
"ole32",
|
||||
"ole32.dll",
|
||||
nullptr,
|
||||
},
|
||||
resolveByName,
|
||||
nullptr,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user