mirror of
https://github.com/reactos/wine.git
synced 2025-02-28 08:46:31 +00:00
kernel32: Fix write buffer overrun in format_insertW.
This commit is contained in:
parent
0909e8b18c
commit
1cd395153d
@ -356,7 +356,7 @@ static LPCWSTR format_insertW( int insert, LPCWSTR format, DWORD flags,
|
||||
(format[0] == 'C'))
|
||||
{
|
||||
char ch = arg;
|
||||
wstring = HeapAlloc( GetProcessHeap(), 0, 2 );
|
||||
wstring = HeapAlloc( GetProcessHeap(), 0, 2 * sizeof(WCHAR) );
|
||||
MultiByteToWideChar( CP_ACP, 0, &ch, 1, wstring, 1 );
|
||||
wstring[1] = 0;
|
||||
arg = (ULONG_PTR)wstring;
|
||||
|
Loading…
x
Reference in New Issue
Block a user