shell32/tests: Remove an unneeded HeapAlloc.
This commit is contained in:
parent
1c6f813bc7
commit
e5d83ac625
|
@ -320,13 +320,10 @@ static void CheckWindowCreated(const char *winName, int closeWindow, int testPar
|
||||||
static void CheckFileExistsInProgramGroups(const char *nameToCheck, int shouldExist, int isGroup,
|
static void CheckFileExistsInProgramGroups(const char *nameToCheck, int shouldExist, int isGroup,
|
||||||
const char *groupName, int testParams)
|
const char *groupName, int testParams)
|
||||||
{
|
{
|
||||||
char *path;
|
char path[MAX_PATH];
|
||||||
DWORD attributes;
|
DWORD attributes;
|
||||||
int len;
|
int len;
|
||||||
|
|
||||||
path = HeapAlloc(GetProcessHeap(), 0, MAX_PATH);
|
|
||||||
if (path != NULL)
|
|
||||||
{
|
|
||||||
if (testParams & DDE_TEST_COMMON)
|
if (testParams & DDE_TEST_COMMON)
|
||||||
lstrcpyA(path, CommonPrograms);
|
lstrcpyA(path, CommonPrograms);
|
||||||
else
|
else
|
||||||
|
@ -365,12 +362,6 @@ static void CheckFileExistsInProgramGroups(const char *nameToCheck, int shouldEx
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
HeapFree(GetProcessHeap(), 0, path);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
ok (FALSE, "Could not Allocate Path Buffer\n");
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Create Group Test.
|
/* Create Group Test.
|
||||||
|
|
Loading…
Reference in New Issue