https://docs.microsoft.com/en-us/windows-hardware/drivers/ddi/ntifs/nf-ntifs...
funnily enough, implementation is correct
Signed-off-by: Eric Pouech eric.pouech@gmail.com
--- include/winternl.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/winternl.h b/include/winternl.h index 0e23fdd97bf..3c075497070 100644 --- a/include/winternl.h +++ b/include/winternl.h @@ -4374,7 +4374,7 @@ NTSYSAPI NTSTATUS WINAPI RtlLookupAtomInAtomTable(RTL_ATOM_TABLE,const WCHAR*,R NTSYSAPI NTSTATUS WINAPI RtlMakeSelfRelativeSD(PSECURITY_DESCRIPTOR,PSECURITY_DESCRIPTOR,LPDWORD); NTSYSAPI void WINAPI RtlMapGenericMask(PACCESS_MASK,const GENERIC_MAPPING*); NTSYSAPI NTSTATUS WINAPI RtlMultiByteToUnicodeN(LPWSTR,DWORD,LPDWORD,LPCSTR,DWORD); -NTSYSAPI NTSTATUS WINAPI RtlMultiByteToUnicodeSize(DWORD*,LPCSTR,UINT); +NTSYSAPI NTSTATUS WINAPI RtlMultiByteToUnicodeSize(DWORD*,LPCSTR,ULONG); NTSYSAPI NTSTATUS WINAPI RtlNewSecurityObject(PSECURITY_DESCRIPTOR,PSECURITY_DESCRIPTOR,PSECURITY_DESCRIPTOR*,BOOLEAN,HANDLE,PGENERIC_MAPPING); NTSYSAPI PRTL_USER_PROCESS_PARAMETERS WINAPI RtlNormalizeProcessParams(RTL_USER_PROCESS_PARAMETERS*); NTSYSAPI NTSTATUS WINAPI RtlNormalizeString(ULONG,const WCHAR*,INT,WCHAR*,INT*);
Signed-off-by: Eric Pouech eric.pouech@gmail.com
--- dlls/dwrite/opentype.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/dwrite/opentype.c b/dlls/dwrite/opentype.c index 452b00240b8..cf4c1296af2 100644 --- a/dlls/dwrite/opentype.c +++ b/dlls/dwrite/opentype.c @@ -3189,7 +3189,7 @@ void opentype_layout_scriptshaping_cache_init(struct scriptshaping_cache *cache) } }
-unsigned int opentype_layout_find_script(const struct scriptshaping_cache *cache, unsigned int kind, DWORD script, +DWORD opentype_layout_find_script(const struct scriptshaping_cache *cache, DWORD kind, DWORD script, unsigned int *script_index) { const struct ot_gsubgpos_table *table = kind == MS_GSUB_TAG ? &cache->gsub : &cache->gpos; @@ -3219,7 +3219,7 @@ unsigned int opentype_layout_find_script(const struct scriptshaping_cache *cache return 0; }
-unsigned int opentype_layout_find_language(const struct scriptshaping_cache *cache, unsigned int kind, DWORD language, +DWORD opentype_layout_find_language(const struct scriptshaping_cache *cache, DWORD kind, DWORD language, unsigned int script_index, unsigned int *language_index) { const struct ot_gsubgpos_table *table = kind == MS_GSUB_TAG ? &cache->gsub : &cache->gpos;
I'd rather change the prototype. What difference does it make in practice? Do you get warnings for this somewhere?