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
982fb2fd
Commit
982fb2fd
authored
Oct 19, 2015
by
Bruno Jesus
Committed by
Alexandre Julliard
Oct 20, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvfw32: Simplify error handling in ICSeqCompressFrameStart.
Signed-off-by:
Bruno Jesus
<
00cpxxx@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
4c80ec02
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
15 deletions
+6
-15
msvideo_main.c
dlls/msvfw32/msvideo_main.c
+6
-15
No files found.
dlls/msvfw32/msvideo_main.c
View file @
982fb2fd
...
@@ -1433,28 +1433,18 @@ BOOL VFWAPI ICSeqCompressFrameStart(PCOMPVARS pc, LPBITMAPINFO lpbiIn)
...
@@ -1433,28 +1433,18 @@ BOOL VFWAPI ICSeqCompressFrameStart(PCOMPVARS pc, LPBITMAPINFO lpbiIn)
*
pc
->
lpbiIn
=
*
lpbiIn
;
*
pc
->
lpbiIn
=
*
lpbiIn
;
pc
->
lpBitsPrev
=
HeapAlloc
(
GetProcessHeap
(),
0
,
pc
->
lpbiIn
->
bmiHeader
.
biSizeImage
);
pc
->
lpBitsPrev
=
HeapAlloc
(
GetProcessHeap
(),
0
,
pc
->
lpbiIn
->
bmiHeader
.
biSizeImage
);
if
(
!
pc
->
lpBitsPrev
)
if
(
!
pc
->
lpBitsPrev
)
{
goto
error
;
HeapFree
(
GetProcessHeap
(),
0
,
pc
->
lpbiIn
);
return
FALSE
;
}
pc
->
lpState
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
ICCOMPRESS
));
pc
->
lpState
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
ICCOMPRESS
));
if
(
!
pc
->
lpState
)
if
(
!
pc
->
lpState
)
{
goto
error
;
HeapFree
(
GetProcessHeap
(),
0
,
pc
->
lpbiIn
);
HeapFree
(
GetProcessHeap
(),
0
,
pc
->
lpBitsPrev
);
return
FALSE
;
}
pc
->
cbState
=
sizeof
(
ICCOMPRESS
);
pc
->
cbState
=
sizeof
(
ICCOMPRESS
);
pc
->
lpBitsOut
=
HeapAlloc
(
GetProcessHeap
(),
0
,
pc
->
lpbiOut
->
bmiHeader
.
biSizeImage
);
pc
->
lpBitsOut
=
HeapAlloc
(
GetProcessHeap
(),
0
,
pc
->
lpbiOut
->
bmiHeader
.
biSizeImage
);
if
(
!
pc
->
lpBitsOut
)
if
(
!
pc
->
lpBitsOut
)
{
goto
error
;
HeapFree
(
GetProcessHeap
(),
0
,
pc
->
lpbiIn
);
HeapFree
(
GetProcessHeap
(),
0
,
pc
->
lpBitsPrev
);
HeapFree
(
GetProcessHeap
(),
0
,
pc
->
lpState
);
return
FALSE
;
}
TRACE
(
"Compvars:
\n
"
TRACE
(
"Compvars:
\n
"
"
\t
pc:
\n
"
"
\t
pc:
\n
"
"
\t
size: %i
\n
"
"
\t
size: %i
\n
"
...
@@ -1483,6 +1473,7 @@ BOOL VFWAPI ICSeqCompressFrameStart(PCOMPVARS pc, LPBITMAPINFO lpbiIn)
...
@@ -1483,6 +1473,7 @@ BOOL VFWAPI ICSeqCompressFrameStart(PCOMPVARS pc, LPBITMAPINFO lpbiIn)
icComp
->
lpbiPrev
=
&
pc
->
lpbiIn
->
bmiHeader
;
icComp
->
lpbiPrev
=
&
pc
->
lpbiIn
->
bmiHeader
;
return
TRUE
;
return
TRUE
;
}
}
error:
HeapFree
(
GetProcessHeap
(),
0
,
pc
->
lpbiIn
);
HeapFree
(
GetProcessHeap
(),
0
,
pc
->
lpbiIn
);
HeapFree
(
GetProcessHeap
(),
0
,
pc
->
lpBitsPrev
);
HeapFree
(
GetProcessHeap
(),
0
,
pc
->
lpBitsPrev
);
HeapFree
(
GetProcessHeap
(),
0
,
pc
->
lpState
);
HeapFree
(
GetProcessHeap
(),
0
,
pc
->
lpState
);
...
...
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