Jinoh Kang (@iamahuman) commented about dlls/ntdll/misc.c:
- LPARAM (WINAPI *pDefWindowProcA)(HWND,UINT,WPARAM,LPARAM); /* DefWindowProcA */
- const UNICODE_STRING name = RTL_CONSTANT_STRING( L"user32.dll" );
- NTSTATUS status;
- HMODULE module;
- if (( status = LdrGetDllHandle( NULL, 0, &name, &module )))
- {
ERR("Failed to get user32.dll handle, status %ld\n", status);
return 1; /* FIXME: Is this a good way to indicate failure? */
- }
- pDefWindowProcA = RtlFindExportedRoutineByName( module, "DefWindowProcA" );
- if (!pDefWindowProcA)
- {
ERR("Failed to load the function\n");
I'm afraid "load" isn't quite accurate here.
```suggestion:-0+0 ERR("Cannot find the function\n"); ```