Handle %ls same as %s.
This commit is contained in:
parent
b7512e480e
commit
e93807c0cb
|
@ -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*/
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue