Commit 72e1be10 authored by Uwe Bonnes's avatar Uwe Bonnes Committed by Alexandre Julliard

Corrected WinMain.

Added test case for RegCreateKeyEx showing win95 behaviour.
parent a6795414
...@@ -128,6 +128,34 @@ void TestCreateKeyEx() ...@@ -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 * TestDeleteKey
*/ */
void TestDeleteKey() void TestDeleteKey()
...@@ -617,7 +645,7 @@ void TestSequence1() ...@@ -617,7 +645,7 @@ void TestSequence1()
} }
int PASCAL WinMain (HANDLE inst, HANDLE prev, LPSTR cmdline, int show) int PASCAL WinMain (HINSTANCE inst, HINSTANCE prev, LPSTR cmdline, int show)
{ {
/* These can be in any order */ /* These can be in any order */
...@@ -646,6 +674,7 @@ int PASCAL WinMain (HANDLE inst, HANDLE prev, LPSTR cmdline, int show) ...@@ -646,6 +674,7 @@ int PASCAL WinMain (HANDLE inst, HANDLE prev, LPSTR cmdline, int show)
TestSetValue(); TestSetValue();
TestSetValueEx(); TestSetValueEx();
TestUnLoadKey(); TestUnLoadKey();
TestCreateKeyEx1();
/* Now we have some sequence testing */ /* Now we have some sequence testing */
TestSequence1(); TestSequence1();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment