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
29c3a543
Commit
29c3a543
authored
Mar 03, 2006
by
Mike McCormack
Committed by
Alexandre Julliard
Mar 03, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msrle32: Fix some gcc 4.1 warnings caused by casts in windowsx.h macros.
parent
1006cfc8
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
5 deletions
+10
-5
msrle32.c
dlls/msrle32/msrle32.c
+10
-5
No files found.
dlls/msrle32/msrle32.c
View file @
29c3a543
...
...
@@ -27,7 +27,6 @@
#include "winnls.h"
#include "winuser.h"
#include "windowsx.h"
#include "wine/debug.h"
...
...
@@ -1387,10 +1386,10 @@ static LRESULT CompressBegin(CodecInfo *pi, LPCBITMAPINFOHEADER lpbiIn,
CompressEnd
(
pi
);
size
=
WIDTHBYTES
(
lpbiOut
->
biWidth
*
16
)
/
2
*
lpbiOut
->
biHeight
;
pi
->
pPrevFrame
=
(
LPWORD
)
GlobalAllocPtr
(
GPTR
,
size
*
sizeof
(
WORD
));
pi
->
pPrevFrame
=
GlobalLock
(
GlobalAlloc
(
GPTR
,
size
*
sizeof
(
WORD
)
));
if
(
pi
->
pPrevFrame
==
NULL
)
return
ICERR_MEMORY
;
pi
->
pCurFrame
=
(
LPWORD
)
GlobalAllocPtr
(
GPTR
,
size
*
sizeof
(
WORD
));
pi
->
pCurFrame
=
GlobalLock
(
GlobalAlloc
(
GPTR
,
size
*
sizeof
(
WORD
)
));
if
(
pi
->
pCurFrame
==
NULL
)
{
CompressEnd
(
pi
);
return
ICERR_MEMORY
;
...
...
@@ -1534,9 +1533,15 @@ static LRESULT CompressEnd(CodecInfo *pi)
if
(
pi
!=
NULL
)
{
if
(
pi
->
pPrevFrame
!=
NULL
)
GlobalFreePtr
(
pi
->
pPrevFrame
);
{
GlobalUnlock
(
GlobalHandle
(
pi
->
pPrevFrame
));
GlobalFree
(
GlobalHandle
(
pi
->
pPrevFrame
));
}
if
(
pi
->
pCurFrame
!=
NULL
)
GlobalFreePtr
(
pi
->
pCurFrame
);
{
GlobalUnlock
(
GlobalHandle
(
pi
->
pCurFrame
));
GlobalFree
(
GlobalHandle
(
pi
->
pCurFrame
));
}
pi
->
pPrevFrame
=
NULL
;
pi
->
pCurFrame
=
NULL
;
pi
->
nPrevFrame
=
-
1
;
...
...
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