Nicolas Le Cam : cabinet/tests: Avoid use of lstrlenA when not needed.
Alexandre Julliard
julliard at winehq.org
Mon Jun 29 09:17:40 CDT 2009
Module: wine
Branch: master
Commit: 027bc8100c60d257f86e83bb77cf56820f1ae8f4
URL: http://source.winehq.org/git/wine.git/?a=commit;h=027bc8100c60d257f86e83bb77cf56820f1ae8f4
Author: Nicolas Le Cam <niko.lecam at gmail.com>
Date: Sat Jun 27 11:34:36 2009 +0200
cabinet/tests: Avoid use of lstrlenA when not needed.
---
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;
More information about the wine-cvs
mailing list