CVS: winex/win32 device.c,1.8,1.9

[email protected] 31 Jul 2007 19:58:21 -0000
Newsgroups gmane.comp.emulators.winex.cvs
Message-ID <[email protected]>
Subject: winex/win32 device.c,1.8,1.9Update of /var/lib/cvsd/cvsroot/winex/win32
In directory agravaine:/tmp/cvs-serv2115/win32

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


Index: device.c
===================================================================
RCS file: /var/lib/cvsd/cvsroot/winex/win32/device.c,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- device.c	29 Mar 2007 14:04:03 -0000	1.8
+++ device.c	31 Jul 2007 19:58:19 -0000	1.9
@@ -656,7 +656,7 @@
     case 0x001C:  /* RegFlushKey */
     {
         HKEY    hkey       = (HKEY)stack32_pop( context );
-        return RegFlushKey( hkey );
+        return RtlNtStatusToDosError (NtFlushKey (hkey));
     }
 
     case 0x001D:  /* RegQueryInfoKey */
@@ -688,7 +688,9 @@
     {
         HKEY    hkey       = (HKEY)  stack32_pop( context );
         LPCSTR  lpszSubKey = (LPCSTR)stack32_pop( context );
-        return RegUnLoadKeyA( hkey, lpszSubKey );
+        FIXME ("(%p, %s): stub (should call NtUnloadKey)\n",
+               (void *)hkey, lpszSubKey);
+        return ERROR_SUCCESS;
     }
 
     case 0x0023:  /* RegSaveKey */
@@ -710,7 +712,9 @@
         LPCSTR  lpszSubKey = (LPCSTR)stack32_pop( context );
         LPCSTR  lpszNewFile= (LPCSTR)stack32_pop( context );
         LPCSTR  lpszOldFile= (LPCSTR)stack32_pop( context );
-        return RegReplaceKeyA( hkey, lpszSubKey, lpszNewFile, lpszOldFile );
+        FIXME ("(%p, %s, %s, %s): stub (should call NtReplaceKey)\n",
+               (void *)hkey, lpszSubKey, lpszNewFile, lpszOldFile);
+        return ERROR_SUCCESS;
     }
     case 0x0000: /* PageReserve */
       {