Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
50b5c29e
Commit
50b5c29e
authored
Apr 11, 2000
by
Noomen Hamza
Committed by
Alexandre Julliard
Apr 11, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed other bugs within MMIO implementation. Now, it's possible to
copy/cut from PhotoPaint and paste to CorelDraw.
parent
3873f445
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
11 deletions
+10
-11
mmio.c
dlls/winmm/mmio.c
+10
-11
No files found.
dlls/winmm/mmio.c
View file @
50b5c29e
...
...
@@ -617,17 +617,14 @@ static LRESULT MMIO_Flush(WINE_MMIO* wm, UINT uFlags)
/* not quite sure what to do here, but I'll guess */
if
(
wm
->
info
.
dwFlags
&
MMIO_DIRTY
)
{
MMIO_SendMessage
(
wm
,
MMIOM_SEEK
,
wm
->
info
.
l
Buf
Offset
,
MMIO_SendMessage
(
wm
,
MMIOM_SEEK
,
wm
->
info
.
l
Disk
Offset
,
SEEK_SET
,
MMIO_PROC_32A
);
MMIO_SendMessage
(
wm
,
MMIOM_WRITE
,
(
LPARAM
)
wm
->
info
.
pchBuffer
,
wm
->
info
.
pchNext
-
wm
->
info
.
pchBuffer
,
MMIO_PROC_32A
);
wm
->
info
.
dwFlags
&=
~
MMIO_DIRTY
;
}
if
(
uFlags
&
MMIO_EMPTYBUF
)
{
if
(
uFlags
&
MMIO_EMPTYBUF
)
wm
->
info
.
pchNext
=
wm
->
info
.
pchBuffer
;
wm
->
info
.
pchEndRead
=
wm
->
info
.
pchBuffer
;
wm
->
info
.
pchEndWrite
=
wm
->
info
.
pchBuffer
;
}
return
0
;
}
...
...
@@ -995,7 +992,7 @@ LONG WINAPI mmioRead16(HMMIO16 hmmio, HPSTR pch, LONG cch)
LONG
WINAPI
mmioWrite
(
HMMIO
hmmio
,
HPCSTR
pch
,
LONG
cch
)
{
LPWINE_MMIO
wm
;
LONG
count
;
LONG
count
,
bytesW
=
0
;
TRACE
(
"(%04X, %p, %ld);
\n
"
,
hmmio
,
pch
,
cch
);
...
...
@@ -1012,25 +1009,27 @@ LONG WINAPI mmioWrite(HMMIO hmmio, HPCSTR pch, LONG cch)
wm
->
info
.
pchNext
+=
count
;
pch
+=
count
;
cch
-=
count
;
bytesW
+=
count
;
wm
->
info
.
dwFlags
|=
MMIO_DIRTY
;
}
else
if
(
wm
->
info
.
fccIOProc
==
FOURCC_MEM
)
{
if
(
wm
->
info
.
adwInfo
[
0
])
{
/* from where would we get the memory handle? */
FIXME
(
"memory file expansion not implemented!
\n
"
);
break
;
}
else
break
;
}
if
(
wm
->
info
.
pchNext
==
wm
->
info
.
pchEndWrite
&&
MMIO_Flush
(
wm
,
MMIO_EMPTYBUF
))
break
;
if
(
wm
->
info
.
pchNext
==
wm
->
info
.
pchEndWrite
)
MMIO_Flush
(
wm
,
MMIO_EMPTYBUF
);
else
break
;
}
}
else
{
count
=
MMIO_SendMessage
(
wm
,
MMIOM_WRITE
,
(
LPARAM
)
pch
,
cch
,
MMIO_PROC_32A
);
bytesW
=
MMIO_SendMessage
(
wm
,
MMIOM_WRITE
,
(
LPARAM
)
pch
,
cch
,
MMIO_PROC_32A
);
wm
->
info
.
lBufOffset
=
wm
->
info
.
lDiskOffset
;
}
TRACE
(
"
count=%ld
\n
"
,
count
);
return
count
;
TRACE
(
"
bytes written=%ld
\n
"
,
bytesW
);
return
bytesW
;
}
/**************************************************************************
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment