imaadp32.acm: Don't truncate a pointer by casting it to a DWORD.

Michael Stefaniuc mstefani at redhat.de
Wed Feb 18 15:46:59 CST 2009


---
 dlls/imaadp32.acm/imaadp32.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/imaadp32.acm/imaadp32.c b/dlls/imaadp32.acm/imaadp32.c
index f784f59..dd3cc5d 100644
--- a/dlls/imaadp32.acm/imaadp32.c
+++ b/dlls/imaadp32.acm/imaadp32.c
@@ -688,7 +688,7 @@ static	LRESULT	ADPCM_StreamOpen(PACMDRVSTREAMINSTANCE adsi)
     aad = HeapAlloc(GetProcessHeap(), 0, sizeof(AcmAdpcmData));
     if (aad == 0) return MMSYSERR_NOMEM;
 
-    adsi->dwDriver = (DWORD)aad;
+    adsi->dwDriver = (DWORD_PTR)aad;
 
     if (adsi->pwfxSrc->wFormatTag == WAVE_FORMAT_PCM &&
 	adsi->pwfxDst->wFormatTag == WAVE_FORMAT_PCM)
-- 
1.6.2.rc1
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20090218/5eba0e45/attachment.pgp 


More information about the wine-patches mailing list