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
ccc6cfc1
Commit
ccc6cfc1
authored
Jan 02, 2016
by
Nikolay Sivov
Committed by
Alexandre Julliard
Jan 03, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell32/tests: Explicitly compare to HRESULT values.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
ed65fc7c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
shlfolder.c
dlls/shell32/tests/shlfolder.c
+4
-4
No files found.
dlls/shell32/tests/shlfolder.c
View file @
ccc6cfc1
...
...
@@ -1889,14 +1889,14 @@ static void test_SHGetFolderPathA(void)
if
(
!
pIsWow64Process
||
!
pIsWow64Process
(
GetCurrentProcess
(),
&
is_wow64
))
is_wow64
=
FALSE
;
hr
=
pSHGetFolderPathA
(
0
,
CSIDL_PROGRAM_FILES
,
0
,
SHGFP_TYPE_CURRENT
,
path
);
ok
(
!
hr
,
"SHGetFolderPathA failed %x
\n
"
,
hr
);
ok
(
hr
==
S_OK
,
"SHGetFolderPathA failed %x
\n
"
,
hr
);
hr
=
pSHGetFolderPathA
(
0
,
CSIDL_PROGRAM_FILESX86
,
0
,
SHGFP_TYPE_CURRENT
,
path_x86
);
if
(
hr
==
E_FAIL
)
{
win_skip
(
"Program Files (x86) not supported
\n
"
);
return
;
}
ok
(
!
hr
,
"SHGetFolderPathA failed %x
\n
"
,
hr
);
ok
(
hr
==
S_OK
,
"SHGetFolderPathA failed %x
\n
"
,
hr
);
if
(
is_win64
)
{
ok
(
lstrcmpiA
(
path
,
path_x86
),
"paths are identical '%s'
\n
"
,
path
);
...
...
@@ -1924,14 +1924,14 @@ static void test_SHGetFolderPathA(void)
}
hr
=
pSHGetFolderPathA
(
0
,
CSIDL_PROGRAM_FILES_COMMON
,
0
,
SHGFP_TYPE_CURRENT
,
path
);
ok
(
!
hr
,
"SHGetFolderPathA failed %x
\n
"
,
hr
);
ok
(
hr
==
S_OK
,
"SHGetFolderPathA failed %x
\n
"
,
hr
);
hr
=
pSHGetFolderPathA
(
0
,
CSIDL_PROGRAM_FILES_COMMONX86
,
0
,
SHGFP_TYPE_CURRENT
,
path_x86
);
if
(
hr
==
E_FAIL
)
{
win_skip
(
"Common Files (x86) not supported
\n
"
);
return
;
}
ok
(
!
hr
,
"SHGetFolderPathA failed %x
\n
"
,
hr
);
ok
(
hr
==
S_OK
,
"SHGetFolderPathA failed %x
\n
"
,
hr
);
if
(
is_win64
)
{
ok
(
lstrcmpiA
(
path
,
path_x86
),
"paths are identical '%s'
\n
"
,
path
);
...
...
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