Commit c2391296 authored by Francois Gouget's avatar Francois Gouget Committed by Alexandre Julliard

shlwapi: Fix the length returned by SHFormatDateTimeA().

The ANSI string may be longer than the Unicode one. Signed-off-by: 's avatarFrancois Gouget <fgouget@codeweavers.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent 312dc76c
......@@ -4360,7 +4360,7 @@ INT WINAPI SHFormatDateTimeA(const FILETIME UNALIGNED *fileTime, DWORD *flags,
retval = SHFormatDateTimeW(fileTime, flags, bufW, size);
if (retval != 0)
WideCharToMultiByte(CP_ACP, 0, bufW, -1, buf, size, NULL, NULL);
retval = WideCharToMultiByte(CP_ACP, 0, bufW, -1, buf, size, NULL, NULL);
HeapFree(GetProcessHeap(), 0, bufW);
return retval;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment