cabinet: Implement GetDllVersion (a little bit useless, but we never know)

Guillaume Charifi guillaume.charifi at sfr.fr
Fri Jul 4 13:29:53 CDT 2014


---
 dlls/cabinet/cabinet.spec   |  2 +-
 dlls/cabinet/cabinet_main.c | 18 ++++++++++++++++++
 2 files changed, 19 insertions(+), 1 deletion(-)

diff --git a/dlls/cabinet/cabinet.spec b/dlls/cabinet/cabinet.spec
index 96127cf..2001c87 100644
--- a/dlls/cabinet/cabinet.spec
+++ b/dlls/cabinet/cabinet.spec
@@ -1,4 +1,4 @@
-1 stub GetDllVersion
+1 stdcall GetDllVersion()
 2 stdcall -private DllGetVersion (ptr)
 3 stdcall Extract(ptr str)
 4 stub DeleteExtractedFiles
diff --git a/dlls/cabinet/cabinet_main.c b/dlls/cabinet/cabinet_main.c
index ef6698d..2fb7738 100644
--- a/dlls/cabinet/cabinet_main.c
+++ b/dlls/cabinet/cabinet_main.c
@@ -39,6 +39,24 @@ WINE_DEFAULT_DEBUG_CHANNEL(cabinet);
 
 
 /***********************************************************************
+ * GetDllVersion (CABINET.1)
+ *
+ * Retrieves version information string of the 'CABINET.DLL'
+ *
+ * PARAMS
+ *     (none)
+ *
+ * RETURNS
+ *     The version number of the file (string).
+ */
+LPCSTR WINAPI GetDllVersion (void)
+{
+  WARN("hmmm... not right version number \"5.1.1106.1\"?\n");
+
+  return "5.1.1106.1";
+}
+
+/***********************************************************************
  * DllGetVersion (CABINET.2)
  *
  * Retrieves version information of the 'CABINET.DLL'



More information about the wine-patches mailing list