Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
361ee299
Commit
361ee299
authored
Jan 17, 2005
by
Paul Vriens
Committed by
Alexandre Julliard
Jan 17, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use a registry key for copying, that's known on every system.
parent
8e927a6a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
shreg.c
dlls/shlwapi/tests/shreg.c
+4
-4
No files found.
dlls/shlwapi/tests/shreg.c
View file @
361ee299
...
...
@@ -32,7 +32,7 @@
/* Keys used for testing */
#define REG_TEST_KEY "Software\\Wine\\Test"
#define REG_CURRENT_VERSION "Software\\Microsoft\\Windows
NT
\\CurrentVersion"
#define REG_CURRENT_VERSION "Software\\Microsoft\\Windows\\CurrentVersion"
static
HMODULE
hshlwapi
;
typedef
DWORD
(
WINAPI
*
SHCopyKeyA_func
)(
HKEY
,
LPCSTR
,
HKEY
,
DWORD
);
...
...
@@ -255,16 +255,16 @@ static void test_SHCopyKey(void)
RegCloseKey
(
hKeySrc
);
RegCloseKey
(
hKeyDst
);
/* Check we copied the sub keys, i.e. AeDebug from the default wine registry
*/
/* Check we copied the sub keys, i.e. something that's on every windows system (including Wine)
*/
hKeyDst
=
NULL
;
if
(
RegOpenKeyA
(
HKEY_CURRENT_USER
,
REG_TEST_KEY
"
\\
CopyDestination
\\
AeDebug
"
,
&
hKeyDst
)
||
!
hKeyDst
)
if
(
RegOpenKeyA
(
HKEY_CURRENT_USER
,
REG_TEST_KEY
"
\\
CopyDestination
\\
Setup
"
,
&
hKeyDst
)
||
!
hKeyDst
)
{
ok
(
0
,
"didn't open copy
\n
"
);
return
;
}
/* And the we copied the values too */
ok
(
!
SHQueryValueExA
(
hKeyDst
,
"
Debugge
r"
,
NULL
,
NULL
,
NULL
,
NULL
),
"SHQueryValueExA failed
\n
"
);
ok
(
!
SHQueryValueExA
(
hKeyDst
,
"
BootDi
r"
,
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