mirror of
https://github.com/decompals/wibo.git
synced 2025-12-12 06:45:05 +00:00
Save/restore fs/gs segments when re-entering host code
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
|
||||
namespace ole32 {
|
||||
int WIN_FUNC CoInitialize(void *pvReserved) {
|
||||
WIN_API_SEGMENT_GUARD();
|
||||
DEBUG_LOG("STUB: CoInitialize(%p)\n", pvReserved);
|
||||
(void) pvReserved;
|
||||
return 0; // S_OK
|
||||
@@ -21,6 +22,7 @@ namespace ole32 {
|
||||
const GUID *riid,
|
||||
void **ppv
|
||||
) {
|
||||
WIN_API_SEGMENT_GUARD();
|
||||
DEBUG_LOG("STUB: CoCreateInstance(0x%x, %p, %d, 0x%x, %p)\n", rclsid->Data1, pUnkOuter, dwClsContext, riid->Data1, *ppv);
|
||||
*ppv = 0;
|
||||
// E_POINTER is returned when ppv is NULL, which isn't true here, but returning 1 results
|
||||
|
||||
Reference in New Issue
Block a user