Commit 443c94a3 authored by mad@chromium.org's avatar mad@chromium.org

Fixing a crash when loading themes on Win8.

Some structures have new fields, so we must make sure to zero them all upon initialization.

Actually simple/safe enough for tbr...
TBR=bryner@chromium.org
BUG=141464
TEST=Make sure we can install a theme without crashing while running in Metro mode.

Review URL: https://chromiumcodereview.appspot.com/10832293

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@151511 0039d316-1c4b-4281-b951-d872f2087c98
parent f15f0e5c
......@@ -25,13 +25,13 @@ void SignatureUtil::CheckSignature(
ClientDownloadRequest_SignatureInfo* signature_info) {
VLOG(2) << "Checking signature for " << file_path.value();
WINTRUST_FILE_INFO file_info;
WINTRUST_FILE_INFO file_info = {0};
file_info.cbStruct = sizeof(file_info);
file_info.pcwszFilePath = file_path.value().c_str();
file_info.hFile = NULL;
file_info.pgKnownSubject = NULL;
WINTRUST_DATA wintrust_data;
WINTRUST_DATA wintrust_data = {0};
wintrust_data.cbStruct = sizeof(wintrust_data);
wintrust_data.pPolicyCallbackData = NULL;
wintrust_data.pSIPClientData = NULL;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment