Commit e93807c0 authored by Marcus Meissner's avatar Marcus Meissner Committed by Alexandre Julliard

Handle %ls same as %s.

parent b7512e48
......@@ -245,10 +245,13 @@ DWORD WINAPI FormatMessageA(
if (NULL!=(x=strchr(f,'!'))) {
*x='\0';
fmtstr=HeapAlloc(GetProcessHeap(),0,strlen(f)+2);
/* %ls ? */
if (!strcmp(f,"ls")) f++;
sprintf(fmtstr,"%%%s",f);
f=x+1;
} else {
fmtstr=HeapAlloc(GetProcessHeap(),0,strlen(f)+2);
if (!strcmp(f,"ls")) f++;
sprintf(fmtstr,"%%%s",f);
f+=strlen(f); /*at \0*/
}
......
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