cygwin support by Sascha Sommer

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9962 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
alex 2003-04-21 19:16:31 +00:00
parent 9c160c32b5
commit 1a29847944
1 changed files with 7 additions and 0 deletions

View File

@ -273,6 +273,9 @@ PWINE_ACMDRIVERID MSACM_RegisterDriver(const char* pszFileName,
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 @@ MMRESULT WINAPI acmStreamOpen(PHACMSTREAM phas, HACMDRIVER had, PWAVEFORMATEX pw
if (phas)
*phas = (HACMSTREAM)was;
TRACE("=> (%d)\n", ret);
#ifdef WIN32_LOADER
CodecAlloc();
#endif
return ret;
}
errCleanUp:
@ -521,7 +526,9 @@ MMRESULT WINAPI acmStreamClose(HACMSTREAM has, DWORD fdwClose)
if (was->hAcmDriver)
acmDriverClose(was->hAcmDriver, 0L);
HeapFree(MSACM_hHeap, 0, was);
#ifdef WIN32_LOADER
CodecRelease();
#endif
}
TRACE("=> (%d)\n", ret);
return ret;