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
72e1be10
Commit
72e1be10
authored
Apr 16, 2000
by
Uwe Bonnes
Committed by
Alexandre Julliard
Apr 16, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Corrected WinMain.
Added test case for RegCreateKeyEx showing win95 behaviour.
parent
a6795414
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
1 deletion
+30
-1
regtest.c
programs/regtest/regtest.c
+30
-1
No files found.
programs/regtest/regtest.c
View file @
72e1be10
...
...
@@ -128,6 +128,34 @@ void TestCreateKeyEx()
}
/******************************************************************************
* TestCreateKeyEx
*/
void
TestCreateKeyEx1
()
{
long
lSts
;
HKEY
hkey
,
hkeyP
;
DWORD
dwDisp
;
char
keyname
[]
=
"regtest1"
;
lSts
=
RegOpenKeyEx
(
HKEY_LOCAL_MACHINE
,
"SOFTWARE"
,
0
,
1
,
&
hkeyP
);
if
(
lSts
!=
ERROR_SUCCESS
)
{
xERROR
(
1
,
lSts
);
return
;
}
lSts
=
RegCreateKeyEx
(
hkeyP
,
keyname
,
0
,
0
,
0
,
0xf003f
,
0
,
&
hkey
,
&
dwDisp
);
if
(
lSts
!=
ERROR_SUCCESS
)
{
xERROR
(
2
,
lSts
);
RegCloseKey
(
hkeyP
);
return
;
}
lSts
=
RegDeleteKey
(
hkeyP
,
keyname
);
if
(
lSts
!=
ERROR_SUCCESS
)
xERROR
(
3
,
lSts
);
RegCloseKey
(
hkeyP
);
}
/******************************************************************************
* TestDeleteKey
*/
void
TestDeleteKey
()
...
...
@@ -617,7 +645,7 @@ void TestSequence1()
}
int
PASCAL
WinMain
(
H
ANDLE
inst
,
HANDL
E
prev
,
LPSTR
cmdline
,
int
show
)
int
PASCAL
WinMain
(
H
INSTANCE
inst
,
HINSTANC
E
prev
,
LPSTR
cmdline
,
int
show
)
{
/* These can be in any order */
...
...
@@ -646,6 +674,7 @@ int PASCAL WinMain (HANDLE inst, HANDLE prev, LPSTR cmdline, int show)
TestSetValue
();
TestSetValueEx
();
TestUnLoadKey
();
TestCreateKeyEx1
();
/* Now we have some sequence testing */
TestSequence1
();
...
...
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