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
08a4a980
Commit
08a4a980
authored
Jun 26, 2023
by
Hans Leidekker
Committed by
Alexandre Julliard
Jun 28, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winscard: Implement SCARD_AUTOALLOCATE for multi-string return values.
Wine-Bug:
https://bugs.winehq.org/show_bug.cgi?id=55137
parent
d4b2865e
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
2 deletions
+15
-2
winscard.c
dlls/winscard/tests/winscard.c
+15
-2
winscard.c
dlls/winscard/winscard.c
+0
-0
No files found.
dlls/winscard/tests/winscard.c
View file @
08a4a980
...
...
@@ -65,8 +65,21 @@ static void test_SCardEstablishContext(void)
ret
=
SCardListReadersA
(
context
,
NULL
,
readers
,
NULL
);
ok
(
ret
==
SCARD_E_INVALID_PARAMETER
,
"got %lx
\n
"
,
ret
);
len
-=
1
;
ret
=
SCardListReadersA
(
context
,
NULL
,
readers
,
&
len
);
ok
(
ret
==
SCARD_E_INSUFFICIENT_BUFFER
,
"got %lx
\n
"
,
ret
);
len
+=
1
;
ret
=
SCardListReadersA
(
context
,
NULL
,
readers
,
&
len
);
ok
(
ret
==
SCARD_S_SUCCESS
,
"got %lx
\n
"
,
ret
);
free
(
readers
);
readers
=
NULL
;
len
=
SCARD_AUTOALLOCATE
;
ret
=
SCardListReadersA
(
context
,
NULL
,
(
char
*
)
&
readers
,
&
len
);
ok
(
ret
==
SCARD_S_SUCCESS
,
"got %lx
\n
"
,
ret
);
ok
(
readers
!=
NULL
,
"got NULL readers"
);
ok
(
len
!=
SCARD_AUTOALLOCATE
,
"got %lu"
,
len
);
ptr
=
readers
;
while
(
*
ptr
)
{
...
...
@@ -107,7 +120,7 @@ static void test_SCardEstablishContext(void)
if
(
ret
==
SCARD_E_READER_UNAVAILABLE
)
{
skip
(
"can't connect to reader %s (in use by other application?)
\n
"
,
wine_dbgstr_a
(
readers
)
);
free
(
readers
);
SCardFreeMemory
(
context
,
readers
);
return
;
}
ok
(
ret
==
SCARD_S_SUCCESS
,
"got %lx
\n
"
,
ret
);
...
...
@@ -118,7 +131,7 @@ static void test_SCardEstablishContext(void)
ok
(
ret
==
SCARD_S_SUCCESS
,
"got %lx
\n
"
,
ret
);
ok
(
connect
!=
0xdeadbeef
,
"connect not set
\n
"
);
ok
(
protocol
==
SCARD_PROTOCOL_T1
,
"got %lx
\n
"
,
protocol
);
free
(
readers
);
SCardFreeMemory
(
context
,
readers
);
len
=
atrlen
=
0
;
state
=
0xdeadbeef
;
...
...
dlls/winscard/winscard.c
View file @
08a4a980
This diff is collapsed.
Click to expand it.
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