[PATCH] shell32: Cleanup ReadCabinetState exports.

Nikolay Sivov nsivov at codeweavers.com
Tue Oct 20 08:16:54 CDT 2015


Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
---

Ordinal 654 is used directly for ReadCabinetState on Win7.

 dlls/shell32/shell32.spec |  6 +++---
 dlls/shell32/shellord.c   | 15 ---------------
 2 files changed, 3 insertions(+), 18 deletions(-)

diff --git a/dlls/shell32/shell32.spec b/dlls/shell32/shell32.spec
index 91a4138..837f392 100644
--- a/dlls/shell32/shell32.spec
+++ b/dlls/shell32/shell32.spec
@@ -245,10 +245,10 @@
 
  650 stdcall -noname PathIsSameRoot(ptr ptr) PathIsSameRootAW
 
- 651 stdcall -noname ReadCabinetState(long long) # OldReadCabinetState
- 652 stdcall -noname WriteCabinetState(long)
+ 651 stdcall -noname @(ptr long) ReadCabinetState # OldReadCabinetState
+ 652 stdcall -noname WriteCabinetState(ptr)
  653 stdcall -noname PathProcessCommand(long long long long) PathProcessCommandAW
- 654 stdcall @(long long) shell32_654 # ReadCabinetState at 8
+ 654 stdcall ReadCabinetState(ptr long) # ReadCabinetState at 8
 
  660 stdcall -noname FileIconInit(long)
  680 stdcall IsUserAnAdmin()
diff --git a/dlls/shell32/shellord.c b/dlls/shell32/shellord.c
index 7387520..60492de 100644
--- a/dlls/shell32/shellord.c
+++ b/dlls/shell32/shellord.c
@@ -1555,21 +1555,6 @@ BOOL WINAPI SHWaitForFileToOpen(
 }
 
 /************************************************************************
- *	@				[SHELL32.654]
- *
- * NOTES
- *  first parameter seems to be a pointer (same as passed to WriteCabinetState)
- *  second one could be a size (0x0c). The size is the same as the structure saved to
- *  HCU\Software\Microsoft\Windows\CurrentVersion\Explorer\CabinetState
- *  I'm (js) guessing: this one is just ReadCabinetState ;-)
- */
-HRESULT WINAPI shell32_654 (CABINETSTATE *cs, int length)
-{
-	TRACE("%p %d\n",cs,length);
-	return ReadCabinetState(cs,length);
-}
-
-/************************************************************************
  *	RLBuildListOfPaths			[SHELL32.146]
  *
  * NOTES
-- 
2.6.1




More information about the wine-patches mailing list