Hello all,

I'm a Windows software developer and I'm trying to execute an application 
under the wine environment.
Now I have a problem introduced with wine 0.9.49.

I use the function RegOverridePredefKey from the advapi32.dll.
In wine 0.9.49 a stub entry for this function was created, but the 
implementation is missing.
To hold my code running, I need any implememtation for this function.
Please apply the attached patch for a stub implementation.

Thank you 
Jens
diff -urN wine-0.9.52/dlls/advapi32/advapi32.spec wine-0.9.52_new/dlls/advapi32/advapi32.spec
--- wine-0.9.52/dlls/advapi32/advapi32.spec	2007-12-28 16:26:23.000000000 +0100
+++ wine-0.9.52_new/dlls/advapi32/advapi32.spec	2008-01-04 21:35:05.000000000 +0100
@@ -499,7 +499,7 @@
 @ stdcall RegOpenKeyExW(long wstr long long ptr)
 @ stdcall RegOpenKeyW(long wstr ptr)
 @ stdcall RegOpenUserClassesRoot(ptr long long ptr)
-@ stub RegOverridePredefKey
+@ stdcall RegOverridePredefKey(long long)
 @ stdcall RegQueryInfoKeyA(long ptr ptr ptr ptr ptr ptr ptr ptr ptr ptr ptr)
 @ stdcall RegQueryInfoKeyW(long ptr ptr ptr ptr ptr ptr ptr ptr ptr ptr ptr)
 @ stdcall RegQueryMultipleValuesA(long ptr long ptr ptr)
diff -urN wine-0.9.52/dlls/advapi32/registry.c wine-0.9.52_new/dlls/advapi32/registry.c
--- wine-0.9.52/dlls/advapi32/registry.c	2007-12-28 16:26:23.000000000 +0100
+++ wine-0.9.52_new/dlls/advapi32/registry.c	2008-01-04 21:34:59.000000000 +0100
@@ -2407,6 +2407,45 @@
 }
 
 /******************************************************************************
+ * RegOverridePredefKey [EMAIL PROTECTED]
+ *
+ * Maps a predefined registry key to the specified registry key.
+ *
+ * PARAMS
+ *  hKey     [I] A handle to one of the following predefined keys:
+ *               HKEY_CLASSES_ROOT
+ *               HKEY_CURRENT_CONFIG
+ *               HKEY_CURRENT_USER
+ *               HKEY_LOCAL_MACHINE
+ *               HKEY_PERFORMANCE_DATA
+ *               HKEY_USERS
+ *  hNewHKey [I] A handle to an open registry key. This handle is returned by the RegCreateKeyEx or RegOpenKeyEx function. 
+ *               It cannot be one of the predefined keys. The function maps hKey to refer to the hNewHKey key. 
+ *               This affects only the calling process.
+ *               If hNewHKey is NULL, the function restores the default mapping of the predefined key.
+ *
+ * RETURNS
+ *  Success: ERROR_SUCCESS
+ *  Failure: the return value is a nonzero error code defined in Winerror.h
+ * 
+ * NOTES
+ *  The RegOverridePredefKey function is intended for software installation programs.
+ *  It allows them to remap a predefined key, load a DLL component that will be installed on the system, 
+ *  call an entry point in the DLL, and examine the changes to the registry that the component attempted to make. 
+ *  The installation program can then write those changes to the locations intended by the DLL, 
+ *  or make changes to the data before writing it.
+ * 
+ * FIXME
+ *  function must be implemented
+ */
+
+LSTATUS WINAPI RegOverridePredefKey(HKEY hKey, HKEY hNewHKey)
+  {
+  FIXME("(%p, %p) stub\n", hKey, hNewHKey);
+  return ERROR_CALL_NOT_IMPLEMENTED;
+  }
+
+/******************************************************************************
  * load_string [Internal]
  *
  * This is basically a copy of user32/resource.c's LoadStringW. Necessary to


Reply via email to