From e93807c0cba497017fc19c08479298afcb3fe094 Mon Sep 17 00:00:00 2001 From: Marcus Meissner Date: Sat, 25 Nov 2000 01:19:58 +0000 Subject: [PATCH] Handle %ls same as %s. --- dlls/kernel/format_msg.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dlls/kernel/format_msg.c b/dlls/kernel/format_msg.c index a8c125d1901..faaad0acf07 100644 --- a/dlls/kernel/format_msg.c +++ b/dlls/kernel/format_msg.c @@ -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*/ }