Author: gadamopoulos
Date: Mon Feb 20 20:18:10 2017
New Revision: 73866

URL: http://svn.reactos.org/svn/reactos?rev=73866&view=rev
Log:
[SHLWAPI]: Stub SHPropertyBag_WriteLONG and SHPropertyBag_WriteStr. Patch by 
Jared Smudde. CORE-12805

Modified:
    trunk/reactos/dll/win32/shlwapi/ordinal.c
    trunk/reactos/dll/win32/shlwapi/shlwapi.spec

Modified: trunk/reactos/dll/win32/shlwapi/ordinal.c
URL: 
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/shlwapi/ordinal.c?rev=73866&r1=73865&r2=73866&view=diff
==============================================================================
--- trunk/reactos/dll/win32/shlwapi/ordinal.c   [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/shlwapi/ordinal.c   [iso-8859-1] Mon Feb 20 
20:18:10 2017
@@ -5197,6 +5197,46 @@
     return hr;
 }
 
+#ifdef __REACTOS__
+/**************************************************************************
+ *  SHPropertyBag_WriteLONG (SHLWAPI.497)
+ *
+ * This function asks a property bag to write a named property as a LONG.
+ *
+ * PARAMS
+ *  ppb: a IPropertyBag interface
+ *  pszPropName:  Unicode string that names the property
+ *  lValue: address to receive the property value as a 32-bit signed integer
+ *
+ * RETURNS
+ *  HRESULT codes
+ */
+HRESULT WINAPI SHPropertyBag_WriteLONG(IPropertyBag *ppb, LPCWSTR pszPropName, 
LONG lValue)
+{
+       UNIMPLEMENTED;
+       return E_NOTIMPL;
+}
+
+/**************************************************************************
+ *  SHPropertyBag_WriteStr (SHLWAPI.495)
+ *
+ * This function asks a property bag to write a string as the value of a named 
property.
+ *
+ * PARAMS
+ *  ppb: a IPropertyBag interface
+ *  pszPropName:  Unicode string that names the property
+ *  pValue: address to write the property value
+ *
+ * RETURNS
+ *  HRESULT codes
+ */
+HRESULT WINAPI SHPropertyBag_WriteStr(IPropertyBag *ppb, LPCWSTR pszPropName, 
LPCWSTR pszValue)
+{
+       UNIMPLEMENTED;
+       return E_NOTIMPL;
+}
+#endif
+
 /* return flags for SHGetObjectCompatFlags, names derived from registry value 
names */
 #define OBJCOMPAT_OTNEEDSSFCACHE           0x00000001
 #define OBJCOMPAT_NO_WEBVIEW               0x00000002

Modified: trunk/reactos/dll/win32/shlwapi/shlwapi.spec
URL: 
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/shlwapi/shlwapi.spec?rev=73866&r1=73865&r2=73866&view=diff
==============================================================================
--- trunk/reactos/dll/win32/shlwapi/shlwapi.spec        [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/shlwapi/shlwapi.spec        [iso-8859-1] Mon Feb 20 
20:18:10 2017
@@ -492,9 +492,9 @@
 492 stub -noname PrettifyFileDescriptionW
 493 stub -noname SHPropertyBag_ReadType
 494 stub -noname SHPropertyBag_ReadStr
-495 stub -noname SHPropertyBag_WriteStr
+495 stdcall -noname SHPropertyBag_WriteStr(ptr wstr wstr)
 496 stdcall -noname SHPropertyBag_ReadLONG(ptr wstr ptr)
-497 stub -noname SHPropertyBag_WriteLONG
+497 stdcall -noname SHPropertyBag_WriteLONG(ptr wstr long)
 498 stub -noname SHPropertyBag_ReadBOOLOld
 499 stub -noname SHPropertyBag_WriteBOOL
 500 stdcall AssocGetPerceivedType(wstr ptr ptr ptr)


Reply via email to