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
adf45127
Commit
adf45127
authored
Oct 03, 2018
by
Serge Gautherie
Committed by
Alexandre Julliard
Oct 03, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
credui: Use SecureZeroMemory().
Signed-off-by:
Serge Gautherie
<
winehq-git_serge_180711@gautherie.fr
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
89f5a9df
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
credui_main.c
dlls/credui/credui_main.c
+3
-3
No files found.
dlls/credui/credui_main.c
View file @
adf45127
...
...
@@ -89,7 +89,7 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
HeapFree
(
GetProcessHeap
(),
0
,
entry
->
pszTargetName
);
HeapFree
(
GetProcessHeap
(),
0
,
entry
->
pszUsername
);
ZeroMemory
(
entry
->
pszPassword
,
(
strlenW
(
entry
->
pszPassword
)
+
1
)
*
sizeof
(
WCHAR
));
SecureZeroMemory
(
entry
->
pszPassword
,
strlenW
(
entry
->
pszPassword
)
*
sizeof
(
WCHAR
));
HeapFree
(
GetProcessHeap
(),
0
,
entry
->
pszPassword
);
HeapFree
(
GetProcessHeap
(),
0
,
entry
);
}
...
...
@@ -673,7 +673,7 @@ DWORD WINAPI CredUIPromptForCredentialsW(PCREDUI_INFOW pUIInfo,
{
found
=
TRUE
;
HeapFree
(
GetProcessHeap
(),
0
,
entry
->
pszUsername
);
ZeroMemory
(
entry
->
pszPassword
,
(
strlenW
(
entry
->
pszPassword
)
+
1
)
*
sizeof
(
WCHAR
));
SecureZeroMemory
(
entry
->
pszPassword
,
strlenW
(
entry
->
pszPassword
)
*
sizeof
(
WCHAR
));
HeapFree
(
GetProcessHeap
(),
0
,
entry
->
pszPassword
);
}
...
...
@@ -733,7 +733,7 @@ DWORD WINAPI CredUIConfirmCredentialsW(PCWSTR pszTargetName, BOOL bConfirm)
HeapFree
(
GetProcessHeap
(),
0
,
entry
->
pszTargetName
);
HeapFree
(
GetProcessHeap
(),
0
,
entry
->
pszUsername
);
ZeroMemory
(
entry
->
pszPassword
,
(
strlenW
(
entry
->
pszPassword
)
+
1
)
*
sizeof
(
WCHAR
));
SecureZeroMemory
(
entry
->
pszPassword
,
strlenW
(
entry
->
pszPassword
)
*
sizeof
(
WCHAR
));
HeapFree
(
GetProcessHeap
(),
0
,
entry
->
pszPassword
);
HeapFree
(
GetProcessHeap
(),
0
,
entry
);
...
...
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