[PATCH 1/7] win32u: Use syscall interface for some path functions.

Jacek Caban jacek at codeweavers.com
Tue Oct 12 11:30:53 CDT 2021


On 10/12/21 6:02 PM, Dmitry Timoshkov wrote:
> Hi Jacek,
>
> Jacek Caban <jacek at codeweavers.com> wrote:
>
>> +NTSTATUS WINAPI wow64_NtGdiGetPath( UINT *args )
>> +{
>> +    HDC hdc = get_handle( &args );
>> +    POINT *points = get_ptr( &args );
>> +    BYTE *types = get_ptr( &args );
>> +    INT size = get_ulong( &args );
>> +
>> +    return NtGdiGetPath( hdc, points, types, size );
>> +}
>> +
>> +NTSTATUS WINAPI wow64_NtGdiPathToRegion( UINT *args )
>> +{
>> +    HDC hdc = get_handle( &args );
>> +
>> +    return HandleToUlong( NtGdiPathToRegion( hdc ));
>> +}
>> +
>> +NTSTATUS WINAPI wow64_NtGdiFlattenPath( UINT *args )
>> +{
>> +    HDC hdc = get_handle( &args );
>> +
>> +    return NtGdiFlattenPath( hdc );
>> +}
> This doesn't look right that wow64 versions return NTSTATUS. Is that correct?


The exact type is not very important. NTSTATUS is what all ntdll 
syscalls, so wow64 functions just use that, but they really just return 
a 32-bit value.


Jacek




More information about the wine-devel mailing list