mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 11:43:31 +00:00
Fixed internal buffer for 16 bit mmio MEM files.
This commit is contained in:
parent
3b88cabb7c
commit
16b901c552
1 changed files with 6 additions and 2 deletions
|
@ -13,10 +13,10 @@
|
|||
#include "windef.h"
|
||||
#include "wine/winbase16.h"
|
||||
#include "heap.h"
|
||||
#include "selectors.h"
|
||||
#include "file.h"
|
||||
#include "mmsystem.h"
|
||||
#include "debugtools.h"
|
||||
#include "xmalloc.h"
|
||||
|
||||
DEFAULT_DEBUG_CHANNEL(mmio)
|
||||
|
||||
|
@ -303,7 +303,11 @@ static HMMIO16 MMIO_Open(LPSTR szFileName, MMIOINFO16 * lpmmioinfo,
|
|||
}
|
||||
} else
|
||||
if (lpmminfo->fccIOProc == FOURCC_MEM) {
|
||||
if ((result = mmioSetBuffer16(hmmio, lpmmioinfo->pchBuffer, lpmmioinfo->cchBuffer, 0))) {
|
||||
if ((result = mmioSetBuffer16(hmmio,
|
||||
(use16) ?
|
||||
PTR_SEG_TO_LIN(lpmmioinfo->pchBuffer) :
|
||||
lpmmioinfo->pchBuffer,
|
||||
lpmmioinfo->cchBuffer, 0))) {
|
||||
if (lpmmioinfo)
|
||||
lpmmioinfo->wErrorRet = result;
|
||||
return 0;
|
||||
|
|
Loading…
Reference in a new issue