[GDI32][NTGDI][SDK] ExtTextOut: Fix some type problems (#7856)

JIRA issue: CORE-19898
- Modify NtGdiExtTextOutW prototype.
- Add const to some paramters.
- Make Count parameter unsigned.
- Delete needless type casts.
This commit is contained in:
Katayama Hirofumi MZ 2025-04-02 20:30:47 +09:00 committed by GitHub
parent 7afcd2a8b7
commit 3660920b7f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 12 additions and 12 deletions

View file

@ -2500,10 +2500,10 @@ NtGdiExtTextOutW(
_In_ INT x,
_In_ INT y,
_In_ UINT flOpts,
_In_opt_ LPRECT prcl,
_In_reads_opt_(cwc) LPWSTR pwsz,
_In_range_(0, 0xffff) INT cwc,
_In_reads_opt_(_Inexpressible_(cwc)) LPINT pdx,
_In_opt_ LPCRECT prcl,
_In_reads_opt_(cwc) LPCWSTR pwsz,
_In_range_(0, 0xffff) UINT cwc,
_In_reads_opt_(_Inexpressible_(cwc)) const INT *pdx,
_In_ DWORD dwCodePage);
__kernel_entry

View file

@ -70,7 +70,7 @@ TextOutW(
_In_reads_(cchString) LPCWSTR lpString,
_In_ INT cchString)
{
return ExtTextOutW(hdc, nXStart, nYStart, 0, NULL, (LPWSTR)lpString, cchString, NULL);
return ExtTextOutW(hdc, nXStart, nYStart, 0, NULL, lpString, cchString, NULL);
}
@ -647,10 +647,10 @@ ExtTextOutW(
x,
y,
fuOptions,
(LPRECT)lprc,
(LPWSTR)lpString,
lprc,
lpString,
cwc,
(LPINT)lpDx,
lpDx,
0);
}

View file

@ -7360,10 +7360,10 @@ NtGdiExtTextOutW(
IN INT XStart,
IN INT YStart,
IN UINT fuOptions,
IN OPTIONAL LPRECT UnsafeRect,
IN LPWSTR UnsafeString,
IN INT Count,
IN OPTIONAL LPINT UnsafeDx,
IN OPTIONAL LPCRECT UnsafeRect,
IN LPCWSTR UnsafeString,
IN UINT Count,
IN OPTIONAL const INT *UnsafeDx,
IN DWORD dwCodePage)
{
BOOL Result = FALSE;