winmm/winejack: link to libwine_unicode.so

Francois Gouget fgouget at free.fr
Tue Dec 7 18:42:36 CST 2004


On Tue, 7 Dec 2004, Michael Jung wrote:

> Hi,
>
> I'm having linkage problems with winmm/winejack in the current cvs version.
> It's missing strcpyW.
>
> Changelog:
> - Link winejack.drv.so to libwine_unicode.so
> - Include wine/unicode.h header in audio.c

I believe a better fix would be to use lstrcpyW instead since this is a 
standard Windows API.


Changelog:

  * dlls/winmm/winejack/audio.c

    Use lstrcpyW() instead of the Wine-specific strcpyW().


-- 
Francois Gouget         fgouget at free.fr        http://fgouget.free.fr/
                      f u kn rd ts, ur wy 2 gky 4 ur wn gd.
-------------- next part --------------
Index: dlls/winmm/winejack/audio.c
===================================================================
RCS file: /var/cvs/wine/dlls/winmm/winejack/audio.c,v
retrieving revision 1.18
diff -u -r1.18 audio.c
--- dlls/winmm/winejack/audio.c	7 Dec 2004 14:31:53 -0000	1.18
+++ dlls/winmm/winejack/audio.c	8 Dec 2004 00:33:10 -0000
@@ -932,7 +932,7 @@
 
       WOutDev[i].caps.wMid = 0x00FF; 	/* Manufac ID */
       WOutDev[i].caps.wPid = 0x0001; 	/* Product ID */
-      strcpyW(WOutDev[i].caps.szPname, ini_out);
+      lstrcpyW(WOutDev[i].caps.szPname, ini_out);
 
       snprintf(WOutDev[i].interface_name, sizeof(WOutDev[i].interface_name), "winejack: %d", i);
 
@@ -966,7 +966,7 @@
 
 	WInDev[i].caps.wMid = 0x00FF;
 	WInDev[i].caps.wPid = 0x0001;
-        strcpyW(WInDev[i].caps.szPname, ini_in);
+        lstrcpyW(WInDev[i].caps.szPname, ini_in);
         snprintf(WInDev[i].interface_name, sizeof(WInDev[i].interface_name), "winejack: %d", i);
 
 	WInDev[i].caps.vDriverVersion = 0x0100;


More information about the wine-patches mailing list