prepare to leave boot services, a real printf library, soon™️ threads
This commit is contained in:
1 parent
e65b6be64b
commit
1523b581bb
13 files changed
+1323
-171
No files matched your search
@@ -14,14 +14,14 @@ typedef void* HMODULE;
|
||||
|
||||
// COM stubs
|
||||
HRESULT CoCreateInstance(REFCLSID, LPUNKNOWN, DWORD, REFIID, LPVOID* ppv) {
|
||||
PRINT(L"CoCreateInstance called\n");
|
||||
printf("CoCreateInstance called\n");
|
||||
if (ppv) *ppv = nullptr;
|
||||
return S_OK;
|
||||
}
|
||||
HRESULT CoInitializeEx(LPVOID, DWORD) { PRINT(L"CoInitializeEx called\n"); return S_OK; }
|
||||
void CoUninitialize() { PRINT(L"CoUninitialize called\n"); }
|
||||
void CoTaskMemFree(LPVOID) { PRINT(L"CoTaskMemFree called\n"); }
|
||||
HRESULT PropVariantClear(LPVOID) { PRINT(L"PropVariantClear called\n"); return S_OK; }
|
||||
HRESULT CoInitializeEx(LPVOID, DWORD) { printf("CoInitializeEx called\n"); return S_OK; }
|
||||
void CoUninitialize() { printf("CoUninitialize called\n"); }
|
||||
void CoTaskMemFree(LPVOID) { printf("CoTaskMemFree called\n"); }
|
||||
HRESULT PropVariantClear(LPVOID) { printf("PropVariantClear called\n"); return S_OK; }
|
||||
|
||||
extern int stricmp(const char *s1, const char *s2);
|
||||
|
||||
@@ -38,6 +38,6 @@ void* ResolveOle32(const char* functionName) {
|
||||
return PropVariantClear;
|
||||
}
|
||||
|
||||
Print(L"Unknown function: %a\n", functionName);
|
||||
printf("Unknown function: %s\n", functionName);
|
||||
return NULL;
|
||||
}
|
||||
Reference in new issue
Block a user