mirror of
https://github.com/pbatard/rufus.git
synced 2025-05-31 14:58:26 -04:00
[misc] work around Microsoft's broken SetDllDirectory()
* *THIS* is what you need to do to replace Microsoft's broken SetDllDirectory("") implementation and mitigate DLL sideloading from local directories. * Also fix some comment typos
This commit is contained in:
parent
b80f7c0785
commit
e1d864f755
7 changed files with 128 additions and 47 deletions
|
@ -556,7 +556,7 @@ LONG ValidateSignature(HWND hDlg, const char* path)
|
|||
// This is done to prevent the use of an officially signed, but older binary, as potential attack vector.
|
||||
current_ts = GetSignatureTimeStamp(NULL);
|
||||
if (current_ts == 0ULL) {
|
||||
uprintf("PKI: Cannot retreive the current binary's timestamp - Aborting update");
|
||||
uprintf("PKI: Cannot retrieve the current binary's timestamp - Aborting update");
|
||||
r = TRUST_E_TIME_STAMP;
|
||||
} else {
|
||||
update_ts = GetSignatureTimeStamp(path);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue