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
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
16 deletions
+15
-16
mmio.c
dlls/winmm/mmio.c
+15
-16
No files found.
dlls/winmm/mmio.c
View file @
50b5c29e
...
...
@@ -617,18 +617,15 @@ 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
)
{
wm
->
info
.
pchNext
=
wm
->
info
.
pchBuffer
;
wm
->
info
.
pchEndRead
=
wm
->
info
.
pchBuffer
;
wm
->
info
.
pchEndWrite
=
wm
->
info
.
pchBuffer
;
}
if
(
uFlags
&
MMIO_EMPTYBUF
)
wm
->
info
.
pchNext
=
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
);
...
...
@@ -1011,26 +1008,28 @@ LONG WINAPI mmioWrite(HMMIO hmmio, HPCSTR pch, LONG cch)
memcpy
(
wm
->
info
.
pchNext
,
pch
,
count
);
wm
->
info
.
pchNext
+=
count
;
pch
+=
count
;
cch
-=
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
"
);
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