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
9285306a
Commit
9285306a
authored
Sep 14, 2012
by
Charles Davis
Committed by
Alexandre Julliard
Sep 17, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
advapi32: Eliminate dead stores (Clang).
parent
0a3ec107
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
10 deletions
+2
-10
cred.c
dlls/advapi32/cred.c
+2
-10
No files found.
dlls/advapi32/cred.c
View file @
9285306a
...
@@ -190,7 +190,6 @@ static DWORD registry_read_credential(HKEY hkey, PCREDENTIALW credential,
...
@@ -190,7 +190,6 @@ static DWORD registry_read_credential(HKEY hkey, PCREDENTIALW credential,
else
if
(
ret
!=
ERROR_SUCCESS
)
else
if
(
ret
!=
ERROR_SUCCESS
)
return
ret
;
return
ret
;
credential
->
CredentialBlobSize
=
count
;
credential
->
CredentialBlobSize
=
count
;
buffer
+=
count
;
}
}
/* FIXME: Attributes */
/* FIXME: Attributes */
...
@@ -425,7 +424,6 @@ static DWORD mac_read_credential_from_item(SecKeychainItemRef item, BOOL require
...
@@ -425,7 +424,6 @@ static DWORD mac_read_credential_from_item(SecKeychainItemRef item, BOOL require
str_len
=
MultiByteToWideChar
(
CP_UTF8
,
0
,
cred_blob
,
cred_blob_len
,
str_len
=
MultiByteToWideChar
(
CP_UTF8
,
0
,
cred_blob
,
cred_blob_len
,
(
LPWSTR
)
buffer
,
0xffff
);
(
LPWSTR
)
buffer
,
0xffff
);
credential
->
CredentialBlobSize
=
str_len
*
sizeof
(
WCHAR
);
credential
->
CredentialBlobSize
=
str_len
*
sizeof
(
WCHAR
);
buffer
+=
str_len
*
sizeof
(
WCHAR
);
*
len
+=
str_len
*
sizeof
(
WCHAR
);
*
len
+=
str_len
*
sizeof
(
WCHAR
);
}
}
else
else
...
@@ -771,17 +769,11 @@ static DWORD registry_enumerate_credentials(HKEY hkeyMgr, LPCWSTR filter,
...
@@ -771,17 +769,11 @@ static DWORD registry_enumerate_credentials(HKEY hkeyMgr, LPCWSTR filter,
break
;
break
;
}
}
else
if
(
ret
!=
ERROR_SUCCESS
)
else
if
(
ret
!=
ERROR_SUCCESS
)
{
ret
=
ERROR_SUCCESS
;
continue
;
continue
;
}
TRACE
(
"target_name = %s
\n
"
,
debugstr_w
(
target_name
));
TRACE
(
"target_name = %s
\n
"
,
debugstr_w
(
target_name
));
ret
=
RegOpenKeyExW
(
hkeyMgr
,
target_name
,
0
,
KEY_QUERY_VALUE
,
&
hkeyCred
);
ret
=
RegOpenKeyExW
(
hkeyMgr
,
target_name
,
0
,
KEY_QUERY_VALUE
,
&
hkeyCred
);
if
(
ret
!=
ERROR_SUCCESS
)
if
(
ret
!=
ERROR_SUCCESS
)
{
ret
=
ERROR_SUCCESS
;
continue
;
continue
;
}
if
(
!
credential_matches_filter
(
hkeyCred
,
filter
))
if
(
!
credential_matches_filter
(
hkeyCred
,
filter
))
{
{
RegCloseKey
(
hkeyCred
);
RegCloseKey
(
hkeyCred
);
...
@@ -1677,8 +1669,8 @@ BOOL WINAPI CredReadDomainCredentialsA(PCREDENTIAL_TARGET_INFORMATIONA TargetInf
...
@@ -1677,8 +1669,8 @@ BOOL WINAPI CredReadDomainCredentialsA(PCREDENTIAL_TARGET_INFORMATIONA TargetInf
if
(
TargetInformation
->
PackageName
)
if
(
TargetInformation
->
PackageName
)
{
{
TargetInformationW
->
PackageName
=
buffer
;
TargetInformationW
->
PackageName
=
buffer
;
buffer
+=
MultiByteToWideChar
(
CP_ACP
,
0
,
TargetInformation
->
PackageName
,
-
1
,
MultiByteToWideChar
(
CP_ACP
,
0
,
TargetInformation
->
PackageName
,
-
1
,
TargetInformationW
->
PackageName
,
end
-
buffer
);
TargetInformationW
->
PackageName
,
end
-
buffer
);
}
else
}
else
TargetInformationW
->
PackageName
=
NULL
;
TargetInformationW
->
PackageName
=
NULL
;
...
...
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