msacm32: Avoid using the long type.

This commit is contained in:
Michael Stefaniuc 2010-05-21 20:34:53 +02:00 committed by Alexandre Julliard
parent 23f9b07d6a
commit ff2813364a
1 changed files with 2 additions and 2 deletions

View File

@ -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));