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
44072183
Commit
44072183
authored
Oct 08, 2006
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Oct 09, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msrle32: Win64 printf format warning fixes.
parent
56c90105
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
11 deletions
+10
-11
Makefile.in
dlls/msrle32/Makefile.in
+0
-1
msrle32.c
dlls/msrle32/msrle32.c
+10
-10
No files found.
dlls/msrle32/Makefile.in
View file @
44072183
...
...
@@ -4,7 +4,6 @@ SRCDIR = @srcdir@
VPATH
=
@srcdir@
MODULE
=
msrle32.dll
IMPORTS
=
winmm user32 kernel32
EXTRADEFS
=
-DWINE_NO_LONG_AS_INT
C_SRCS
=
msrle32.c
...
...
dlls/msrle32/msrle32.c
View file @
44072183
...
...
@@ -1024,7 +1024,7 @@ static LRESULT MSRLE32_DecompressRLE8(CodecInfo *pi, LPCBITMAPINFOHEADER lpbi,
break
;
default:
/* absolute mode */
if
(
pixel_ptr
/
bytes_per_pixel
+
code1
>
lpbi
->
biWidth
)
{
WARN
(
"aborted absolute: (%d=%d/%d+%d) > %l
d
\n
"
,
pixel_ptr
/
bytes_per_pixel
+
code1
,
pixel_ptr
,
bytes_per_pixel
,
code1
,
lpbi
->
biWidth
);
WARN
(
"aborted absolute: (%d=%d/%d+%d) > %
d
\n
"
,
pixel_ptr
/
bytes_per_pixel
+
code1
,
pixel_ptr
,
bytes_per_pixel
,
code1
,
lpbi
->
biWidth
);
return
ICERR_ERROR
;
}
extra_byte
=
code1
&
0x01
;
...
...
@@ -1052,7 +1052,7 @@ static LRESULT MSRLE32_DecompressRLE8(CodecInfo *pi, LPCBITMAPINFOHEADER lpbi,
}
else
{
/* coded mode */
if
(
pixel_ptr
/
bytes_per_pixel
+
code0
>
lpbi
->
biWidth
)
{
WARN
(
"aborted coded: (%d=%d/%d+%d) > %
l
d
\n
"
,
pixel_ptr
/
bytes_per_pixel
+
code1
,
pixel_ptr
,
bytes_per_pixel
,
code1
,
lpbi
->
biWidth
);
WARN
(
"aborted coded: (%d=%d/%d+%d) > %d
\n
"
,
pixel_ptr
/
bytes_per_pixel
+
code1
,
pixel_ptr
,
bytes_per_pixel
,
code1
,
lpbi
->
biWidth
);
return
ICERR_ERROR
;
}
...
...
@@ -1100,7 +1100,7 @@ static CodecInfo* Open(LPICOPEN icinfo)
if
(
icinfo
->
fccType
!=
ICTYPE_VIDEO
)
return
NULL
;
TRACE
(
"(%p = {%
lu,0x%08lX(%4.4s),0x%08lX(%4.4s),0x%lX,0x%l
X,...})
\n
"
,
icinfo
,
TRACE
(
"(%p = {%
u,0x%08X(%4.4s),0x%08X(%4.4s),0x%X,0x%
X,...})
\n
"
,
icinfo
,
icinfo
->
dwSize
,
icinfo
->
fccType
,
(
char
*
)
&
icinfo
->
fccType
,
icinfo
->
fccHandler
,
(
char
*
)
&
icinfo
->
fccHandler
,
icinfo
->
dwVersion
,
icinfo
->
dwFlags
);
...
...
@@ -1115,7 +1115,7 @@ static CodecInfo* Open(LPICOPEN icinfo)
icinfo
->
fccHandler
=
FOURCC_MRLE
;
break
;
default:
WARN
(
"unknown FOURCC = 0x%08
l
X(%4.4s) !
\n
"
,
WARN
(
"unknown FOURCC = 0x%08X(%4.4s) !
\n
"
,
icinfo
->
fccHandler
,(
char
*
)
&
icinfo
->
fccHandler
);
return
NULL
;
}
...
...
@@ -1422,7 +1422,7 @@ static LRESULT Compress(CodecInfo *pi, ICCOMPRESS* lpic, DWORD dwSize)
{
int
i
;
TRACE
(
"(%p,%p,%
l
u)
\n
"
,
pi
,
lpic
,
dwSize
);
TRACE
(
"(%p,%p,%u)
\n
"
,
pi
,
lpic
,
dwSize
);
/* pre-condition */
assert
(
pi
!=
NULL
);
...
...
@@ -1434,7 +1434,7 @@ static LRESULT Compress(CodecInfo *pi, ICCOMPRESS* lpic, DWORD dwSize)
!
lpic
->
lpbiInput
||
!
lpic
->
lpInput
)
return
ICERR_BADPARAM
;
TRACE
(
"lpic={0x%
lX,%p,%p,%p,%p,%p,%p,%ld,%lu,%l
u,%p,%p}
\n
"
,
lpic
->
dwFlags
,
lpic
->
lpbiOutput
,
lpic
->
lpOutput
,
lpic
->
lpbiInput
,
lpic
->
lpInput
,
lpic
->
lpckid
,
lpic
->
lpdwFlags
,
lpic
->
lFrameNum
,
lpic
->
dwFrameSize
,
lpic
->
dwQuality
,
lpic
->
lpbiPrev
,
lpic
->
lpPrev
);
TRACE
(
"lpic={0x%
X,%p,%p,%p,%p,%p,%p,%d,%u,%
u,%p,%p}
\n
"
,
lpic
->
dwFlags
,
lpic
->
lpbiOutput
,
lpic
->
lpOutput
,
lpic
->
lpbiInput
,
lpic
->
lpInput
,
lpic
->
lpckid
,
lpic
->
lpdwFlags
,
lpic
->
lFrameNum
,
lpic
->
dwFrameSize
,
lpic
->
dwQuality
,
lpic
->
lpbiPrev
,
lpic
->
lpPrev
);
if
(
!
pi
->
bCompress
)
{
LRESULT
hr
=
CompressBegin
(
pi
,
lpic
->
lpbiInput
,
lpic
->
lpbiOutput
);
...
...
@@ -1458,13 +1458,13 @@ static LRESULT Compress(CodecInfo *pi, ICCOMPRESS* lpic, DWORD dwSize)
}
else
if
((
lpic
->
dwFlags
&
ICCOMPRESS_KEYFRAME
)
==
0
)
{
LPWORD
pTmp
;
WARN
(
": prev=%
ld cur=%l
d gone back? -- untested
\n
"
,
pi
->
nPrevFrame
,
lpic
->
lFrameNum
);
WARN
(
": prev=%
d cur=%
d gone back? -- untested
\n
"
,
pi
->
nPrevFrame
,
lpic
->
lFrameNum
);
if
(
lpic
->
lpbiPrev
==
NULL
||
lpic
->
lpPrev
==
NULL
)
return
ICERR_GOTOKEYFRAME
;
/* Need a keyframe if you go back */
if
(
CompressQuery
(
pi
,
lpic
->
lpbiPrev
,
lpic
->
lpbiOutput
)
!=
ICERR_OK
)
return
ICERR_BADFORMAT
;
WARN
(
": prev=%
ld cur=%l
d compute swapped -- untested
\n
"
,
pi
->
nPrevFrame
,
lpic
->
lFrameNum
);
WARN
(
": prev=%
d cur=%
d compute swapped -- untested
\n
"
,
pi
->
nPrevFrame
,
lpic
->
lFrameNum
);
computeInternalFrame
(
pi
,
lpic
->
lpbiPrev
,
lpic
->
lpPrev
);
/* swap buffers for current and previous frame */
...
...
@@ -1697,7 +1697,7 @@ static LRESULT DecompressBegin(CodecInfo *pi, LPCBITMAPINFOHEADER lpbiIn,
static
LRESULT
Decompress
(
CodecInfo
*
pi
,
ICDECOMPRESS
*
pic
,
DWORD
dwSize
)
{
TRACE
(
"(%p,%p,%
l
u)
\n
"
,
pi
,
pic
,
dwSize
);
TRACE
(
"(%p,%p,%u)
\n
"
,
pi
,
pic
,
dwSize
);
/* pre-condition */
assert
(
pi
!=
NULL
);
...
...
@@ -1892,7 +1892,7 @@ LRESULT CALLBACK MSRLE32_DriverProc(DWORD_PTR dwDrvID, HDRVR hDrv, UINT uMsg,
/* DllMain - library initialization code */
BOOL
WINAPI
DllMain
(
HINSTANCE
hModule
,
DWORD
dwReason
,
LPVOID
lpReserved
)
{
TRACE
(
"(%p,%
l
d,%p)
\n
"
,(
LPVOID
)
hModule
,
dwReason
,
lpReserved
);
TRACE
(
"(%p,%d,%p)
\n
"
,(
LPVOID
)
hModule
,
dwReason
,
lpReserved
);
switch
(
dwReason
)
{
case
DLL_PROCESS_ATTACH
:
...
...
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