diff options
author | Nico Weber <thakis@chromium.org> | 2016-02-09 21:53:47 -0500 |
---|---|---|
committer | Nico Weber <thakis@chromium.org> | 2016-02-10 02:58:20 +0000 |
commit | 8fff44b3077c182f38554dd7cf13a47c74e30fdc (patch) | |
tree | 91ad188f640524253e263aa8f70306b9d618dc96 /sandbox/win | |
parent | 9bad2faf07597a159f79d41b01f6cadf6a797d26 (diff) | |
download | chromium_src-8fff44b3077c182f38554dd7cf13a47c74e30fdc.zip chromium_src-8fff44b3077c182f38554dd7cf13a47c74e30fdc.tar.gz chromium_src-8fff44b3077c182f38554dd7cf13a47c74e30fdc.tar.bz2 |
Fix 64-bit clang/win build after https://codereview.chromium.org/1225183003
Fixes two Wint-to-void-pointer-cast warnings.
BUG=464430,82385
TBR=liamjm@chromium.org
Review URL: https://codereview.chromium.org/1685473004 .
Cr-Commit-Position: refs/heads/master@{#374588}
Diffstat (limited to 'sandbox/win')
-rw-r--r-- | sandbox/win/src/process_policy_test.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sandbox/win/src/process_policy_test.cc b/sandbox/win/src/process_policy_test.cc index 0498d3c..d272e62 100644 --- a/sandbox/win/src/process_policy_test.cc +++ b/sandbox/win/src/process_policy_test.cc @@ -314,7 +314,7 @@ SBOX_TESTS_COMMAND int Process_CreateThread(int argc, wchar_t** argv) { DWORD thread_id = 0; HANDLE thread = NULL; thread = ::CreateThread(NULL, 0, (LPTHREAD_START_ROUTINE)&TestThreadFunc, - (LPVOID)pid, 0, &thread_id); + reinterpret_cast<LPVOID>(pid), 0, &thread_id); if (!thread) { return SBOX_TEST_THIRD_ERROR; @@ -501,10 +501,10 @@ TEST(ProcessPolicyTest, TestCreateThreadOutsideSandbox) { HANDLE thread = NULL; thread = TargetCreateThread(::CreateThread, NULL, 0, (LPTHREAD_START_ROUTINE)&TestThreadFunc, - (LPVOID)pid, 0, &thread_id); + reinterpret_cast<LPVOID>(pid), 0, &thread_id); EXPECT_NE(static_cast<HANDLE>(NULL), thread); EXPECT_EQ(WAIT_OBJECT_0, WaitForSingleObject(thread, INFINITE)); EXPECT_EQ(WAIT_OBJECT_0, WaitForSingleObject(event, INFINITE)); } -} // namespace sandbox
\ No newline at end of file +} // namespace sandbox |