Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
7af70c2c
Commit
7af70c2c
authored
Jul 07, 2009
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell32/tests: Revive the test for CSIDL_SYSTEMX86.
parent
43e90c8f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
4 deletions
+14
-4
shellpath.c
dlls/shell32/tests/shellpath.c
+14
-4
No files found.
dlls/shell32/tests/shellpath.c
View file @
7af70c2c
...
...
@@ -89,6 +89,7 @@ static HRESULT (WINAPI *pSHGetSpecialFolderLocation)(HWND, int, LPITEMIDLIST *);
static
LPITEMIDLIST
(
WINAPI
*
pILFindLastID
)(
LPCITEMIDLIST
);
static
int
(
WINAPI
*
pSHFileOperationA
)(
LPSHFILEOPSTRUCTA
);
static
HRESULT
(
WINAPI
*
pSHGetMalloc
)(
LPMALLOC
*
);
static
UINT
(
WINAPI
*
pGetSystemWow64DirectoryA
)(
LPSTR
,
UINT
);
static
DLLVERSIONINFO
shellVersion
=
{
0
};
static
LPMALLOC
pMalloc
;
static
const
BYTE
guidType
[]
=
{
PT_GUID
};
...
...
@@ -684,10 +685,17 @@ static void testSystemDir(void)
"GetSystemDirectory returns %s SHGetSpecialFolderPath returns %s
\n
"
,
systemDir
,
systemShellPath
);
}
/* CSIDL_SYSTEMX86 isn't checked in the same way, since it's different
* on Win64 (and non-x86 Windows systems, if there are any still in
* existence) than on Win32.
*/
if
(
!
pGetSystemWow64DirectoryA
||
!
pGetSystemWow64DirectoryA
(
systemDir
,
sizeof
(
systemDir
)))
GetSystemDirectoryA
(
systemDir
,
sizeof
(
systemDir
));
myPathRemoveBackslashA
(
systemDir
);
if
(
pSHGetSpecialFolderPathA
(
NULL
,
systemShellPath
,
CSIDL_SYSTEMX86
,
FALSE
))
{
myPathRemoveBackslashA
(
systemShellPath
);
ok
(
!
lstrcmpiA
(
systemDir
,
systemShellPath
),
"GetSystemDirectory returns %s SHGetSpecialFolderPath returns %s
\n
"
,
systemDir
,
systemShellPath
);
}
}
/* Globals used by subprocesses */
...
...
@@ -871,6 +879,8 @@ START_TEST(shellpath)
if
(
!
init
())
return
;
loadShell32
();
pGetSystemWow64DirectoryA
=
(
void
*
)
GetProcAddress
(
GetModuleHandleA
(
"kernel32.dll"
),
"GetSystemWow64DirectoryA"
);
if
(
myARGC
>=
3
)
doChild
(
myARGV
[
2
]);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment