Author: akhaldi Date: Sat Oct 17 14:35:14 2015 New Revision: 69561
URL: http://svn.reactos.org/svn/reactos?rev=69561&view=rev Log: [WIN32K][PSDK] Correct NtGdiGetGlyphIndicesW() pwc type. Brought to you by Vort. CORE-867
Modified: trunk/reactos/include/psdk/ntgdi.h trunk/reactos/win32ss/gdi/ntgdi/freetype.c
Modified: trunk/reactos/include/psdk/ntgdi.h URL: http://svn.reactos.org/svn/reactos/trunk/reactos/include/psdk/ntgdi.h?rev=69... ============================================================================== --- trunk/reactos/include/psdk/ntgdi.h [iso-8859-1] (original) +++ trunk/reactos/include/psdk/ntgdi.h [iso-8859-1] Sat Oct 17 14:35:14 2015 @@ -165,7 +165,7 @@ 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);
Modified: trunk/reactos/win32ss/gdi/ntgdi/freetype.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/win32ss/gdi/ntgdi/freetype.... ============================================================================== --- trunk/reactos/win32ss/gdi/ntgdi/freetype.c [iso-8859-1] (original) +++ trunk/reactos/win32ss/gdi/ntgdi/freetype.c [iso-8859-1] Sat Oct 17 14:35:14 2015 @@ -4457,7 +4457,7 @@ 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 @@ PWSTR Buffer = NULL; ULONG Size, pwcSize; PWSTR Safepwc = NULL; - LPWSTR UnSafepwc = pwc; + LPCWSTR UnSafepwc = pwc; LPWORD UnSafepgi = pgi;
if ((!UnSafepwc) && (!UnSafepgi)) return cwc;