Mercurial > mplayer.hg
changeset 9961:1a6057610a61
cygwin support by Sascha Sommer
author | alex |
---|---|
date | Mon, 21 Apr 2003 19:16:31 +0000 |
parents | 9d7477d0d64d |
children | 496fbdabeb7c |
files | loader/afl.c |
diffstat | 1 files changed, 7 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/loader/afl.c Mon Apr 21 17:24:29 2003 +0000 +++ b/loader/afl.c Mon Apr 21 19:16:31 2003 +0000 @@ -273,6 +273,9 @@ TRACE("('%s', '%x', 0x%08x)\n", pszFileName, wFormatTag, hinstModule); +#ifndef WIN32_LOADER + MSACM_hHeap = GetProcessHeap(); +#endif padid = (PWINE_ACMDRIVERID) HeapAlloc(MSACM_hHeap, 0, sizeof(WINE_ACMDRIVERID)); padid->pszFileName = (char*)malloc(strlen(pszFileName)+1); strcpy(padid->pszFileName, pszFileName); @@ -494,7 +497,9 @@ if (phas) *phas = (HACMSTREAM)was; TRACE("=> (%d)\n", ret); +#ifdef WIN32_LOADER CodecAlloc(); +#endif return ret; } errCleanUp: @@ -521,7 +526,9 @@ if (was->hAcmDriver) acmDriverClose(was->hAcmDriver, 0L); HeapFree(MSACM_hHeap, 0, was); +#ifdef WIN32_LOADER CodecRelease(); +#endif } TRACE("=> (%d)\n", ret); return ret;