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
6dc69f5f
Commit
6dc69f5f
authored
Sep 02, 2005
by
Mike McCormack
Committed by
Alexandre Julliard
Sep 02, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix gcc 4.0 warnings.
parent
c75127c5
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
25 additions
and
26 deletions
+25
-26
ds3d.c
dlls/dsound/tests/ds3d.c
+1
-2
ds3d8.c
dlls/dsound/tests/ds3d8.c
+1
-2
prop.c
dlls/mapi32/tests/prop.c
+4
-4
data.c
dlls/msvcrt/data.c
+1
-1
file.c
dlls/msvcrt/file.c
+10
-9
msvcrt.h
dlls/msvcrt/msvcrt.h
+1
-1
v4l.c
dlls/qcap/v4l.c
+1
-1
wavemap.c
dlls/winmm/wavemap/wavemap.c
+6
-6
No files found.
dlls/dsound/tests/ds3d.c
View file @
6dc69f5f
...
@@ -762,8 +762,7 @@ static HRESULT test_secondary(LPGUID lpGuid, int play,
...
@@ -762,8 +762,7 @@ static HRESULT test_secondary(LPGUID lpGuid, int play,
getDSBCAPS
(
bufdesc
.
dwFlags
),
DXGetErrorString8
(
rc
));
getDSBCAPS
(
bufdesc
.
dwFlags
),
DXGetErrorString8
(
rc
));
if
(
rc
==
DS_OK
&&
secondary
!=
NULL
)
{
if
(
rc
==
DS_OK
&&
secondary
!=
NULL
)
{
if
(
!
has_3d
)
{
if
(
!
has_3d
)
{
DWORD
refpan
,
pan
;
LONG
refvol
,
vol
,
refpan
,
pan
;
LONG
refvol
,
vol
;
/* Check the initial secondary buffer's volume and pan */
/* Check the initial secondary buffer's volume and pan */
rc
=
IDirectSoundBuffer_GetVolume
(
secondary
,
&
vol
);
rc
=
IDirectSoundBuffer_GetVolume
(
secondary
,
&
vol
);
...
...
dlls/dsound/tests/ds3d8.c
View file @
6dc69f5f
...
@@ -656,8 +656,7 @@ static HRESULT test_secondary8(LPGUID lpGuid, int play,
...
@@ -656,8 +656,7 @@ static HRESULT test_secondary8(LPGUID lpGuid, int play,
getDSBCAPS
(
bufdesc
.
dwFlags
),
DXGetErrorString8
(
rc
));
getDSBCAPS
(
bufdesc
.
dwFlags
),
DXGetErrorString8
(
rc
));
if
(
rc
==
DS_OK
&&
secondary
!=
NULL
)
{
if
(
rc
==
DS_OK
&&
secondary
!=
NULL
)
{
if
(
!
has_3d
)
{
if
(
!
has_3d
)
{
DWORD
refpan
,
pan
;
LONG
refvol
,
vol
,
refpan
,
pan
;
LONG
refvol
,
vol
;
/* Check the initial secondary buffer's volume and pan */
/* Check the initial secondary buffer's volume and pan */
rc
=
IDirectSoundBuffer_GetVolume
(
secondary
,
&
vol
);
rc
=
IDirectSoundBuffer_GetVolume
(
secondary
,
&
vol
);
...
...
dlls/mapi32/tests/prop.c
View file @
6dc69f5f
...
@@ -480,8 +480,8 @@ static void test_FPropCompareProp(void)
...
@@ -480,8 +480,8 @@ static void test_FPropCompareProp(void)
case
PT_BINARY
:
case
PT_BINARY
:
pvLeft
.
Value
.
bin
.
cb
=
1
;
pvLeft
.
Value
.
bin
.
cb
=
1
;
pvRight
.
Value
.
bin
.
cb
=
1
;
pvRight
.
Value
.
bin
.
cb
=
1
;
pvLeft
.
Value
.
bin
.
lpb
=
lbuffa
;
pvLeft
.
Value
.
bin
.
lpb
=
(
LPBYTE
)
lbuffa
;
pvRight
.
Value
.
bin
.
lpb
=
rbuffa
;
pvRight
.
Value
.
bin
.
lpb
=
(
LPBYTE
)
rbuffa
;
lbuffa
[
0
]
=
lVal
;
lbuffa
[
0
]
=
lVal
;
rbuffa
[
0
]
=
rVal
;
rbuffa
[
0
]
=
rVal
;
break
;
break
;
...
@@ -603,8 +603,8 @@ static void test_LPropCompareProp(void)
...
@@ -603,8 +603,8 @@ static void test_LPropCompareProp(void)
case
PT_BINARY
:
case
PT_BINARY
:
pvLeft
.
Value
.
bin
.
cb
=
1
;
pvLeft
.
Value
.
bin
.
cb
=
1
;
pvRight
.
Value
.
bin
.
cb
=
1
;
pvRight
.
Value
.
bin
.
cb
=
1
;
pvLeft
.
Value
.
bin
.
lpb
=
lbuffa
;
pvLeft
.
Value
.
bin
.
lpb
=
(
LPBYTE
)
lbuffa
;
pvRight
.
Value
.
bin
.
lpb
=
rbuffa
;
pvRight
.
Value
.
bin
.
lpb
=
(
LPBYTE
)
rbuffa
;
lbuffa
[
0
]
=
lVal
;
lbuffa
[
0
]
=
lVal
;
rbuffa
[
0
]
=
rVal
;
rbuffa
[
0
]
=
rVal
;
break
;
break
;
...
...
dlls/msvcrt/data.c
View file @
6dc69f5f
...
@@ -29,7 +29,7 @@
...
@@ -29,7 +29,7 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
msvcrt
);
WINE_DEFAULT_DEBUG_CHANNEL
(
msvcrt
);
unsigned
int
MSVCRT___argc
;
int
MSVCRT___argc
;
unsigned
int
MSVCRT_basemajor
;
/* FIXME: */
unsigned
int
MSVCRT_basemajor
;
/* FIXME: */
unsigned
int
MSVCRT_baseminor
;
/* FIXME: */
unsigned
int
MSVCRT_baseminor
;
/* FIXME: */
unsigned
int
MSVCRT_baseversion
;
/* FIXME: */
unsigned
int
MSVCRT_baseversion
;
/* FIXME: */
...
...
dlls/msvcrt/file.c
View file @
6dc69f5f
...
@@ -403,7 +403,7 @@ static void msvcrt_alloc_buffer(MSVCRT_FILE* file)
...
@@ -403,7 +403,7 @@ static void msvcrt_alloc_buffer(MSVCRT_FILE* file)
file
->
_bufsiz
=
MSVCRT_BUFSIZ
;
file
->
_bufsiz
=
MSVCRT_BUFSIZ
;
file
->
_flag
|=
MSVCRT__IOMYBUF
;
file
->
_flag
|=
MSVCRT__IOMYBUF
;
}
else
{
}
else
{
file
->
_base
=
(
unsigned
char
*
)(
&
file
->
_charbuf
);
file
->
_base
=
(
char
*
)(
&
file
->
_charbuf
);
/* put here 2 ??? */
/* put here 2 ??? */
file
->
_bufsiz
=
sizeof
(
file
->
_charbuf
);
file
->
_bufsiz
=
sizeof
(
file
->
_charbuf
);
}
}
...
@@ -726,7 +726,8 @@ int _dup(int od)
...
@@ -726,7 +726,8 @@ int _dup(int od)
*/
*/
int
_eof
(
int
fd
)
int
_eof
(
int
fd
)
{
{
DWORD
curpos
,
endpos
,
hcurpos
,
hendpos
;
DWORD
curpos
,
endpos
;
LONG
hcurpos
,
hendpos
;
HANDLE
hand
=
msvcrt_fdtoh
(
fd
);
HANDLE
hand
=
msvcrt_fdtoh
(
fd
);
TRACE
(
":fd (%d) handle (%p)
\n
"
,
fd
,
hand
);
TRACE
(
":fd (%d) handle (%p)
\n
"
,
fd
,
hand
);
...
@@ -738,7 +739,7 @@ int _eof(int fd)
...
@@ -738,7 +739,7 @@ int _eof(int fd)
/* Otherwise we do it the hard way */
/* Otherwise we do it the hard way */
hcurpos
=
hendpos
=
0
;
hcurpos
=
hendpos
=
0
;
curpos
=
SetFilePointer
(
hand
,
0
,
&
hcurpos
,
SEEK_CUR
);
curpos
=
SetFilePointer
(
hand
,
0
,
&
hcurpos
,
FILE_CURRENT
);
endpos
=
SetFilePointer
(
hand
,
0
,
&
hendpos
,
FILE_END
);
endpos
=
SetFilePointer
(
hand
,
0
,
&
hendpos
,
FILE_END
);
if
(
curpos
==
endpos
&&
hcurpos
==
hendpos
)
if
(
curpos
==
endpos
&&
hcurpos
==
hendpos
)
...
@@ -788,8 +789,8 @@ void msvcrt_free_io(void)
...
@@ -788,8 +789,8 @@ void msvcrt_free_io(void)
*/
*/
__int64
_lseeki64
(
int
fd
,
__int64
offset
,
int
whence
)
__int64
_lseeki64
(
int
fd
,
__int64
offset
,
int
whence
)
{
{
DWORD
ret
,
hoffset
=
(
DWORD
)
(
offset
>>
32
);
HANDLE
hand
=
msvcrt_fdtoh
(
fd
);
HANDLE
hand
=
msvcrt_fdtoh
(
fd
);
LARGE_INTEGER
ofs
,
ret
;
TRACE
(
":fd (%d) handle (%p)
\n
"
,
fd
,
hand
);
TRACE
(
":fd (%d) handle (%p)
\n
"
,
fd
,
hand
);
if
(
hand
==
INVALID_HANDLE_VALUE
)
if
(
hand
==
INVALID_HANDLE_VALUE
)
...
@@ -801,19 +802,19 @@ __int64 _lseeki64(int fd, __int64 offset, int whence)
...
@@ -801,19 +802,19 @@ __int64 _lseeki64(int fd, __int64 offset, int whence)
return
-
1
;
return
-
1
;
}
}
TRACE
(
":fd (%d) to
0x%08lx%08lx
pos %s
\n
"
,
TRACE
(
":fd (%d) to
%s
pos %s
\n
"
,
fd
,
hoffset
,(
long
)
offset
,
fd
,
wine_dbgstr_longlong
(
ofs
.
QuadPart
)
,
(
whence
==
SEEK_SET
)
?
"SEEK_SET"
:
(
whence
==
SEEK_SET
)
?
"SEEK_SET"
:
(
whence
==
SEEK_CUR
)
?
"SEEK_CUR"
:
(
whence
==
SEEK_CUR
)
?
"SEEK_CUR"
:
(
whence
==
SEEK_END
)
?
"SEEK_END"
:
"UNKNOWN"
);
(
whence
==
SEEK_END
)
?
"SEEK_END"
:
"UNKNOWN"
);
ret
=
SetFilePointer
(
hand
,
(
long
)
offset
,
&
hoffset
,
whence
)
;
ofs
.
QuadPart
=
offset
;
if
(
ret
!=
INVALID_SET_FILE_POINTER
||
!
GetLastError
(
))
if
(
SetFilePointerEx
(
hand
,
ofs
,
&
ret
,
whence
))
{
{
MSVCRT_fdesc
[
fd
].
wxflag
&=
~
WX_ATEOF
;
MSVCRT_fdesc
[
fd
].
wxflag
&=
~
WX_ATEOF
;
/* FIXME: What if we seek _to_ EOF - is EOF set? */
/* FIXME: What if we seek _to_ EOF - is EOF set? */
return
((
__int64
)
hoffset
<<
32
)
|
re
t
;
return
ret
.
QuadPar
t
;
}
}
TRACE
(
":error-last error (%ld)
\n
"
,
GetLastError
());
TRACE
(
":error-last error (%ld)
\n
"
,
GetLastError
());
msvcrt_set_errno
(
GetLastError
());
msvcrt_set_errno
(
GetLastError
());
...
...
dlls/msvcrt/msvcrt.h
View file @
6dc69f5f
...
@@ -73,7 +73,7 @@ extern DWORD msvcrt_tls_index;
...
@@ -73,7 +73,7 @@ extern DWORD msvcrt_tls_index;
struct
__thread_data
{
struct
__thread_data
{
int
thread_errno
;
int
thread_errno
;
unsigned
long
thread_doserrno
;
unsigned
long
thread_doserrno
;
char
*
mbstok_next
;
/* next ptr for mbstok() */
unsigned
char
*
mbstok_next
;
/* next ptr for mbstok() */
char
*
efcvt_buffer
;
/* buffer for ecvt/fcvt */
char
*
efcvt_buffer
;
/* buffer for ecvt/fcvt */
int
fpecode
;
int
fpecode
;
MSVCRT_terminate_function
terminate_handler
;
MSVCRT_terminate_function
terminate_handler
;
...
...
dlls/qcap/v4l.c
View file @
6dc69f5f
...
@@ -549,7 +549,7 @@ static void V4l_GetFrame(Capture * capBox, unsigned char ** pInput)
...
@@ -549,7 +549,7 @@ static void V4l_GetFrame(Capture * capBox, unsigned char ** pInput)
if
(
errno
!=
EAGAIN
)
break
;
if
(
errno
!=
EAGAIN
)
break
;
if
(
retval
==
-
1
)
if
(
retval
==
-
1
)
WARN
(
"Error occurred while reading from device: %s
\n
"
,
strerror
(
errno
));
WARN
(
"Error occurred while reading from device: %s
\n
"
,
strerror
(
errno
));
*
pInput
=
capBox
->
grab_data
;
*
pInput
=
(
unsigned
char
*
)
capBox
->
grab_data
;
}
}
}
}
...
...
dlls/winmm/wavemap/wavemap.c
View file @
6dc69f5f
...
@@ -358,11 +358,11 @@ static DWORD wodPrepare(WAVEMAPDATA* wom, LPWAVEHDR lpWaveHdrSrc, DWORD dwParam2
...
@@ -358,11 +358,11 @@ static DWORD wodPrepare(WAVEMAPDATA* wom, LPWAVEHDR lpWaveHdrSrc, DWORD dwParam2
ash
->
cbStruct
=
sizeof
(
*
ash
);
ash
->
cbStruct
=
sizeof
(
*
ash
);
ash
->
fdwStatus
=
0L
;
ash
->
fdwStatus
=
0L
;
ash
->
dwUser
=
(
DWORD
)
lpWaveHdrSrc
;
ash
->
dwUser
=
(
DWORD
)
lpWaveHdrSrc
;
ash
->
pbSrc
=
lpWaveHdrSrc
->
lpData
;
ash
->
pbSrc
=
(
LPBYTE
)
lpWaveHdrSrc
->
lpData
;
ash
->
cbSrcLength
=
lpWaveHdrSrc
->
dwBufferLength
;
ash
->
cbSrcLength
=
lpWaveHdrSrc
->
dwBufferLength
;
/* ash->cbSrcLengthUsed */
/* ash->cbSrcLengthUsed */
ash
->
dwSrcUser
=
lpWaveHdrSrc
->
dwUser
;
/* FIXME ? */
ash
->
dwSrcUser
=
lpWaveHdrSrc
->
dwUser
;
/* FIXME ? */
ash
->
pbDst
=
(
LP
STR
)
ash
+
sizeof
(
ACMSTREAMHEADER
)
+
sizeof
(
WAVEHDR
);
ash
->
pbDst
=
(
LP
BYTE
)
ash
+
sizeof
(
ACMSTREAMHEADER
)
+
sizeof
(
WAVEHDR
);
ash
->
cbDstLength
=
size
;
ash
->
cbDstLength
=
size
;
/* ash->cbDstLengthUsed */
/* ash->cbDstLengthUsed */
ash
->
dwDstUser
=
0
;
/* FIXME ? */
ash
->
dwDstUser
=
0
;
/* FIXME ? */
...
@@ -373,7 +373,7 @@ static DWORD wodPrepare(WAVEMAPDATA* wom, LPWAVEHDR lpWaveHdrSrc, DWORD dwParam2
...
@@ -373,7 +373,7 @@ static DWORD wodPrepare(WAVEMAPDATA* wom, LPWAVEHDR lpWaveHdrSrc, DWORD dwParam2
}
}
lpWaveHdrDst
=
(
LPWAVEHDR
)((
LPSTR
)
ash
+
sizeof
(
ACMSTREAMHEADER
));
lpWaveHdrDst
=
(
LPWAVEHDR
)((
LPSTR
)
ash
+
sizeof
(
ACMSTREAMHEADER
));
lpWaveHdrDst
->
lpData
=
ash
->
pbDst
;
lpWaveHdrDst
->
lpData
=
(
LPSTR
)
ash
->
pbDst
;
lpWaveHdrDst
->
dwBufferLength
=
size
;
/* conversion is not done yet */
lpWaveHdrDst
->
dwBufferLength
=
size
;
/* conversion is not done yet */
lpWaveHdrDst
->
dwFlags
=
0
;
lpWaveHdrDst
->
dwFlags
=
0
;
lpWaveHdrDst
->
dwLoops
=
0
;
lpWaveHdrDst
->
dwLoops
=
0
;
...
@@ -912,11 +912,11 @@ static DWORD widPrepare(WAVEMAPDATA* wim, LPWAVEHDR lpWaveHdrDst, DWORD dwParam2
...
@@ -912,11 +912,11 @@ static DWORD widPrepare(WAVEMAPDATA* wim, LPWAVEHDR lpWaveHdrDst, DWORD dwParam2
ash
->
cbStruct
=
sizeof
(
*
ash
);
ash
->
cbStruct
=
sizeof
(
*
ash
);
ash
->
fdwStatus
=
0L
;
ash
->
fdwStatus
=
0L
;
ash
->
dwUser
=
(
DWORD
)
lpWaveHdrDst
;
ash
->
dwUser
=
(
DWORD
)
lpWaveHdrDst
;
ash
->
pbSrc
=
(
LP
STR
)
ash
+
sizeof
(
ACMSTREAMHEADER
)
+
sizeof
(
WAVEHDR
);
ash
->
pbSrc
=
(
LP
BYTE
)
ash
+
sizeof
(
ACMSTREAMHEADER
)
+
sizeof
(
WAVEHDR
);
ash
->
cbSrcLength
=
size
;
ash
->
cbSrcLength
=
size
;
/* ash->cbSrcLengthUsed */
/* ash->cbSrcLengthUsed */
ash
->
dwSrcUser
=
0L
;
/* FIXME ? */
ash
->
dwSrcUser
=
0L
;
/* FIXME ? */
ash
->
pbDst
=
lpWaveHdrDst
->
lpData
;
ash
->
pbDst
=
(
LPBYTE
)
lpWaveHdrDst
->
lpData
;
ash
->
cbDstLength
=
lpWaveHdrDst
->
dwBufferLength
;
ash
->
cbDstLength
=
lpWaveHdrDst
->
dwBufferLength
;
/* ash->cbDstLengthUsed */
/* ash->cbDstLengthUsed */
ash
->
dwDstUser
=
lpWaveHdrDst
->
dwUser
;
/* FIXME ? */
ash
->
dwDstUser
=
lpWaveHdrDst
->
dwUser
;
/* FIXME ? */
...
@@ -927,7 +927,7 @@ static DWORD widPrepare(WAVEMAPDATA* wim, LPWAVEHDR lpWaveHdrDst, DWORD dwParam2
...
@@ -927,7 +927,7 @@ static DWORD widPrepare(WAVEMAPDATA* wim, LPWAVEHDR lpWaveHdrDst, DWORD dwParam2
}
}
lpWaveHdrSrc
=
(
LPWAVEHDR
)((
LPSTR
)
ash
+
sizeof
(
ACMSTREAMHEADER
));
lpWaveHdrSrc
=
(
LPWAVEHDR
)((
LPSTR
)
ash
+
sizeof
(
ACMSTREAMHEADER
));
lpWaveHdrSrc
->
lpData
=
ash
->
pbSrc
;
lpWaveHdrSrc
->
lpData
=
(
LPSTR
)
ash
->
pbSrc
;
lpWaveHdrSrc
->
dwBufferLength
=
size
;
/* conversion is not done yet */
lpWaveHdrSrc
->
dwBufferLength
=
size
;
/* conversion is not done yet */
lpWaveHdrSrc
->
dwFlags
=
0
;
lpWaveHdrSrc
->
dwFlags
=
0
;
lpWaveHdrSrc
->
dwLoops
=
0
;
lpWaveHdrSrc
->
dwLoops
=
0
;
...
...
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