mirror of
git://source.winehq.org/git/wine.git
synced 2024-11-05 18:01:34 +00:00
kernel32: Fix write buffer overrun in format_insertW.
This commit is contained in:
parent
0909e8b18c
commit
1cd395153d
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue