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

Unified Diff: base/win/scoped_handle.cc

Issue 10541044: Base: Add another pc to the handle verifier to get to the (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 6 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 | « base/win/scoped_handle.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/win/scoped_handle.cc
===================================================================
--- base/win/scoped_handle.cc (revision 140907)
+++ base/win/scoped_handle.cc (working copy)
@@ -16,7 +16,8 @@
struct Info {
const void* owner;
- const void* pc;
+ const void* pc1;
+ const void* pc2;
DWORD thread_id;
};
typedef std::map<HANDLE, Info> HandleMap;
@@ -33,7 +34,7 @@
// Static.
void VerifierTraits::StartTracking(HANDLE handle, const void* owner,
- const void* pc) {
+ const void* pc1, const void* pc2) {
if (OSInfo::GetInstance()->version() > VERSION_XP)
return;
@@ -48,7 +49,7 @@
return;
}
- Info handle_info = { owner, pc, thread_id };
+ Info handle_info = { owner, pc1, pc2, thread_id };
std::pair<HANDLE, Info> item(handle, handle_info);
std::pair<HandleMap::iterator, bool> result = g_handle_map.Get().insert(item);
if (!result.second) {
@@ -60,7 +61,7 @@
// Static.
void VerifierTraits::StopTracking(HANDLE handle, const void* owner,
- const void* pc) {
+ const void* pc1, const void* pc2) {
if (OSInfo::GetInstance()->version() > VERSION_XP)
return;
« no previous file with comments | « base/win/scoped_handle.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698