wow64win: Fix NULL buffer handling in wow64_NtUserBuildHimcList.
Fixes win32u tests on wow64.
This commit is contained in:
parent
f841045b2d
commit
7989592172
1 changed files with 3 additions and 2 deletions
|
@ -1186,11 +1186,12 @@ NTSTATUS WINAPI wow64_NtUserBuildHimcList( UINT *args )
|
|||
UINT32 *buffer32 = get_ptr( &args );
|
||||
UINT *size = get_ptr( &args );
|
||||
|
||||
HIMC *buffer;
|
||||
HIMC *buffer = NULL;
|
||||
ULONG i;
|
||||
NTSTATUS status;
|
||||
|
||||
if (!(buffer = Wow64AllocateTemp( count * sizeof(*buffer) ))) return STATUS_NO_MEMORY;
|
||||
if (buffer32 && !(buffer = Wow64AllocateTemp( count * sizeof(*buffer) )))
|
||||
return STATUS_NO_MEMORY;
|
||||
|
||||
if ((status = NtUserBuildHimcList( thread_id, count, buffer, size ))) return status;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue