Shell32 patch 4

Martin Fuchs martin-fuchs at gmx.net
Sat Jan 17 05:17:50 CST 2004


Changelog:
- fix typo
- return string length from SHELL32_GUIDToStringA() -> needed for following patches


Index: shfldr.h
===================================================================
RCS file: /home/wine/wine/dlls/shell32/shfldr.h,v
retrieving revision 1.4
diff -u -p -d -r1.4 shfldr.h
--- shfldr.h    30 Dec 2003 19:24:22 -0000      1.4
+++ shfldr.h    17 Jan 2004 11:17:23 -0000
@@ -13,7 +13,7 @@
  *
  * This library is distributed in the hope that it will be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
-< * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  * Lesser General Public License for more details.
  *
  * You should have received a copy of the GNU Lesser General Public
@@ -47,9 +47,9 @@ HRESULT SHELL32_BindToChild (LPCITEMIDLI

 HRESULT SHELL32_CompareIDs (IShellFolder * iface, LPARAM lParam, LPCITEMIDLIST pidl1, LPCITEMIDLIST pidl2);

-static inline void SHELL32_GUIDToStringA (REFGUID guid, LPSTR str)
+static inline int SHELL32_GUIDToStringA (REFGUID guid, LPSTR str)
 {
-    sprintf(str, "{%08lx-%04x-%04x-%02x%02x-%02x%02x%02x%02x%02x%02x}",
+    return sprintf(str, "{%08lx-%04x-%04x-%02x%02x-%02x%02x%02x%02x%02x%02x}",
             guid->Data1, guid->Data2, guid->Data3,
             guid->Data4[0], guid->Data4[1], guid->Data4[2], guid->Data4[3],
             guid->Data4[4], guid->Data4[5], guid->Data4[6], guid->Data4[7]);





More information about the wine-patches mailing list