gdi32: Implement GdiDllInitialize stub.

This is required by several Call of Duty games that are calling this
directly after loading gdi32.dll from disk.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=48171
Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Rémi Bernon 2020-11-06 18:05:42 +01:00 committed by Alexandre Julliard
parent 308a0cf72d
commit cb1ff768ac
2 changed files with 14 additions and 1 deletions

View file

@ -182,7 +182,7 @@
@ stub GdiDeleteLocalObject
# @ stub GdiDeleteSpoolFileHandle
@ stdcall GdiDescribePixelFormat(long long long ptr)
@ stub GdiDllInitialize
@ stdcall GdiDllInitialize(ptr long ptr)
@ stdcall GdiDrawStream(long long ptr)
# @ stub GdiEndDocEMF
# @ stub GdiEndPageEMF

View file

@ -672,6 +672,19 @@ BOOL WINAPI DllMain( HINSTANCE inst, DWORD reason, LPVOID reserved )
return TRUE;
}
/***********************************************************************
* GdiDllInitialize
*
* Stub entry point, some games (CoD: Black Ops 3) call it directly.
*/
BOOL WINAPI GdiDllInitialize( HINSTANCE inst, DWORD reason, LPVOID reserved )
{
FIXME("stub\n");
return TRUE;
}
static const char *gdi_obj_type( unsigned type )
{
switch ( type )