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

Unified Diff: sandbox/src/registry_dispatcher.cc

Issue 873006: Re-land second sandbox round of changes... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 9 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 | « sandbox/src/registry_dispatcher.h ('k') | sandbox/src/sandbox_policy_base.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sandbox/src/registry_dispatcher.cc
===================================================================
--- sandbox/src/registry_dispatcher.cc (revision 41493)
+++ sandbox/src/registry_dispatcher.cc (working copy)
@@ -42,13 +42,13 @@
RegistryDispatcher::RegistryDispatcher(PolicyBase* policy_base)
: policy_base_(policy_base) {
static const IPCCall create_params = {
- {IPC_NTCREATEKEY_TAG, WCHAR_TYPE, ULONG_TYPE, ULONG_TYPE, ULONG_TYPE,
+ {IPC_NTCREATEKEY_TAG, WCHAR_TYPE, ULONG_TYPE, VOIDPTR_TYPE, ULONG_TYPE,
ULONG_TYPE, ULONG_TYPE},
reinterpret_cast<CallbackGeneric>(&RegistryDispatcher::NtCreateKey)
};
static const IPCCall open_params = {
- {IPC_NTOPENKEY_TAG, WCHAR_TYPE, ULONG_TYPE, ULONG_TYPE, ULONG_TYPE},
+ {IPC_NTOPENKEY_TAG, WCHAR_TYPE, ULONG_TYPE, VOIDPTR_TYPE, ULONG_TYPE},
reinterpret_cast<CallbackGeneric>(&RegistryDispatcher::NtOpenKey)
};
@@ -72,14 +72,11 @@
}
bool RegistryDispatcher::NtCreateKey(
- IPCInfo* ipc, std::wstring* name, DWORD attributes, DWORD root_directory,
+ IPCInfo* ipc, std::wstring* name, DWORD attributes, HANDLE root,
DWORD desired_access, DWORD title_index, DWORD create_options) {
ScopedHandle root_handle;
std::wstring real_path = *name;
- HANDLE root = reinterpret_cast<HANDLE>(
- static_cast<ULONG_PTR>(root_directory));
-
// If there is a root directory, we need to duplicate the handle to make
// it valid in this process.
if (root) {
@@ -121,14 +118,11 @@
}
bool RegistryDispatcher::NtOpenKey(IPCInfo* ipc, std::wstring* name,
- DWORD attributes, DWORD root_directory,
+ DWORD attributes, HANDLE root,
DWORD desired_access) {
ScopedHandle root_handle;
std::wstring real_path = *name;
- HANDLE root = reinterpret_cast<HANDLE>(
- static_cast<ULONG_PTR>(root_directory));
-
// If there is a root directory, we need to duplicate the handle to make
// it valid in this process.
if (root) {
« no previous file with comments | « sandbox/src/registry_dispatcher.h ('k') | sandbox/src/sandbox_policy_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698