shell32/tests: Fix the system directory test for old WoW64 platforms.
This commit is contained in:
parent
875f726077
commit
9d44153273
|
@ -675,7 +675,7 @@ static void testWinDir(void)
|
||||||
*/
|
*/
|
||||||
static void testSystemDir(void)
|
static void testSystemDir(void)
|
||||||
{
|
{
|
||||||
char systemShellPath[MAX_PATH], systemDir[MAX_PATH] = { 0 };
|
char systemShellPath[MAX_PATH], systemDir[MAX_PATH], systemDirx86[MAX_PATH];
|
||||||
|
|
||||||
if (!pSHGetSpecialFolderPathA) return;
|
if (!pSHGetSpecialFolderPathA) return;
|
||||||
|
|
||||||
|
@ -689,13 +689,13 @@ static void testSystemDir(void)
|
||||||
systemDir, systemShellPath);
|
systemDir, systemShellPath);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!pGetSystemWow64DirectoryA || !pGetSystemWow64DirectoryA(systemDir, sizeof(systemDir)))
|
if (!pGetSystemWow64DirectoryA || !pGetSystemWow64DirectoryA(systemDirx86, sizeof(systemDirx86)))
|
||||||
GetSystemDirectoryA(systemDir, sizeof(systemDir));
|
GetSystemDirectoryA(systemDirx86, sizeof(systemDirx86));
|
||||||
myPathRemoveBackslashA(systemDir);
|
myPathRemoveBackslashA(systemDirx86);
|
||||||
if (pSHGetSpecialFolderPathA(NULL, systemShellPath, CSIDL_SYSTEMX86, FALSE))
|
if (pSHGetSpecialFolderPathA(NULL, systemShellPath, CSIDL_SYSTEMX86, FALSE))
|
||||||
{
|
{
|
||||||
myPathRemoveBackslashA(systemShellPath);
|
myPathRemoveBackslashA(systemShellPath);
|
||||||
ok(!lstrcmpiA(systemDir, systemShellPath),
|
ok(!lstrcmpiA(systemDirx86, systemShellPath) || broken(!lstrcmpiA(systemDir, systemShellPath)),
|
||||||
"GetSystemDirectory returns %s SHGetSpecialFolderPath returns %s\n",
|
"GetSystemDirectory returns %s SHGetSpecialFolderPath returns %s\n",
|
||||||
systemDir, systemShellPath);
|
systemDir, systemShellPath);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue