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
6fa2ac69
Commit
6fa2ac69
authored
Oct 19, 2002
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed DECLARE_OLD_HANDLE. Fixed a few remaining warnings.
parent
2c481ceb
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
18 additions
and
24 deletions
+18
-24
mmoutput.c
dlls/winmm/mciavi/mmoutput.c
+1
-1
mciwave.c
dlls/winmm/mciwave/mciwave.c
+2
-2
audio.c
dlls/winmm/winealsa/audio.c
+1
-1
audio.c
dlls/winmm/winearts/audio.c
+1
-1
audio.c
dlls/winmm/winenas/audio.c
+1
-1
windef.h
include/windef.h
+8
-8
winnt.h
include/winnt.h
+4
-10
No files found.
dlls/winmm/mciavi/mmoutput.c
View file @
6fa2ac69
...
@@ -438,7 +438,7 @@ DWORD MCIAVI_OpenAudio(WINE_MCIAVI* wma, unsigned* nHdr, LPWAVEHDR* pWaveHdr)
...
@@ -438,7 +438,7 @@ DWORD MCIAVI_OpenAudio(WINE_MCIAVI* wma, unsigned* nHdr, LPWAVEHDR* pWaveHdr)
LPWAVEHDR
waveHdr
;
LPWAVEHDR
waveHdr
;
unsigned
i
;
unsigned
i
;
dwRet
=
waveOutOpen
(
&
wma
->
hWave
,
WAVE_MAPPER
,
wma
->
lpWaveFormat
,
dwRet
=
waveOutOpen
(
(
HWAVEOUT
*
)
&
wma
->
hWave
,
WAVE_MAPPER
,
wma
->
lpWaveFormat
,
(
DWORD
)
MCIAVI_waveCallback
,
(
DWORD
)
wma
,
CALLBACK_FUNCTION
);
(
DWORD
)
MCIAVI_waveCallback
,
(
DWORD
)
wma
,
CALLBACK_FUNCTION
);
if
(
dwRet
!=
0
)
{
if
(
dwRet
!=
0
)
{
TRACE
(
"Can't open low level audio device %ld
\n
"
,
dwRet
);
TRACE
(
"Can't open low level audio device %ld
\n
"
,
dwRet
);
...
...
dlls/winmm/mciwave/mciwave.c
View file @
6fa2ac69
...
@@ -775,7 +775,7 @@ static DWORD WAVE_mciPlay(UINT wDevID, DWORD dwFlags, LPMCI_PLAY_PARMS lpParms)
...
@@ -775,7 +775,7 @@ static DWORD WAVE_mciPlay(UINT wDevID, DWORD dwFlags, LPMCI_PLAY_PARMS lpParms)
* change from output to input and back
* change from output to input and back
*/
*/
/* FIXME: how to choose between several output channels ? here mapper is forced */
/* FIXME: how to choose between several output channels ? here mapper is forced */
dwRet
=
waveOutOpen
(
&
wmw
->
hWave
,
WAVE_MAPPER
,
wmw
->
lpWaveFormat
,
dwRet
=
waveOutOpen
(
(
HWAVEOUT
*
)
&
wmw
->
hWave
,
WAVE_MAPPER
,
wmw
->
lpWaveFormat
,
(
DWORD
)
WAVE_mciPlayCallback
,
(
DWORD
)
wmw
,
CALLBACK_FUNCTION
);
(
DWORD
)
WAVE_mciPlayCallback
,
(
DWORD
)
wmw
,
CALLBACK_FUNCTION
);
if
(
dwRet
!=
0
)
{
if
(
dwRet
!=
0
)
{
...
@@ -1006,7 +1006,7 @@ static DWORD WAVE_mciRecord(UINT wDevID, DWORD dwFlags, LPMCI_RECORD_PARMS lpPar
...
@@ -1006,7 +1006,7 @@ static DWORD WAVE_mciRecord(UINT wDevID, DWORD dwFlags, LPMCI_RECORD_PARMS lpPar
* change from output to input and back
* change from output to input and back
*/
*/
/* FIXME: how to choose between several output channels ? here mapper is forced */
/* FIXME: how to choose between several output channels ? here mapper is forced */
dwRet
=
waveInOpen
(
&
wmw
->
hWave
,
WAVE_MAPPER
,
wmw
->
lpWaveFormat
,
dwRet
=
waveInOpen
(
(
HWAVEIN
*
)
&
wmw
->
hWave
,
WAVE_MAPPER
,
wmw
->
lpWaveFormat
,
(
DWORD
)
WAVE_mciRecordCallback
,
(
DWORD
)
wmw
,
CALLBACK_FUNCTION
);
(
DWORD
)
WAVE_mciRecordCallback
,
(
DWORD
)
wmw
,
CALLBACK_FUNCTION
);
if
(
dwRet
!=
0
)
{
if
(
dwRet
!=
0
)
{
...
...
dlls/winmm/winealsa/audio.c
View file @
6fa2ac69
...
@@ -632,7 +632,7 @@ static DWORD wodNotifyClient(WINE_WAVEOUT* wwo, WORD wMsg, DWORD dwParam1, DWORD
...
@@ -632,7 +632,7 @@ static DWORD wodNotifyClient(WINE_WAVEOUT* wwo, WORD wMsg, DWORD dwParam1, DWORD
case
WOM_CLOSE
:
case
WOM_CLOSE
:
case
WOM_DONE
:
case
WOM_DONE
:
if
(
wwo
->
wFlags
!=
DCB_NULL
&&
if
(
wwo
->
wFlags
!=
DCB_NULL
&&
!
DriverCallback
(
wwo
->
waveDesc
.
dwCallback
,
wwo
->
wFlags
,
wwo
->
waveDesc
.
hWave
,
!
DriverCallback
(
wwo
->
waveDesc
.
dwCallback
,
wwo
->
wFlags
,
(
HDRVR
)
wwo
->
waveDesc
.
hWave
,
wMsg
,
wwo
->
waveDesc
.
dwInstance
,
dwParam1
,
dwParam2
))
{
wMsg
,
wwo
->
waveDesc
.
dwInstance
,
dwParam1
,
dwParam2
))
{
WARN
(
"can't notify client !
\n
"
);
WARN
(
"can't notify client !
\n
"
);
return
MMSYSERR_ERROR
;
return
MMSYSERR_ERROR
;
...
...
dlls/winmm/winearts/audio.c
View file @
6fa2ac69
...
@@ -456,7 +456,7 @@ static DWORD wodNotifyClient(WINE_WAVEOUT* wwo, WORD wMsg, DWORD dwParam1, DWORD
...
@@ -456,7 +456,7 @@ static DWORD wodNotifyClient(WINE_WAVEOUT* wwo, WORD wMsg, DWORD dwParam1, DWORD
case
WOM_CLOSE
:
case
WOM_CLOSE
:
case
WOM_DONE
:
case
WOM_DONE
:
if
(
wwo
->
wFlags
!=
DCB_NULL
&&
if
(
wwo
->
wFlags
!=
DCB_NULL
&&
!
DriverCallback
(
wwo
->
waveDesc
.
dwCallback
,
wwo
->
wFlags
,
wwo
->
waveDesc
.
hWave
,
!
DriverCallback
(
wwo
->
waveDesc
.
dwCallback
,
wwo
->
wFlags
,
(
HDRVR
)
wwo
->
waveDesc
.
hWave
,
wMsg
,
wwo
->
waveDesc
.
dwInstance
,
dwParam1
,
dwParam2
))
{
wMsg
,
wwo
->
waveDesc
.
dwInstance
,
dwParam1
,
dwParam2
))
{
WARN
(
"can't notify client !
\n
"
);
WARN
(
"can't notify client !
\n
"
);
return
MMSYSERR_ERROR
;
return
MMSYSERR_ERROR
;
...
...
dlls/winmm/winenas/audio.c
View file @
6fa2ac69
...
@@ -534,7 +534,7 @@ static DWORD wodNotifyClient(WINE_WAVEOUT* wwo, WORD wMsg, DWORD dwParam1, DWORD
...
@@ -534,7 +534,7 @@ static DWORD wodNotifyClient(WINE_WAVEOUT* wwo, WORD wMsg, DWORD dwParam1, DWORD
case
WOM_CLOSE
:
case
WOM_CLOSE
:
case
WOM_DONE
:
case
WOM_DONE
:
if
(
wwo
->
wFlags
!=
DCB_NULL
&&
if
(
wwo
->
wFlags
!=
DCB_NULL
&&
!
DriverCallback
(
wwo
->
waveDesc
.
dwCallback
,
wwo
->
wFlags
,
wwo
->
waveDesc
.
hWave
,
!
DriverCallback
(
wwo
->
waveDesc
.
dwCallback
,
wwo
->
wFlags
,
(
HDRVR
)
wwo
->
waveDesc
.
hWave
,
wMsg
,
wwo
->
waveDesc
.
dwInstance
,
dwParam1
,
dwParam2
))
{
wMsg
,
wwo
->
waveDesc
.
dwInstance
,
dwParam1
,
dwParam2
))
{
WARN
(
"can't notify client !
\n
"
);
WARN
(
"can't notify client !
\n
"
);
return
MMSYSERR_ERROR
;
return
MMSYSERR_ERROR
;
...
...
include/windef.h
View file @
6fa2ac69
...
@@ -72,24 +72,24 @@ typedef DWORD COLORREF, *LPCOLORREF;
...
@@ -72,24 +72,24 @@ typedef DWORD COLORREF, *LPCOLORREF;
typedef
int
HFILE
;
typedef
int
HFILE
;
DECLARE_HANDLE
(
HACCEL
);
DECLARE_HANDLE
(
HACCEL
);
DECLARE_
OLD_
HANDLE
(
HBITMAP
);
DECLARE_HANDLE
(
HBITMAP
);
DECLARE_
OLD_
HANDLE
(
HBRUSH
);
DECLARE_HANDLE
(
HBRUSH
);
DECLARE_HANDLE
(
HCOLORSPACE
);
DECLARE_HANDLE
(
HCOLORSPACE
);
DECLARE_
OLD_
HANDLE
(
HDC
);
DECLARE_HANDLE
(
HDC
);
DECLARE_HANDLE
(
HDESK
);
DECLARE_HANDLE
(
HDESK
);
DECLARE_HANDLE
(
HENHMETAFILE
);
DECLARE_HANDLE
(
HENHMETAFILE
);
DECLARE_
OLD_
HANDLE
(
HFONT
);
DECLARE_HANDLE
(
HFONT
);
DECLARE_HANDLE
(
HHOOK
);
DECLARE_HANDLE
(
HHOOK
);
DECLARE_HANDLE
(
HICON
);
DECLARE_HANDLE
(
HICON
);
DECLARE_
OLD_
HANDLE
(
HINSTANCE
);
DECLARE_HANDLE
(
HINSTANCE
);
DECLARE_HANDLE
(
HKEY
);
DECLARE_HANDLE
(
HKEY
);
DECLARE_HANDLE
(
HKL
);
DECLARE_HANDLE
(
HKL
);
DECLARE_
OLD_
HANDLE
(
HMENU
);
DECLARE_HANDLE
(
HMENU
);
DECLARE_HANDLE
(
HMETAFILE
);
DECLARE_HANDLE
(
HMETAFILE
);
DECLARE_HANDLE
(
HMONITOR
);
DECLARE_HANDLE
(
HMONITOR
);
DECLARE_HANDLE
(
HPALETTE
);
DECLARE_HANDLE
(
HPALETTE
);
DECLARE_
OLD_
HANDLE
(
HPEN
);
DECLARE_HANDLE
(
HPEN
);
DECLARE_
OLD_
HANDLE
(
HRGN
);
DECLARE_HANDLE
(
HRGN
);
DECLARE_HANDLE
(
HRSRC
);
DECLARE_HANDLE
(
HRSRC
);
DECLARE_HANDLE
(
HTASK
);
DECLARE_HANDLE
(
HTASK
);
DECLARE_HANDLE
(
HWINEVENTHOOK
);
DECLARE_HANDLE
(
HWINEVENTHOOK
);
...
...
include/winnt.h
View file @
6fa2ac69
...
@@ -561,20 +561,14 @@ typedef DWORD EXECUTION_STATE;
...
@@ -561,20 +561,14 @@ typedef DWORD EXECUTION_STATE;
* we're ready we'll remove the '!defined(__WINE__)' (the equivalent
* we're ready we'll remove the '!defined(__WINE__)' (the equivalent
* of converting it from DECLARE_OLD_HANDLE to DECLARE_HANDLE).
* of converting it from DECLARE_OLD_HANDLE to DECLARE_HANDLE).
*/
*/
#if defined(STRICT) || (defined(__WINE__) && !defined(WINE_NO_STRICT))
#if defined(__WINE__) && defined(WINE_NO_STRICT)
typedef
VOID
*
HANDLE
;
#define DECLARE_OLD_HANDLE(a) \
typedef struct a##__ { int unused; } *a; \
typedef a *P##a
#else
typedef
UINT
HANDLE
;
typedef
UINT
HANDLE
;
#define DECLARE_OLD_HANDLE(a) \
#else
typedef HANDLE a; \
typedef
void
*
HANDLE
;
typedef a *P##a
#endif
#endif
typedef
HANDLE
*
PHANDLE
,
*
LPHANDLE
;
typedef
HANDLE
*
PHANDLE
,
*
LPHANDLE
;
#if
def STRICT
#if
defined(STRICT) || (defined(__WINE__) && !defined(WINE_NO_STRICT))
#define DECLARE_HANDLE(a) \
#define DECLARE_HANDLE(a) \
typedef struct a##__ { int unused; } *a; \
typedef struct a##__ { int unused; } *a; \
typedef a *P##a
typedef a *P##a
...
...
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