Module: wine Branch: master Commit: ff2813364a8426a54d268903e6eb95f749ae6a5d URL: http://source.winehq.org/git/wine.git/?a=commit;h=ff2813364a8426a54d268903e6...
Author: Michael Stefaniuc mstefani@redhat.de Date: Fri May 21 20:34:53 2010 +0200
msacm32: Avoid using the long type.
---
dlls/msacm32/driver.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/msacm32/driver.c b/dlls/msacm32/driver.c index c02d89f..d0b543c 100644 --- a/dlls/msacm32/driver.c +++ b/dlls/msacm32/driver.c @@ -77,8 +77,8 @@ MMRESULT WINAPI acmDriverAddA(PHACMDRIVERID phadid, HINSTANCE hinstModule,
/* A->W translation of name */ if ((fdwAdd & ACM_DRIVERADDF_TYPEMASK) == ACM_DRIVERADDF_NAME) { - unsigned long len; - + INT len; + if (lParam == 0) return MMSYSERR_INVALPARAM; len = MultiByteToWideChar(CP_ACP, 0, (LPSTR)lParam, -1, NULL, 0); driverW = HeapAlloc(MSACM_hHeap, 0, len * sizeof(WCHAR));