From 199aebaa5713ce10b77c0155012006e176f204a4 Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Tue, 28 Mar 2000 13:20:32 +0000 Subject: [PATCH] Ignore trailing spaces in DOSFS_ToDosFCBFormat. --- files/dos_fs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/dos_fs.c b/files/dos_fs.c index a77b2b92c51..fe470a7c6ce 100644 --- a/files/dos_fs.c +++ b/files/dos_fs.c @@ -244,7 +244,7 @@ BOOL DOSFS_ToDosFCBFormat( LPCSTR name, LPSTR buffer ) /* at most 3 character of the extension are processed * is something behind this ? */ - if (*p == '*') p++; /* skip wildcard */ + while (*p == '*' || *p == ' ') p++; /* skip wildcards and spaces */ return IS_END_OF_NAME(*p); }