msacm32: Avoid using the long type.
This commit is contained in:
parent
23f9b07d6a
commit
ff2813364a
|
@ -77,8 +77,8 @@ MMRESULT WINAPI acmDriverAddA(PHACMDRIVERID phadid, HINSTANCE hinstModule,
|
||||||
|
|
||||||
/* A->W translation of name */
|
/* A->W translation of name */
|
||||||
if ((fdwAdd & ACM_DRIVERADDF_TYPEMASK) == ACM_DRIVERADDF_NAME) {
|
if ((fdwAdd & ACM_DRIVERADDF_TYPEMASK) == ACM_DRIVERADDF_NAME) {
|
||||||
unsigned long len;
|
INT len;
|
||||||
|
|
||||||
if (lParam == 0) return MMSYSERR_INVALPARAM;
|
if (lParam == 0) return MMSYSERR_INVALPARAM;
|
||||||
len = MultiByteToWideChar(CP_ACP, 0, (LPSTR)lParam, -1, NULL, 0);
|
len = MultiByteToWideChar(CP_ACP, 0, (LPSTR)lParam, -1, NULL, 0);
|
||||||
driverW = HeapAlloc(MSACM_hHeap, 0, len * sizeof(WCHAR));
|
driverW = HeapAlloc(MSACM_hHeap, 0, len * sizeof(WCHAR));
|
||||||
|
|
Loading…
Reference in New Issue