1
0
Fork 0
mirror of synced 2025-03-07 03:53:26 +01:00

user32: Return a proper NTSTATUS in the load driver callback.

This commit is contained in:
Alexandre Julliard 2024-01-19 14:23:24 +01:00
parent a5d73ae427
commit d06192afe9
2 changed files with 8 additions and 4 deletions

View file

@ -184,9 +184,14 @@ static NTSTATUS WINAPI User32RenderSsynthesizedFormat( const struct render_synth
return 0;
}
static BOOL WINAPI User32LoadDriver( const WCHAR *path, ULONG size )
static NTSTATUS WINAPI User32LoadDriver( void *args, ULONG size )
{
return LoadLibraryW( path ) != NULL;
const WCHAR *path = args;
UNICODE_STRING str;
HMODULE module;
RtlInitUnicodeString( &str, path );
return LdrLoadDll( L"c:\\windows\\system32", 0, &str, &module );
}
static NTSTATUS WINAPI User32UnpackDDEMessage( void *args, ULONG size )

View file

@ -1019,8 +1019,7 @@ static BOOL load_desktop_driver( HWND hwnd )
{
void *ret_ptr;
ULONG ret_len;
ret = KeUserModeCallback( NtUserLoadDriver, info->Data, info->DataLength,
&ret_ptr, &ret_len );
ret = !KeUserModeCallback( NtUserLoadDriver, info->Data, info->DataLength, &ret_ptr, &ret_len );
}
else
{