Author: akhaldi
Date: Tue Nov 17 11:17:12 2015
New Revision: 69913
URL:
http://svn.reactos.org/svn/reactos?rev=69913&view=rev
Log:
[ADVAPI32_VISTA] Import RegSetKeyValueW() from Wine Staging 1.7.55. CORE-10536
Added:
trunk/reactos/dll/win32/advapi32_vista/RegSetKeyValue.c (with props)
Modified:
trunk/reactos/dll/win32/advapi32_vista/CMakeLists.txt
trunk/reactos/dll/win32/advapi32_vista/advapi32_vista.spec
Modified: trunk/reactos/dll/win32/advapi32_vista/CMakeLists.txt
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/advapi32_vista/C…
==============================================================================
--- trunk/reactos/dll/win32/advapi32_vista/CMakeLists.txt [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/advapi32_vista/CMakeLists.txt [iso-8859-1] Tue Nov 17 11:17:12
2015
@@ -8,6 +8,7 @@
list(APPEND SOURCE
DllMain.c
RegDeleteTree.c
+ RegSetKeyValue.c
${CMAKE_CURRENT_BINARY_DIR}/advapi32_vista.def)
add_library(advapi32_vista SHARED ${SOURCE})
Added: trunk/reactos/dll/win32/advapi32_vista/RegSetKeyValue.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/advapi32_vista/R…
==============================================================================
--- trunk/reactos/dll/win32/advapi32_vista/RegSetKeyValue.c (added)
+++ trunk/reactos/dll/win32/advapi32_vista/RegSetKeyValue.c [iso-8859-1] Tue Nov 17
11:17:12 2015
@@ -0,0 +1,25 @@
+
+#include "advapi32_vista.h"
+
+/* Taken from Wine advapi32/registry.c */
+
+/******************************************************************************
+ * RegSetKeyValueW [ADVAPI32.@]
+ */
+LONG WINAPI RegSetKeyValueW( HKEY hkey, LPCWSTR subkey, LPCWSTR name, DWORD type, const
void *data, DWORD len )
+{
+ HKEY hsubkey = NULL;
+ DWORD ret;
+
+ //TRACE("(%p,%s,%s,%d,%p,%d)\n", hkey, debugstr_w(subkey),
debugstr_w(name), type, data, len );
+
+ if (subkey && subkey[0]) /* need to create the subkey */
+ {
+ if ((ret = RegCreateKeyW( hkey, subkey, &hsubkey )) != ERROR_SUCCESS) return
ret;
+ hkey = hsubkey;
+ }
+
+ ret = RegSetValueExW( hkey, name, 0, type, (const BYTE*)data, len );
+ if (hsubkey) RegCloseKey( hsubkey );
+ return ret;
+}
Propchange: trunk/reactos/dll/win32/advapi32_vista/RegSetKeyValue.c
------------------------------------------------------------------------------
svn:eol-style = native
Modified: trunk/reactos/dll/win32/advapi32_vista/advapi32_vista.spec
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/advapi32_vista/a…
==============================================================================
--- trunk/reactos/dll/win32/advapi32_vista/advapi32_vista.spec [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/advapi32_vista/advapi32_vista.spec [iso-8859-1] Tue Nov 17
11:17:12 2015
@@ -1,3 +1,4 @@
@ stdcall RegDeleteTreeA(long str)
@ stdcall RegDeleteTreeW(long wstr)
+@ stdcall RegSetKeyValueW(long wstr wstr long ptr long)