Dan Kegel : winmm: Use HeapAlloc in the capture test instead of using strdup.
Alexandre Julliard
julliard at winehq.org
Mon May 26 13:13:08 CDT 2008
Module: wine
Branch: master
Commit: b608e39e1f3eeae36b190d07e14ec2a22ae14591
URL: http://source.winehq.org/git/wine.git/?a=commit;h=b608e39e1f3eeae36b190d07e14ec2a22ae14591
Author: Dan Kegel <dank at kegel.com>
Date: Mon May 26 10:12:46 2008 -0700
winmm: Use HeapAlloc in the capture test instead of using strdup.
---
dlls/winmm/tests/capture.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/dlls/winmm/tests/capture.c b/dlls/winmm/tests/capture.c
index e0975df..fb02d40 100644
--- a/dlls/winmm/tests/capture.c
+++ b/dlls/winmm/tests/capture.c
@@ -385,7 +385,8 @@ static void wave_in_test_device(int device)
}
HeapFree(GetProcessHeap(), 0, nameW);
} else if (rc==MMSYSERR_NOTSUPPORTED) {
- nameA=strdup("not supported");
+ nameA=HeapAlloc(GetProcessHeap(), 0, sizeof("not supported"));
+ strcpy(nameA, "not supported");
}
trace(" %s: \"%s\" (%s) %d.%d (%d:%d)\n",dev_name(device),capsA.szPname,
More information about the wine-cvs
mailing list