mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 17:16:04 +00:00
[MSACM32] Sync with Wine Staging 4.18. CORE-16441
This commit is contained in:
parent
36acadd755
commit
323975a79e
7 changed files with 51 additions and 47 deletions
|
@ -21,8 +21,6 @@
|
|||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
#include "wine/port.h"
|
||||
|
||||
#include <stdarg.h>
|
||||
#include <stdio.h>
|
||||
|
@ -38,7 +36,6 @@
|
|||
#include "msacmdrv.h"
|
||||
#include "wineacm.h"
|
||||
#include "wine/debug.h"
|
||||
#include "wine/unicode.h"
|
||||
|
||||
WINE_DEFAULT_DEBUG_CHANNEL(msacm);
|
||||
|
||||
|
@ -441,11 +438,11 @@ LRESULT WINAPI acmDriverMessage(HACMDRIVER had, UINT uMsg, LPARAM lParam1, LPARA
|
|||
|
||||
pConfigInfo->dwDCISize = iStructSize;
|
||||
|
||||
section_name = HeapAlloc(MSACM_hHeap, 0, (strlenW(drivers32) + 1) * sizeof(WCHAR));
|
||||
if (section_name) strcpyW(section_name, drivers32);
|
||||
section_name = HeapAlloc(MSACM_hHeap, 0, (lstrlenW(drivers32) + 1) * sizeof(WCHAR));
|
||||
if (section_name) lstrcpyW(section_name, drivers32);
|
||||
pConfigInfo->lpszDCISectionName = section_name;
|
||||
alias_name = HeapAlloc(MSACM_hHeap, 0, (strlenW(pAlias) + 1) * sizeof(WCHAR));
|
||||
if (alias_name) strcpyW(alias_name, pAlias);
|
||||
alias_name = HeapAlloc(MSACM_hHeap, 0, (lstrlenW(pAlias) + 1) * sizeof(WCHAR));
|
||||
if (alias_name) lstrcpyW(alias_name, pAlias);
|
||||
pConfigInfo->lpszDCIAliasName = alias_name;
|
||||
|
||||
if (pConfigInfo->lpszDCISectionName == NULL || pConfigInfo->lpszDCIAliasName == NULL) {
|
||||
|
@ -600,8 +597,7 @@ MMRESULT WINAPI acmDriverOpen(PHACMDRIVER phad, HACMDRIVERID hadid, DWORD fdwOpe
|
|||
return MMSYSERR_NOERROR;
|
||||
gotError:
|
||||
WARN("failed: ret = %08x\n", ret);
|
||||
if (pad && !pad->hDrvr)
|
||||
HeapFree(MSACM_hHeap, 0, pad);
|
||||
HeapFree(MSACM_hHeap, 0, pad);
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue