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
c8ff4da2
Commit
c8ff4da2
authored
Aug 09, 2002
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Aug 09, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Convert HMMIO to a void*.
parent
392c54e1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
20 deletions
+22
-20
mmio.c
dlls/winmm/mmio.c
+19
-19
winemm.h
dlls/winmm/winemm.h
+2
-0
mmsystem.h
include/mmsystem.h
+1
-1
No files found.
dlls/winmm/mmio.c
View file @
c8ff4da2
...
...
@@ -540,8 +540,8 @@ static LPWINE_MMIO MMIO_Create(void)
wm
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
sizeof
(
WINE_MMIO
));
if
(
wm
)
{
EnterCriticalSection
(
&
iData
->
cs
);
while
(
MMIO_Get
(
iData
,
++
MMIO_counter
));
wm
->
info
.
hmmio
=
MMIO_counter
;
while
(
MMIO_Get
(
iData
,
HMMIO_32
(
++
MMIO_counter
)
));
wm
->
info
.
hmmio
=
HMMIO_32
(
MMIO_counter
)
;
wm
->
lpNext
=
iData
->
lpMMIO
;
iData
->
lpMMIO
=
wm
;
LeaveCriticalSection
(
&
iData
->
cs
);
...
...
@@ -842,8 +842,8 @@ HMMIO16 WINAPI mmioOpen16(LPSTR szFileName, MMIOINFO16* lpmmioinfo16,
ret
=
MMIO_Open
(
szFileName
,
&
mmioinfo
,
dwOpenFlags
,
MMIO_PROC_16
);
mmioGetInfo16
(
mmioinfo
.
hmmio
,
lpmmioinfo16
,
0
);
lpmmioinfo16
->
wErrorRet
=
ret
;
mmioGetInfo16
(
HMMIO_16
(
mmioinfo
.
hmmio
)
,
lpmmioinfo16
,
0
);
lpmmioinfo16
->
wErrorRet
=
HMMIO_16
(
ret
)
;
}
else
{
mmio
.
fccIOProc
=
0
;
mmio
.
pIOProc
=
NULL
;
...
...
@@ -851,7 +851,7 @@ HMMIO16 WINAPI mmioOpen16(LPSTR szFileName, MMIOINFO16* lpmmioinfo16,
mmio
.
cchBuffer
=
0
;
ret
=
MMIO_Open
(
szFileName
,
&
mmio
,
dwOpenFlags
,
FALSE
);
}
return
ret
;
return
HMMIO_16
(
ret
)
;
}
...
...
@@ -891,7 +891,7 @@ MMRESULT WINAPI mmioClose(HMMIO hmmio, UINT uFlags)
*/
MMRESULT16
WINAPI
mmioClose16
(
HMMIO16
hmmio
,
UINT16
uFlags
)
{
return
mmioClose
(
hmmio
,
uFlags
);
return
mmioClose
(
HMMIO_32
(
hmmio
)
,
uFlags
);
}
/**************************************************************************
...
...
@@ -948,7 +948,7 @@ LONG WINAPI mmioRead(HMMIO hmmio, HPSTR pch, LONG cch)
*/
LONG
WINAPI
mmioRead16
(
HMMIO16
hmmio
,
HPSTR
pch
,
LONG
cch
)
{
return
mmioRead
(
hmmio
,
pch
,
cch
);
return
mmioRead
(
HMMIO_32
(
hmmio
)
,
pch
,
cch
);
}
/**************************************************************************
...
...
@@ -1010,7 +1010,7 @@ LONG WINAPI mmioWrite(HMMIO hmmio, HPCSTR pch, LONG cch)
*/
LONG
WINAPI
mmioWrite16
(
HMMIO16
hmmio
,
HPCSTR
pch
,
LONG
cch
)
{
return
mmioWrite
(
hmmio
,
pch
,
cch
);
return
mmioWrite
(
HMMIO_32
(
hmmio
)
,
pch
,
cch
);
}
/**************************************************************************
...
...
@@ -1083,7 +1083,7 @@ LONG WINAPI mmioSeek(HMMIO hmmio, LONG lOffset, INT iOrigin)
*/
LONG
WINAPI
mmioSeek16
(
HMMIO16
hmmio
,
LONG
lOffset
,
INT16
iOrigin
)
{
return
mmioSeek
(
hmmio
,
lOffset
,
iOrigin
);
return
mmioSeek
(
HMMIO_32
(
hmmio
)
,
lOffset
,
iOrigin
);
}
/**************************************************************************
...
...
@@ -1095,7 +1095,7 @@ MMRESULT16 WINAPI mmioGetInfo16(HMMIO16 hmmio, MMIOINFO16* lpmmioinfo, UINT16 uF
TRACE
(
"(0x%04x,%p,0x%08x)
\n
"
,
hmmio
,
lpmmioinfo
,
uFlags
);
if
((
wm
=
MMIO_Get
(
NULL
,
hmmio
))
==
NULL
)
if
((
wm
=
MMIO_Get
(
NULL
,
HMMIO_32
(
hmmio
)
))
==
NULL
)
return
MMSYSERR_INVALHANDLE
;
if
(
!
wm
->
buffer16
)
...
...
@@ -1119,7 +1119,7 @@ MMRESULT16 WINAPI mmioGetInfo16(HMMIO16 hmmio, MMIOINFO16* lpmmioinfo, UINT16 uF
lpmmioinfo
->
adwInfo
[
3
]
=
wm
->
info
.
adwInfo
[
3
];
lpmmioinfo
->
dwReserved1
=
0
;
lpmmioinfo
->
dwReserved2
=
0
;
lpmmioinfo
->
hmmio
=
wm
->
info
.
hmmio
;
lpmmioinfo
->
hmmio
=
HMMIO_16
(
wm
->
info
.
hmmio
)
;
return
MMSYSERR_NOERROR
;
}
...
...
@@ -1150,7 +1150,7 @@ MMRESULT16 WINAPI mmioSetInfo16(HMMIO16 hmmio, const MMIOINFO16* lpmmioinfo, UIN
TRACE
(
"(0x%04x,%p,0x%08x)
\n
"
,
hmmio
,
lpmmioinfo
,
uFlags
);
if
((
wm
=
MMIO_Get
(
NULL
,
hmmio
))
==
NULL
)
if
((
wm
=
MMIO_Get
(
NULL
,
HMMIO_32
(
hmmio
)
))
==
NULL
)
return
MMSYSERR_INVALHANDLE
;
/* check if seg and lin buffers are the same */
...
...
@@ -1228,7 +1228,7 @@ MMRESULT16 WINAPI mmioSetBuffer16(HMMIO16 hmmio, LPSTR segpchBuffer,
TRACE
(
"(hmmio=%04x, segpchBuf=%p, cchBuf=%ld, uFlags=%#08x)
\n
"
,
hmmio
,
segpchBuffer
,
cchBuffer
,
uFlags
);
if
((
wm
=
MMIO_Get
(
NULL
,
hmmio
))
==
NULL
)
if
((
wm
=
MMIO_Get
(
NULL
,
HMMIO_32
(
hmmio
)
))
==
NULL
)
return
MMSYSERR_INVALHANDLE
;
return
MMIO_SetBuffer
(
wm
,
segpchBuffer
,
cchBuffer
,
uFlags
,
FALSE
);
...
...
@@ -1254,7 +1254,7 @@ MMRESULT WINAPI mmioFlush(HMMIO hmmio, UINT uFlags)
*/
MMRESULT16
WINAPI
mmioFlush16
(
HMMIO16
hmmio
,
UINT16
uFlags
)
{
return
mmioFlush
(
hmmio
,
uFlags
);
return
mmioFlush
(
HMMIO_32
(
hmmio
)
,
uFlags
);
}
/**************************************************************************
...
...
@@ -1311,7 +1311,7 @@ MMRESULT16 WINAPI mmioAdvance16(HMMIO16 hmmio, MMIOINFO16* lpmmioinfo, UINT16 uF
TRACE
(
"hmmio=%04X, lpmmioinfo=%p, uFlags=%04X
\n
"
,
hmmio
,
lpmmioinfo
,
uFlags
);
if
((
wm
=
MMIO_Get
(
NULL
,
hmmio
))
==
NULL
)
if
((
wm
=
MMIO_Get
(
NULL
,
HMMIO_32
(
hmmio
)
))
==
NULL
)
return
MMSYSERR_INVALHANDLE
;
if
(
!
wm
->
info
.
cchBuffer
)
...
...
@@ -1420,7 +1420,7 @@ LRESULT WINAPI mmioSendMessage16(HMMIO16 hmmio, UINT16 uMessage,
if
(
uMessage
<
MMIOM_USER
)
return
MMSYSERR_INVALPARAM
;
if
((
wm
=
MMIO_Get
(
NULL
,
hmmio
))
==
NULL
)
if
((
wm
=
MMIO_Get
(
NULL
,
HMMIO_32
(
hmmio
)
))
==
NULL
)
return
MMSYSERR_INVALHANDLE
;
return
MMIO_SendMessage
(
wm
,
uMessage
,
lParam1
,
lParam2
,
MMIO_PROC_16
);
...
...
@@ -1555,7 +1555,7 @@ MMRESULT WINAPI mmioDescend(HMMIO hmmio, LPMMCKINFO lpck,
MMRESULT16
WINAPI
mmioDescend16
(
HMMIO16
hmmio
,
LPMMCKINFO
lpck
,
const
MMCKINFO
*
lpckParent
,
UINT16
uFlags
)
{
return
mmioDescend
(
hmmio
,
lpck
,
lpckParent
,
uFlags
);
return
mmioDescend
(
HMMIO_32
(
hmmio
)
,
lpck
,
lpckParent
,
uFlags
);
}
/**************************************************************************
...
...
@@ -1597,7 +1597,7 @@ MMRESULT WINAPI mmioAscend(HMMIO hmmio, LPMMCKINFO lpck, UINT uFlags)
*/
MMRESULT16
WINAPI
mmioAscend16
(
HMMIO16
hmmio
,
MMCKINFO
*
lpck
,
UINT16
uFlags
)
{
return
mmioAscend
(
hmmio
,
lpck
,
uFlags
);
return
mmioAscend
(
HMMIO_32
(
hmmio
)
,
lpck
,
uFlags
);
}
/**************************************************************************
...
...
@@ -1644,7 +1644,7 @@ MMRESULT WINAPI mmioCreateChunk(HMMIO hmmio, MMCKINFO* lpck, UINT uFlags)
*/
MMRESULT16
WINAPI
mmioCreateChunk16
(
HMMIO16
hmmio
,
MMCKINFO
*
lpck
,
UINT16
uFlags
)
{
return
mmioCreateChunk
(
hmmio
,
lpck
,
uFlags
);
return
mmioCreateChunk
(
HMMIO_32
(
hmmio
)
,
lpck
,
uFlags
);
}
/**************************************************************************
...
...
dlls/winmm/winemm.h
View file @
c8ff4da2
...
...
@@ -235,6 +235,7 @@ void TIME_MMTimeStop(void);
#define HMIDISTRM_32(h16) ((HMIDISTRM)(ULONG_PTR)(h16))
#define HMIXER_32(h16) ((HMIXER)(ULONG_PTR)(h16))
#define HMIXEROBJ_32(h16) ((HMIXEROBJ)(ULONG_PTR)(h16))
#define HMMIO_32(h16) ((HMMIO)(ULONG_PTR)(h16))
#define HWAVE_32(h16) ((HWAVE)(ULONG_PTR)(h16))
#define HWAVEIN_32(h16) ((HWAVEIN)(ULONG_PTR)(h16))
#define HWAVEOUT_32(h16) ((HWAVEOUT)(ULONG_PTR)(h16))
...
...
@@ -247,6 +248,7 @@ void TIME_MMTimeStop(void);
#define HMIDISTRM_16(h32) (LOWORD(h32))
#define HMIXER_16(h32) (LOWORD(h32))
#define HMIXEROBJ_16(h32) (LOWORD(h32))
#define HMMIO_16(h32) (LOWORD(h32))
#define HWAVE_16(h32) (LOWORD(h32))
#define HWAVEIN_16(h32) (LOWORD(h32))
#define HWAVEOUT_16(h32) (LOWORD(h32))
include/mmsystem.h
View file @
c8ff4da2
...
...
@@ -40,7 +40,7 @@ DECLARE_HANDLE(HMIDIOUT);
DECLARE_HANDLE
(
HMIDISTRM
);
DECLARE_HANDLE
(
HMIXER
);
DECLARE_HANDLE
(
HMIXEROBJ
);
DECLARE_
OLD_
HANDLE
(
HMMIO
);
DECLARE_HANDLE
(
HMMIO
);
#include "pshpack1.h"
...
...
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