mirror of
https://github.com/decompals/wibo.git
synced 2025-12-17 00:47:18 +00:00
Fully functional guest<->host trampolines
This commit is contained in:
@@ -1,13 +1,13 @@
|
||||
#include "mscoree.h"
|
||||
|
||||
#include "common.h"
|
||||
#include "context.h"
|
||||
#include "kernel32/internal.h"
|
||||
#include "modules.h"
|
||||
|
||||
#include <cstring>
|
||||
|
||||
namespace mscoree {
|
||||
|
||||
void WIN_FUNC CorExitProcess(int exitCode) {
|
||||
VOID WINAPI CorExitProcess(int exitCode) {
|
||||
HOST_CONTEXT_GUARD();
|
||||
DEBUG_LOG("CorExitProcess(%i)\n", exitCode);
|
||||
kernel32::exitInternal(exitCode);
|
||||
@@ -15,17 +15,13 @@ void WIN_FUNC CorExitProcess(int exitCode) {
|
||||
|
||||
} // namespace mscoree
|
||||
|
||||
static void *resolveByName(const char *name) {
|
||||
if (strcmp(name, "CorExitProcess") == 0)
|
||||
return (void *)mscoree::CorExitProcess;
|
||||
return nullptr;
|
||||
}
|
||||
#include "mscoree_trampolines.h"
|
||||
|
||||
extern const wibo::ModuleStub lib_mscoree = {
|
||||
(const char *[]){
|
||||
"mscoree",
|
||||
nullptr,
|
||||
},
|
||||
resolveByName,
|
||||
mscoreeThunkByName,
|
||||
nullptr,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user