From b94ac22f16709c14f26ff42d0c412e7b98cca7dc Mon Sep 17 00:00:00 2001 From: Eric Pouech Date: Sat, 3 Apr 1999 11:17:31 +0000 Subject: [PATCH] mmioOpen() now handles correctly MMIO_PARSE flag. --- multimedia/mmio.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/multimedia/mmio.c b/multimedia/mmio.c index 4bd4df65220..9a996f3bd9c 100644 --- a/multimedia/mmio.c +++ b/multimedia/mmio.c @@ -257,6 +257,15 @@ static HMMIO16 MMIO_Open(LPSTR szFileName, MMIOINFO16 * lpmmioinfo, TRACE(mmio, "('%s', %p, %08lX);\n", szFileName, lpmmioinfo, dwOpenFlags); + if (dwOpenFlags & MMIO_PARSE) { + char buffer[MAX_PATH]; + + if (GetFullPathNameA(szFileName, sizeof(buffer), buffer, NULL) >= sizeof(buffer)) + return (HMMIO16)FALSE; + strcpy(szFileName, buffer); + return (HMMIO16)TRUE; + } + hmmio = GlobalAlloc16(GHND, sizeof(MMIOINFO16)); lpmminfo = (LPMMIOINFO16)GlobalLock16(hmmio); if (lpmminfo == NULL)