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
263cb72e
Commit
263cb72e
authored
Dec 01, 2007
by
Andrew Talbot
Committed by
Alexandre Julliard
Dec 03, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
advapi32: Remove unneeded casts.
parent
b3e56e9d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
cred.c
dlls/advapi32/cred.c
+4
-4
crypt.c
dlls/advapi32/crypt.c
+1
-1
security.c
dlls/advapi32/security.c
+1
-1
No files found.
dlls/advapi32/cred.c
View file @
263cb72e
...
...
@@ -932,7 +932,7 @@ static void convert_PCREDENTIALW_to_PCREDENTIALA(const CREDENTIALW *CredentialW,
CredentialA
->
Type
=
CredentialW
->
Type
;
if
(
CredentialW
->
TargetName
)
{
CredentialA
->
TargetName
=
(
LPSTR
)
buffer
;
CredentialA
->
TargetName
=
buffer
;
string_len
=
WideCharToMultiByte
(
CP_ACP
,
0
,
CredentialW
->
TargetName
,
-
1
,
CredentialA
->
TargetName
,
-
1
,
NULL
,
NULL
);
buffer
+=
string_len
;
*
len
+=
string_len
;
...
...
@@ -941,7 +941,7 @@ static void convert_PCREDENTIALW_to_PCREDENTIALA(const CREDENTIALW *CredentialW,
CredentialA
->
TargetName
=
NULL
;
if
(
CredentialW
->
Comment
)
{
CredentialA
->
Comment
=
(
LPSTR
)
buffer
;
CredentialA
->
Comment
=
buffer
;
string_len
=
WideCharToMultiByte
(
CP_ACP
,
0
,
CredentialW
->
Comment
,
-
1
,
CredentialA
->
Comment
,
-
1
,
NULL
,
NULL
);
buffer
+=
string_len
;
*
len
+=
string_len
;
...
...
@@ -965,7 +965,7 @@ static void convert_PCREDENTIALW_to_PCREDENTIALA(const CREDENTIALW *CredentialW,
CredentialA
->
Attributes
=
NULL
;
/* FIXME */
if
(
CredentialW
->
TargetAlias
)
{
CredentialA
->
TargetAlias
=
(
LPSTR
)
buffer
;
CredentialA
->
TargetAlias
=
buffer
;
string_len
=
WideCharToMultiByte
(
CP_ACP
,
0
,
CredentialW
->
TargetAlias
,
-
1
,
CredentialA
->
TargetAlias
,
-
1
,
NULL
,
NULL
);
buffer
+=
string_len
;
*
len
+=
string_len
;
...
...
@@ -974,7 +974,7 @@ static void convert_PCREDENTIALW_to_PCREDENTIALA(const CREDENTIALW *CredentialW,
CredentialA
->
TargetAlias
=
NULL
;
if
(
CredentialW
->
UserName
)
{
CredentialA
->
UserName
=
(
LPSTR
)
buffer
;
CredentialA
->
UserName
=
buffer
;
string_len
=
WideCharToMultiByte
(
CP_ACP
,
0
,
CredentialW
->
UserName
,
-
1
,
CredentialA
->
UserName
,
-
1
,
NULL
,
NULL
);
buffer
+=
string_len
;
*
len
+=
string_len
;
...
...
dlls/advapi32/crypt.c
View file @
263cb72e
...
...
@@ -52,7 +52,7 @@ WINE_DEFAULT_DEBUG_CHANNEL(crypt);
static
HWND
crypt_hWindow
;
#define CRYPT_Alloc(size) (
(LPVOID)
LocalAlloc(LMEM_ZEROINIT, size))
#define CRYPT_Alloc(size) (LocalAlloc(LMEM_ZEROINIT, size))
#define CRYPT_Free(buffer) (LocalFree((HLOCAL)buffer))
static
inline
PWSTR
CRYPT_GetProvKeyName
(
PCWSTR
pProvName
)
...
...
dlls/advapi32/security.c
View file @
263cb72e
...
...
@@ -4087,7 +4087,7 @@ BOOL WINAPI ConvertStringSidToSidW(LPCWSTR StringSid, PSID* Sid)
SetLastError
(
ERROR_INVALID_PARAMETER
);
else
if
(
ParseStringSidToSid
(
StringSid
,
NULL
,
&
cBytes
))
{
PSID
pSid
=
*
Sid
=
(
PSID
)
LocalAlloc
(
0
,
cBytes
);
PSID
pSid
=
*
Sid
=
LocalAlloc
(
0
,
cBytes
);
bret
=
ParseStringSidToSid
(
StringSid
,
pSid
,
&
cBytes
);
if
(
!
bret
)
...
...
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