cabinet/tests: Avoid use of lstrlenA when not needed.

This commit is contained in:
Nicolas Le Cam 2009-06-27 11:34:36 +02:00 committed by Alexandre Julliard
parent be659fe12b
commit 027bc8100c
1 changed files with 2 additions and 3 deletions

View File

@ -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;