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
05988f4f
Commit
05988f4f
authored
Dec 17, 2008
by
Paul Vriens
Committed by
Alexandre Julliard
Dec 17, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shlwapi/tests: Fix some test failures on Vista.
parent
579b8649
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
9 deletions
+12
-9
shreg.c
dlls/shlwapi/tests/shreg.c
+12
-9
No files found.
dlls/shlwapi/tests/shreg.c
View file @
05988f4f
...
...
@@ -31,7 +31,7 @@
/* Keys used for testing */
#define REG_TEST_KEY "Software\\Wine\\Test"
#define REG_CURRENT_VERSION "Software\\Microsoft\\Windows\\CurrentVersion"
#define REG_CURRENT_VERSION "Software\\Microsoft\\Windows\\CurrentVersion
\\explorer
"
static
HMODULE
hshlwapi
;
typedef
DWORD
(
WINAPI
*
SHCopyKeyA_func
)(
HKEY
,
LPCSTR
,
HKEY
,
DWORD
);
...
...
@@ -284,6 +284,12 @@ static void test_SHCopyKey(void)
HKEY
hKeySrc
,
hKeyDst
;
DWORD
dwRet
;
if
(
!
pSHCopyKeyA
)
{
win_skip
(
"SHCopyKeyA is not available
\n
"
);
return
;
}
/* Delete existing destination sub keys */
hKeyDst
=
NULL
;
if
(
!
RegOpenKeyA
(
HKEY_CURRENT_USER
,
REG_TEST_KEY
"
\\
CopyDestination"
,
&
hKeyDst
)
&&
hKeyDst
)
...
...
@@ -305,22 +311,19 @@ static void test_SHCopyKey(void)
if
(
dwRet
||
!
hKeySrc
)
{
ok
(
0
,
"Source couldn't be opened, RegOpenKeyA returned (%u)
\n
"
,
dwRet
);
RegCloseKey
(
hKeyDst
);
return
;
}
if
(
pSHCopyKeyA
)
{
dwRet
=
(
*
pSHCopyKeyA
)(
hKeySrc
,
NULL
,
hKeyDst
,
0
);
ok
(
ERROR_SUCCESS
==
dwRet
,
"Copy failed, ret=(%u)
\n
"
,
dwRet
);
}
dwRet
=
(
*
pSHCopyKeyA
)(
hKeySrc
,
NULL
,
hKeyDst
,
0
);
ok
(
ERROR_SUCCESS
==
dwRet
,
"Copy failed, ret=(%u)
\n
"
,
dwRet
);
RegCloseKey
(
hKeySrc
);
RegCloseKey
(
hKeyDst
);
/* Check we copied the sub keys, i.e. something that's on every windows system (including Wine) */
hKeyDst
=
NULL
;
dwRet
=
RegOpenKeyA
(
HKEY_CURRENT_USER
,
REG_TEST_KEY
"
\\
CopyDestination
\\
S
etup
"
,
&
hKeyDst
);
dwRet
=
RegOpenKeyA
(
HKEY_CURRENT_USER
,
REG_TEST_KEY
"
\\
CopyDestination
\\
S
hell Folders
"
,
&
hKeyDst
);
if
(
dwRet
||
!
hKeyDst
)
{
ok
(
0
,
"Copy couldn't be opened, RegOpenKeyA returned (%u)
\n
"
,
dwRet
);
...
...
@@ -328,7 +331,7 @@ static void test_SHCopyKey(void)
}
/* And the we copied the values too */
ok
(
!
SHQueryValueExA
(
hKeyDst
,
"
BootDir
"
,
NULL
,
NULL
,
NULL
,
NULL
),
"SHQueryValueExA failed
\n
"
);
ok
(
!
SHQueryValueExA
(
hKeyDst
,
"
Common AppData
"
,
NULL
,
NULL
,
NULL
,
NULL
),
"SHQueryValueExA failed
\n
"
);
RegCloseKey
(
hKeyDst
);
}
...
...
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