mirror of
https://github.com/reactos/wine.git
synced 2025-02-13 08:44:54 +00:00
cabinet/tests: Avoid use of lstrlenA when not needed.
This commit is contained in:
parent
be659fe12b
commit
027bc8100c
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user