cabinet/tests: Avoid use of lstrlenA when not needed.
Nicolas Le Cam
niko.lecam at gmail.com
Sat Jun 27 04:34:36 CDT 2009
---
dlls/cabinet/tests/fdi.c | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/dlls/cabinet/tests/fdi.c b/dlls/cabinet/tests/fdi.c
index 1fa3851..011d94f 100644
--- a/dlls/cabinet/tests/fdi.c
+++ b/dlls/cabinet/tests/fdi.c
@@ -287,10 +287,9 @@ static void createTestFile(const CHAR *name)
static void create_test_files(void)
{
- int len;
+ DWORD len;
- GetCurrentDirectoryA(MAX_PATH, CURR_DIR);
- len = lstrlenA(CURR_DIR);
+ len = GetCurrentDirectoryA(MAX_PATH, CURR_DIR);
if(len && (CURR_DIR[len-1] == '\\'))
CURR_DIR[len-1] = 0;
--
1.6.0.4
--=-OAKcQJTqlUJj2KAvEXjy--
More information about the wine-patches
mailing list