From 3c9062ca96570648b4e2754a4430759d01305c49 Mon Sep 17 00:00:00 2001 From: Timo Kreuzer Date: Sat, 27 Oct 2007 23:37:08 +0000 Subject: [PATCH] user32: - implement User32InitializeImmEntryTable() stub - implement _assert() to remove reference to msvcrt.dll todo: remove references to advapi32 and imm32. user32 should only link to ntdll, kernel32 and gdi32. The goal is to make it at least load on windows. svn path=/trunk/; revision=29926 --- reactos/dll/win32/user32/misc/stubs.c | 11 +++++++++++ reactos/dll/win32/user32/user32.def | 2 +- reactos/dll/win32/user32/windows/font.c | 8 ++++++++ 3 files changed, 20 insertions(+), 1 deletion(-) diff --git a/reactos/dll/win32/user32/misc/stubs.c b/reactos/dll/win32/user32/misc/stubs.c index 1861055780e..33527e3d32e 100644 --- a/reactos/dll/win32/user32/misc/stubs.c +++ b/reactos/dll/win32/user32/misc/stubs.c @@ -779,3 +779,14 @@ BOOL STDCALL DdeGetQualityOfService(HWND hWnd, DWORD Reserved, PSECURITY_QUALITY UNIMPLEMENTED; return FALSE; } + + +/* + * @unimplemented + */ +DWORD STDCALL User32InitializeImmEntryTable(PVOID p) +{ + UNIMPLEMENTED; + return 0; +} + diff --git a/reactos/dll/win32/user32/user32.def b/reactos/dll/win32/user32/user32.def index 911d9e395e3..f4063360680 100644 --- a/reactos/dll/win32/user32/user32.def +++ b/reactos/dll/win32/user32/user32.def @@ -709,7 +709,7 @@ UnregisterUserApiHook@0 UpdateLayeredWindow@36 UpdatePerUserSystemParameters@8 UpdateWindow@4 -;User32InitializeImmEntryTable +User32InitializeImmEntryTable UserClientDllInitialize=DllMain@12 UserHandleGrantAccess@12 ;UserLpkPSMTextOut diff --git a/reactos/dll/win32/user32/windows/font.c b/reactos/dll/win32/user32/windows/font.c index 71eb17ea8a6..288833d0b22 100644 --- a/reactos/dll/win32/user32/windows/font.c +++ b/reactos/dll/win32/user32/windows/font.c @@ -34,6 +34,14 @@ /* FUNCTIONS *****************************************************************/ +void _assert(const char *msg, const char *file, int line) +{ + /* Assertion failed at foo.c line 45: x