[PATCH 6/6] dsound: Dont use a winelib function in regsvr
Maarten Lankhorst
m.b.lankhorst at gmail.com
Tue Nov 24 05:32:44 CST 2009
---
dlls/dsound/Makefile.in | 2 +-
dlls/dsound/regsvr.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/dsound/Makefile.in b/dlls/dsound/Makefile.in
index bbac7f9..c45dfc0 100644
--- a/dlls/dsound/Makefile.in
+++ b/dlls/dsound/Makefile.in
@@ -4,7 +4,7 @@ SRCDIR = @srcdir@
VPATH = @srcdir@
MODULE = dsound.dll
IMPORTLIB = dsound
-IMPORTS = dxguid uuid winmm ole32 advapi32 kernel32 ntdll
+IMPORTS = dxguid uuid winmm ole32 advapi32 kernel32 ntdll user32
C_SRCS = \
buffer.c \
diff --git a/dlls/dsound/regsvr.c b/dlls/dsound/regsvr.c
index 49c648a..3cbc79d 100644
--- a/dlls/dsound/regsvr.c
+++ b/dlls/dsound/regsvr.c
@@ -161,7 +161,7 @@ static HRESULT register_interfaces(struct regsvr_interface const *list)
KEY_READ | KEY_WRITE, NULL, &key, NULL);
if (res != ERROR_SUCCESS) goto error_close_iid_key;
- sprintfW(buf, fmt, list->num_methods);
+ wsprintfW(buf, fmt, list->num_methods);
res = RegSetValueExW(key, NULL, 0, REG_SZ,
(CONST BYTE*)buf,
(lstrlenW(buf) + 1) * sizeof(WCHAR));
--
1.6.5.3
--------------040304010307080603030903--
More information about the wine-patches
mailing list