kernel32: Remove a superfluous function call in the format_insert helper.

This commit is contained in:
Andrew Nguyen 2010-04-28 04:20:41 -05:00 committed by Alexandre Julliard
parent e724f6aa28
commit 1d18b890a6
1 changed files with 1 additions and 1 deletions

View File

@ -144,7 +144,7 @@ static LPCWSTR format_insert( BOOL unicode_caller, int insert, LPCWSTR format,
}
else
{
char *str = (char *)get_arg( insert, flags, args );
char *str = (char *)arg;
DWORD length = MultiByteToWideChar( CP_ACP, 0, str, -1, NULL, 0 );
*result = HeapAlloc( GetProcessHeap(), 0, length * sizeof(WCHAR) );
MultiByteToWideChar( CP_ACP, 0, str, -1, *result, length );