[MSACM] add file name trace to acmDriverAdd

Robert Reif reif at earthlink.net
Mon Jan 16 11:40:02 CST 2006


This patch justs adds some debugging information.

Loading a native acm driver using acmDriverAdd seems to be broken.
Passing the driver name to MSACM_RegisterDriver gets further along
but doesn't fix the problem.

-------------- next part --------------
Index: dlls/msacm/driver.c
===================================================================
RCS file: /home/wine/wine/dlls/msacm/driver.c,v
retrieving revision 1.27
diff -p -u -r1.27 driver.c
--- dlls/msacm/driver.c	20 Dec 2005 10:58:38 -0000	1.27
+++ dlls/msacm/driver.c	16 Jan 2006 17:15:49 -0000
@@ -49,6 +49,7 @@ WINE_DEFAULT_DEBUG_CHANNEL(msacm);
 MMRESULT WINAPI acmDriverAddA(PHACMDRIVERID phadid, HINSTANCE hinstModule,
 			      LPARAM lParam, DWORD dwPriority, DWORD fdwAdd)
 {
+    WCHAR nameW[MAX_PATH];
     TRACE("(%p, %p, %08lx, %08lx, %08lx)\n",
           phadid, hinstModule, lParam, dwPriority, fdwAdd);
 
@@ -76,6 +77,9 @@ MMRESULT WINAPI acmDriverAddA(PHACMDRIVE
      * LoadDriver on it, to be sure we can call SendDriverMessage on the
      * hDrvr handle.
      */
+    GetModuleFileNameW(hinstModule, nameW, sizeof(nameW));
+    TRACE("hinstModule: %s\n", debugstr_w(nameW));
+
     *phadid = (HACMDRIVERID) MSACM_RegisterDriver(NULL, NULL, hinstModule);
 
     /* FIXME: lParam, dwPriority and fdwAdd ignored */


More information about the wine-patches mailing list