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
40c01320
Commit
40c01320
authored
Feb 16, 2023
by
Hans Leidekker
Committed by
Alexandre Julliard
Feb 22, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winscard: Use string conversion helpers in SCardAddReaderToGroupA().
parent
906977f5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
15 deletions
+16
-15
winscard.c
dlls/winscard/winscard.c
+16
-15
No files found.
dlls/winscard/winscard.c
View file @
40c01320
...
...
@@ -115,27 +115,28 @@ HANDLE WINAPI SCardAccessStartedEvent(void)
return
g_startedEvent
;
}
LONG
WINAPI
SCardAddReaderToGroupA
(
SCARDCONTEXT
context
,
LPCSTR
reader
,
LPCSTR
group
)
LONG
WINAPI
SCardAddReaderToGroupA
(
SCARDCONTEXT
context
,
const
char
*
reader
,
const
char
*
group
)
{
LONG
retval
;
UNICODE_STRING
readerW
,
groupW
;
if
(
reader
)
RtlCreateUnicodeStringFromAsciiz
(
&
readerW
,
reader
);
else
readerW
.
Buffer
=
NULL
;
if
(
group
)
RtlCreateUnicodeStringFromAsciiz
(
&
groupW
,
group
);
else
groupW
.
Buffer
=
NULL
;
retval
=
SCardAddReaderToGroupW
(
context
,
readerW
.
Buffer
,
groupW
.
Buffer
);
WCHAR
*
readerW
=
NULL
,
*
groupW
=
NULL
;
LONG
ret
;
RtlFreeUnicodeString
(
&
readerW
);
RtlFreeUnicodeString
(
&
groupW
);
TRACE
(
"%Ix, %s, %s
\n
"
,
context
,
debugstr_a
(
reader
),
debugstr_a
(
group
)
);
return
retval
;
if
(
reader
&&
!
(
readerW
=
ansi_to_utf16
(
reader
)))
return
SCARD_E_NO_MEMORY
;
if
(
group
&&
!
(
groupW
=
ansi_to_utf16
(
group
)))
{
free
(
readerW
);
return
SCARD_E_NO_MEMORY
;
}
ret
=
SCardAddReaderToGroupW
(
context
,
readerW
,
groupW
);
free
(
readerW
);
free
(
groupW
);
return
ret
;
}
LONG
WINAPI
SCardAddReaderToGroupW
(
SCARDCONTEXT
context
,
LPCWSTR
reader
,
LPCWSTR
group
)
LONG
WINAPI
SCardAddReaderToGroupW
(
SCARDCONTEXT
context
,
const
WCHAR
*
reader
,
const
WCHAR
*
group
)
{
FIXME
(
"%x %s %s
\n
"
,
(
unsigned
int
)
context
,
debugstr_w
(
reader
),
debugstr_w
(
group
)
);
FIXME
(
"%Ix, %s, %s
\n
"
,
context
,
debugstr_w
(
reader
),
debugstr_w
(
group
)
);
return
SCARD_S_SUCCESS
;
}
...
...
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