From 9ebfde575abb9d682df805d3698124ced01ceea8 Mon Sep 17 00:00:00 2001 From: Amine Khaldi Date: Mon, 27 Jan 2014 11:14:28 +0000 Subject: [PATCH] [DDRAW] * Add a note so that this won't be lost. svn path=/trunk/; revision=61850 --- reactos/dll/directx/wine/ddraw/main.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/reactos/dll/directx/wine/ddraw/main.c b/reactos/dll/directx/wine/ddraw/main.c index 7733c6b8696..9387cc09bc7 100644 --- a/reactos/dll/directx/wine/ddraw/main.c +++ b/reactos/dll/directx/wine/ddraw/main.c @@ -879,6 +879,8 @@ BOOL WINAPI DllMain(HINSTANCE inst, DWORD reason, void *reserved) * an application would unload ddraw from the WM_DESTROY handler for * that window, it would return to unmapped memory and die. Apparently * this is supposed to work on Windows. */ + + /* ReactOS r61844: Comment out usage of GET_MODULE_HANDLE_EX_FLAG_PIN because it doesn't work */ if (!GetModuleHandleExW(GET_MODULE_HANDLE_EX_FLAG_FROM_ADDRESS /*| GET_MODULE_HANDLE_EX_FLAG_PIN*/, (const WCHAR *)&ddraw_self, &ddraw_self)) ERR("Failed to get own module handle.\n");