From ecfe47b6352c2629917f131534e267b4fb667a9c Mon Sep 17 00:00:00 2001 From: Amine Khaldi Date: Sat, 17 Oct 2015 14:35:14 +0000 Subject: [PATCH] [WIN32K][PSDK] Correct NtGdiGetGlyphIndicesW() pwc type. Brought to you by Vort. CORE-867 svn path=/trunk/; revision=69561 --- reactos/include/psdk/ntgdi.h | 2 +- reactos/win32ss/gdi/ntgdi/freetype.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/reactos/include/psdk/ntgdi.h b/reactos/include/psdk/ntgdi.h index 83cd04f2cb4..b4484c5fe42 100644 --- a/reactos/include/psdk/ntgdi.h +++ b/reactos/include/psdk/ntgdi.h @@ -165,7 +165,7 @@ DWORD APIENTRY NtGdiGetGlyphIndicesW( _In_ HDC hdc, - _In_reads_opt_(cwc) LPWSTR pwc, + _In_reads_opt_(cwc) LPCWSTR pwc, _In_ INT cwc, _Out_writes_opt_(cwc) LPWORD pgi, _In_ DWORD iMode); diff --git a/reactos/win32ss/gdi/ntgdi/freetype.c b/reactos/win32ss/gdi/ntgdi/freetype.c index 4557e2426c1..45fb25c79d8 100644 --- a/reactos/win32ss/gdi/ntgdi/freetype.c +++ b/reactos/win32ss/gdi/ntgdi/freetype.c @@ -4457,7 +4457,7 @@ DWORD APIENTRY NtGdiGetGlyphIndicesW( _In_ HDC hdc, - _In_reads_opt_(cwc) LPWSTR pwc, + _In_reads_opt_(cwc) LPCWSTR pwc, _In_ INT cwc, _Out_writes_opt_(cwc) LPWORD pgi, _In_ DWORD iMode) @@ -4475,7 +4475,7 @@ NtGdiGetGlyphIndicesW( PWSTR Buffer = NULL; ULONG Size, pwcSize; PWSTR Safepwc = NULL; - LPWSTR UnSafepwc = pwc; + LPCWSTR UnSafepwc = pwc; LPWORD UnSafepgi = pgi; if ((!UnSafepwc) && (!UnSafepgi)) return cwc;