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
8a118c2e
Commit
8a118c2e
authored
Oct 20, 2017
by
Vincent Povirk
Committed by
Alexandre Julliard
Oct 23, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
twain_32: Notify data sources of their assigned Id.
Signed-off-by:
Vincent Povirk
<
vincent@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
a6ad46dc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
dsm_ctrl.c
dlls/twain_32/dsm_ctrl.c
+3
-2
No files found.
dlls/twain_32/dsm_ctrl.c
View file @
8a118c2e
...
...
@@ -242,13 +242,14 @@ TW_UINT16 TWAIN_OpenDS (pTW_IDENTITY pOrigin, TW_MEMREF pData)
}
newSource
->
hmod
=
hmod
;
newSource
->
dsEntry
=
(
DSENTRYPROC
)
GetProcAddress
(
hmod
,
"DS_Entry"
);
/* Assign id for the opened data source */
pIdentity
->
Id
=
DSM_sourceId
++
;
if
(
TWRC_SUCCESS
!=
newSource
->
dsEntry
(
pOrigin
,
DG_CONTROL
,
DAT_IDENTITY
,
MSG_OPENDS
,
pIdentity
))
{
DSM_twCC
=
TWCC_OPERATIONERROR
;
HeapFree
(
GetProcessHeap
(),
0
,
newSource
);
DSM_sourceId
--
;
return
TWRC_FAILURE
;
}
/* Assign name and id for the opened data source */
pIdentity
->
Id
=
DSM_sourceId
++
;
/* add the data source to an internal active source list */
newSource
->
next
=
activeSources
;
newSource
->
identity
.
Id
=
pIdentity
->
Id
;
...
...
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