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
8d7dcb65
Commit
8d7dcb65
authored
May 09, 2006
by
Michael Stefaniuc
Committed by
Alexandre Julliard
May 09, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
twain_32: Add missing HeapFree's on error patch (found by smatch).
parent
81c2ef54
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
dsm_ctrl.c
dlls/twain_32/dsm_ctrl.c
+2
-0
No files found.
dlls/twain_32/dsm_ctrl.c
View file @
8d7dcb65
...
...
@@ -233,12 +233,14 @@ TW_UINT16 TWAIN_OpenDS (pTW_IDENTITY pOrigin, TW_MEMREF pData)
if
(
!
hmod
)
{
ERR
(
"Failed to load TWAIN Source %s
\n
"
,
modname
);
DSM_twCC
=
TWCC_OPERATIONERROR
;
HeapFree
(
GetProcessHeap
(),
0
,
newSource
);
return
TWRC_FAILURE
;
}
newSource
->
hmod
=
hmod
;
newSource
->
dsEntry
=
(
DSENTRYPROC
)
GetProcAddress
(
hmod
,
"DS_Entry"
);
if
(
TWRC_SUCCESS
!=
newSource
->
dsEntry
(
pOrigin
,
DG_CONTROL
,
DAT_IDENTITY
,
MSG_OPENDS
,
pIdentity
))
{
DSM_twCC
=
TWCC_OPERATIONERROR
;
HeapFree
(
GetProcessHeap
(),
0
,
newSource
);
return
TWRC_FAILURE
;
}
/* Assign name and id for the opened data source */
...
...
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