vdmdbg: Add a stub implementation of VDMEnumTaskWOW

James Hawkins truiken at gmail.com
Mon Jul 16 21:42:48 CDT 2007


Hi,

Office 2003 apps call this function and crash (though they recover).

Changelog:
* Add a stub implementation of VDMEnumTaskWOW.

 dlls/vdmdbg/vdmdbg.c    |   14 ++++++++++++++
 dlls/vdmdbg/vdmdbg.spec |    2 +-
 include/vdmdbg.h        |   38 ++++++++++++++++++++++++++++++++++++++
 3 files changed, 53 insertions(+), 1 deletions(-)

-- 
James Hawkins
-------------- next part --------------
diff --git a/dlls/vdmdbg/vdmdbg.c b/dlls/vdmdbg/vdmdbg.c
index 2c215e3..549b638 100644
--- a/dlls/vdmdbg/vdmdbg.c
+++ b/dlls/vdmdbg/vdmdbg.c
@@ -19,6 +19,20 @@
 #include <stdarg.h>
 #include "windef.h"
 #include "winbase.h"
+#include "vdmdbg.h"
+
+#include "wine/debug.h"
+
+WINE_DEFAULT_DEBUG_CHANNEL(vdmdbg);
+
+/***********************************************************************
+ *      VDMEnumTaskWOW  (VDMDBG.@)
+ */
+INT WINAPI VDMEnumTaskWOW(DWORD dwProcessId, TASKENUMPROC fp, LPARAM lparam)
+{
+    FIXME("(%d, %p): stub!\n", dwProcessId, fp);
+    return 0;
+}
 
 /***********************************************************************
  *		DllMain  (VDMDBG.@)
diff --git a/dlls/vdmdbg/vdmdbg.spec b/dlls/vdmdbg/vdmdbg.spec
index d129a05..4131271 100644
--- a/dlls/vdmdbg/vdmdbg.spec
+++ b/dlls/vdmdbg/vdmdbg.spec
@@ -3,7 +3,7 @@ # vdmdbg.dll - VDM debugging support lib
 @ stub VDMBreakThread
 @ stub VDMDetectWOW
 @ stub VDMEnumProcessWOW
-@ stub VDMEnumTaskWOW
+@ stdcall VDMEnumTaskWOW(long ptr long)
 @ stub VDMEnumTaskWOWEx
 @ stub VDMGetModuleSelector
 @ stub VDMGetPointer
diff --git a/include/vdmdbg.h b/include/vdmdbg.h
new file mode 100644
index 0000000..7b2b49b
--- /dev/null
+++ b/include/vdmdbg.h
@@ -0,0 +1,36 @@
+/*
+ * VDMDBG definitions
+ *
+ * Copyright (C) 2007 James Hawkins
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * 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
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
+ */
+
+#ifndef __WINE_VDMDBG_H
+#define __WINE_VDMDBG_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif /* defined(__cplusplus) */
+
+typedef BOOL (WINAPI *TASKENUMPROC)(DWORD dwThreadId, WORD hMod16, WORD hTask16, LPARAM lpUserDefined);
+
+INT WINAPI VDMEnumTaskWOW(DWORD dwProcessId, TASKENUMPROC fp, LPARAM lparam);
+
+#ifdef __cplusplus
+} /* extern "C" */
+#endif /* defined(__cplusplus) */
+
+#endif /* __WINE_VDMDBG_H */
-- 
1.4.1


More information about the wine-patches mailing list