net: LoadStringW incorrect size bytes vs characters.

oldstable
Marcus Meissner 2011-08-06 13:09:17 +02:00 committed by Alexandre Julliard
parent 39f4583ef9
commit a869964b31
1 changed files with 1 additions and 1 deletions

View File

@ -59,7 +59,7 @@ static int output_string(int msg, ...)
int len;
va_list arguments;
LoadStringW(GetModuleHandleW(NULL), msg, fmt, sizeof(fmt));
LoadStringW(GetModuleHandleW(NULL), msg, fmt, sizeof(fmt)/sizeof(fmt[0]));
va_start(arguments, msg);
len = vsprintfW(str, fmt, arguments);
output_write(str, len);