Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(139)

Unified Diff: content/common/sandbox_win.cc

Issue 1372153002: Detecting and fixing stringprintf.h format bugs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Separate #if defined blocks. Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/common/extensions/api/storage/storage_schema_manifest_handler.cc ('k') | ipc/handle_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/sandbox_win.cc
diff --git a/content/common/sandbox_win.cc b/content/common/sandbox_win.cc
index 5860239b4cf0b5bbfd4444569cd487fc537220ee..72d9facb9c62bbee49aa4c4cf57e355727326103 100644
--- a/content/common/sandbox_win.cc
+++ b/content/common/sandbox_win.cc
@@ -224,7 +224,7 @@ void AddGenericDllEvictionPolicy(sandbox::TargetPolicy* policy) {
// Returns the object path prepended with the current logon session.
base::string16 PrependWindowsSessionPath(const base::char16* object) {
// Cache this because it can't change after process creation.
- static uintptr_t s_session_id = 0;
+ static DWORD s_session_id = 0;
if (s_session_id == 0) {
HANDLE token;
DWORD session_id_length;
@@ -238,7 +238,7 @@ base::string16 PrependWindowsSessionPath(const base::char16* object) {
s_session_id = session_id;
}
- return base::StringPrintf(L"\\Sessions\\%d%ls", s_session_id, object);
+ return base::StringPrintf(L"\\Sessions\\%lu%ls", s_session_id, object);
}
// Checks if the sandbox should be let to run without a job object assigned.
« no previous file with comments | « chrome/common/extensions/api/storage/storage_schema_manifest_handler.cc ('k') | ipc/handle_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698