Commit 027bc810 authored by Nicolas Le Cam's avatar Nicolas Le Cam Committed by Alexandre Julliard

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

parent be659fe1
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment