# HG changeset patch # User alex # Date 1050952591 0 # Node ID 1a6057610a61db3ce7f9bdbace5f75d28ad261ba # Parent 9d7477d0d64df32eedd7ce5159e16d845f228122 cygwin support by Sascha Sommer diff -r 9d7477d0d64d -r 1a6057610a61 loader/afl.c --- 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;