Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
819ad641
Commit
819ad641
authored
Dec 05, 2008
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Dec 05, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msrle32: Remove some superfluous casts.
parent
27d8b743
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
msrle32.c
dlls/msrle32/msrle32.c
+7
-7
No files found.
dlls/msrle32/msrle32.c
View file @
819ad641
...
...
@@ -1136,7 +1136,7 @@ static CodecInfo* Open(LPICOPEN icinfo)
return
NULL
;
}
pi
=
(
CodecInfo
*
)
LocalAlloc
(
LPTR
,
sizeof
(
CodecInfo
));
pi
=
LocalAlloc
(
LPTR
,
sizeof
(
CodecInfo
));
if
(
pi
!=
NULL
)
{
pi
->
fccHandler
=
icinfo
->
fccHandler
;
...
...
@@ -1165,7 +1165,7 @@ static LRESULT Close(CodecInfo *pi)
if
(
pi
->
pPrevFrame
!=
NULL
||
pi
->
pCurFrame
!=
NULL
)
CompressEnd
(
pi
);
LocalFree
(
(
HLOCAL
)
pi
);
LocalFree
(
pi
);
return
1
;
}
...
...
@@ -1419,7 +1419,7 @@ static LRESULT CompressBegin(CodecInfo *pi, LPCBITMAPINFOHEADER lpbiIn,
switch
(
lpbiOut
->
biBitCount
)
{
case
4
:
case
8
:
pi
->
palette_map
=
(
LPBYTE
)
LocalAlloc
(
LPTR
,
lpbiIn
->
biClrUsed
);
pi
->
palette_map
=
LocalAlloc
(
LPTR
,
lpbiIn
->
biClrUsed
);
if
(
pi
->
palette_map
==
NULL
)
{
CompressEnd
(
pi
);
return
ICERR_MEMORY
;
...
...
@@ -1669,7 +1669,7 @@ static LRESULT DecompressBegin(CodecInfo *pi, LPCBITMAPINFOHEADER lpbiIn,
switch
(
lpbiOut
->
biBitCount
)
{
case
4
:
case
8
:
pi
->
palette_map
=
(
LPBYTE
)
LocalAlloc
(
LPTR
,
lpbiIn
->
biClrUsed
);
pi
->
palette_map
=
LocalAlloc
(
LPTR
,
lpbiIn
->
biClrUsed
);
if
(
pi
->
palette_map
==
NULL
)
return
ICERR_MEMORY
;
...
...
@@ -1679,7 +1679,7 @@ static LRESULT DecompressBegin(CodecInfo *pi, LPCBITMAPINFOHEADER lpbiIn,
break
;
case
15
:
case
16
:
pi
->
palette_map
=
(
LPBYTE
)
LocalAlloc
(
LPTR
,
lpbiIn
->
biClrUsed
*
2
);
pi
->
palette_map
=
LocalAlloc
(
LPTR
,
lpbiIn
->
biClrUsed
*
2
);
if
(
pi
->
palette_map
==
NULL
)
return
ICERR_MEMORY
;
...
...
@@ -1699,7 +1699,7 @@ static LRESULT DecompressBegin(CodecInfo *pi, LPCBITMAPINFOHEADER lpbiIn,
break
;
case
24
:
case
32
:
pi
->
palette_map
=
(
LPBYTE
)
LocalAlloc
(
LPTR
,
lpbiIn
->
biClrUsed
*
sizeof
(
RGBQUAD
));
pi
->
palette_map
=
LocalAlloc
(
LPTR
,
lpbiIn
->
biClrUsed
*
sizeof
(
RGBQUAD
));
if
(
pi
->
palette_map
==
NULL
)
return
ICERR_MEMORY
;
memcpy
(
pi
->
palette_map
,
rgbIn
,
lpbiIn
->
biClrUsed
*
sizeof
(
RGBQUAD
));
...
...
@@ -1753,7 +1753,7 @@ static LRESULT DecompressEnd(CodecInfo *pi)
pi
->
bDecompress
=
FALSE
;
if
(
pi
->
palette_map
!=
NULL
)
{
LocalFree
(
(
HLOCAL
)
pi
->
palette_map
);
LocalFree
(
pi
->
palette_map
);
pi
->
palette_map
=
NULL
;
}
...
...
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