CVS: winex/misc registry.c,1.17,1.18

[email protected] 31 Jul 2007 19:58:05 -0000
Newsgroups gmane.comp.emulators.winex.cvs
Message-ID <[email protected]>
Subject: winex/misc registry.c,1.17,1.18Update of /var/lib/cvsd/cvsroot/winex/misc
In directory agravaine:/tmp/cvs-serv2054/misc

Modified Files:
	registry.c 
Log Message:
Implement RegFlushKey.
Do some minor cleanups of duplicated functions.


Index: registry.c
===================================================================
RCS file: /var/lib/cvsd/cvsroot/winex/misc/registry.c,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -d -r1.17 -r1.18
--- registry.c	30 Mar 2007 14:40:13 -0000	1.17
+++ registry.c	31 Jul 2007 19:58:03 -0000	1.18
@@ -4,6 +4,7 @@
  * Copyright 1996 Marcus Meissner
  * Copyright 1998 Matthew Becker
  * Copyright 1999 Sylvain St-Germain
+ * Copyright (C) 2007 TransGaming Technologies
  *
  * December 21, 1997 - Kevin Cozens
  * Fixed bugs in the _w95_loadreg() function. Added extra information
@@ -1589,53 +1590,6 @@
 /*                          API FUNCTIONS                                  */
 /***************************************************************************/
 
-/******************************************************************************
- * RegFlushKey [ADVAPI32.@]
- * Immediately writes key to registry.
- * Only returns after data has been written to disk.
- *
- * FIXME: does it really wait until data is written ?
- *
- * PARAMS
- *    hkey [I] Handle of key to write
- *
- * RETURNS
- *    Success: ERROR_SUCCESS
- *    Failure: Error code
- */
-DWORD WINAPI RegFlushKey( HKEY hkey )
-{
-    FIXME( "(%x): stub\n", hkey );
-    return ERROR_SUCCESS;
-}
-
-
-/******************************************************************************
- * RegUnLoadKeyA [ADVAPI32.@]
- */
-LONG WINAPI RegUnLoadKeyA( HKEY hkey, LPCSTR lpSubKey )
-{
-    FIXME("(%x,%s): stub\n",hkey, debugstr_a(lpSubKey));
-    return ERROR_SUCCESS;
-}
-
-
-/******************************************************************************
- * RegReplaceKeyA [ADVAPI32.@]
- */
-LONG WINAPI RegReplaceKeyA( HKEY hkey, LPCSTR lpSubKey, LPCSTR lpNewFile,
-                              LPCSTR lpOldFile )
-{
-    FIXME("(%x,%s,%s,%s): stub\n", hkey, debugstr_a(lpSubKey),
-          debugstr_a(lpNewFile),debugstr_a(lpOldFile));
-    return ERROR_SUCCESS;
-}
-
-
-
-
-
-
 /* 16-bit functions */
 
 /* 0 and 1 are valid rootkeys in win16 shell.dll and are used by
@@ -1771,5 +1725,5 @@
 DWORD WINAPI RegFlushKey16( HKEY hkey )
 {
     fix_win16_hkey( &hkey );
-    return RegFlushKey( hkey );
+    return RtlNtStatusToDosError (NtFlushKey (hkey));
 }