[ros-diffs] [dchapyshev] 39315: - Add file for stubs - Add stub implementation for SHLocalAlloc, SHLocalFree, SHLocalReAlloc, AddCommasW, ShortSizeFormatW - Partially remove unneeded stuff from .spec

dchapyshev at svn.reactos.org dchapyshev at svn.reactos.org
Tue Feb 3 13:50:50 CET 2009


Author: dchapyshev
Date: Tue Feb  3 06:50:50 2009
New Revision: 39315

URL: http://svn.reactos.org/svn/reactos?rev=39315&view=rev
Log:
- Add file for stubs
- Add stub implementation for SHLocalAlloc, SHLocalFree, SHLocalReAlloc, AddCommasW, ShortSizeFormatW
- Partially remove unneeded stuff from .spec

Added:
    trunk/reactos/dll/win32/shell32/stubs.c   (with props)
Modified:
    trunk/reactos/dll/win32/shell32/shell32.rbuild
    trunk/reactos/dll/win32/shell32/shell32.spec

Modified: trunk/reactos/dll/win32/shell32/shell32.rbuild
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/shell32/shell32.rbuild?rev=39315&r1=39314&r2=39315&view=diff
==============================================================================
--- trunk/reactos/dll/win32/shell32/shell32.rbuild [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/shell32/shell32.rbuild [iso-8859-1] Tue Feb  3 06:50:50 2009
@@ -69,6 +69,7 @@
 	<file>shpolicy.c</file>
 	<file>shv_def_cmenu.c</file>
 	<file>startmenu.c</file>
+	<file>stubs.c</file>
 	<file>ros-systray.c</file>
 	<file>fprop.c</file>
 	<file>drive.c</file>

Modified: trunk/reactos/dll/win32/shell32/shell32.spec
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/shell32/shell32.spec?rev=39315&r1=39314&r2=39315&view=diff
==============================================================================
--- trunk/reactos/dll/win32/shell32/shell32.spec [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/shell32/shell32.spec [iso-8859-1] Tue Feb  3 06:50:50 2009
@@ -197,11 +197,11 @@
 197 stub -noname SHGlobalDefect
 198 stdcall -noname SHAbortInvokeCommand()
 199 stdcall ExtractAssociatedIconA(long str ptr)
-200 stub -noname SHLocalAlloc # Fixme
-201 stub -noname SHLocalFree # Fixme
-202 stub -noname SHLocalReAlloc # Fixme
-203 stub -noname AddCommasW # Fixme
-204 stub -noname ShortSizeFormatW # Fixme
+200 stdcall -noname SHLocalAlloc(long long)
+201 stdcall -noname SHLocalFree(ptr)
+202 stdcall -noname SHLocalReAlloc(ptr long long)
+203 stdcall -noname AddCommasW(long wstr)
+204 stdcall -noname ShortSizeFormatW(double)
 205 stdcall Printer_LoadIconsW(wstr ptr ptr)
 206 stdcall ExtractAssociatedIconExA(long str long long)
 207 stdcall ExtractAssociatedIconExW(long wstr long long)
@@ -501,13 +501,3 @@
 #@ stdcall SHRegQueryValueW (long long long long)
 #@ stdcall SHRegQueryValueExW (long wstr ptr ptr ptr ptr)
 #@ stdcall SHRegDeleteKeyW (long wstr)
-#@ stub Desktop_UpdateBriefcaseOnEvent
-#@ stub SHGetFileIcon
-#@ stub Link_AddExtraDataSection
-#@ stub Link_ReadExtraDataSection
-#@ stub Link_RemoveExtraDataSection
-#@ stub ReceiveAddToRecentDocs
-#@ stub FOOBAR1217   # no joke! This is the real name!!
-#@ stub FixupOptionalComponents
-#@ stub OCInstall
-#@ stub SHGetFreeDiskSpace

Added: trunk/reactos/dll/win32/shell32/stubs.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/shell32/stubs.c?rev=39315&view=auto
==============================================================================
--- trunk/reactos/dll/win32/shell32/stubs.c (added)
+++ trunk/reactos/dll/win32/shell32/stubs.c [iso-8859-1] Tue Feb  3 06:50:50 2009
@@ -1,0 +1,73 @@
+/*
+ * COPYRIGHT:       See COPYING in the top level directory
+ * PROJECT:         shell32.dll
+ * FILE:            dll/win32/shell32/stubs.c
+ * PURPOSE:         shell32.dll stubs
+ * PROGRAMMER:      Dmitry Chapyshev (dmitry at reactos.org)
+ * NOTES:           If you implement a function, remove it from this file
+ * UPDATE HISTORY:
+ *      03/02/2009  Created
+ */
+
+
+#include <precomp.h>
+
+WINE_DEFAULT_DEBUG_CHANNEL(shell);
+
+/*
+ * Unimplemented
+ */
+HLOCAL
+WINAPI
+SHLocalAlloc(UINT uFlags, SIZE_T uBytes)
+{
+    FIXME("SHLocalAlloc() stub\n");
+    return NULL;
+}
+
+/*
+ * Unimplemented
+ */
+HLOCAL
+WINAPI
+SHLocalFree(HLOCAL hMem)
+{
+    FIXME("SHLocalFree() stub\n");
+    return NULL;
+}
+
+/*
+ * Unimplemented
+ */
+HLOCAL
+WINAPI
+SHLocalReAlloc(HLOCAL hMem,
+               SIZE_T uBytes,
+               UINT uFlags)
+{
+    FIXME("SHLocalReAlloc() stub\n");
+    return NULL;
+}
+
+/*
+ * Unimplemented
+ */
+LPWSTR
+WINAPI
+AddCommasW(DWORD dwUnknown, LPWSTR lpNumber)
+{
+    LPWSTR lpRetBuf = L"0";
+
+    FIXME("AddCommasW() stub\n");
+    return lpRetBuf;
+}
+
+/*
+ * Unimplemented
+ */
+LPWSTR
+WINAPI
+ShortSizeFormatW(LONGLONG llNumber)
+{
+    return NULL;
+}

Propchange: trunk/reactos/dll/win32/shell32/stubs.c
------------------------------------------------------------------------------
    svn:eol-style = native



More information about the Ros-diffs mailing list