Index: sandbox/win/tests/validation_tests/suite.cc |
diff --git a/sandbox/win/tests/validation_tests/suite.cc b/sandbox/win/tests/validation_tests/suite.cc |
index 483d6fbff61a05092ede8dc55da729368f761909..35fb5ddc233a92fc09443e9defb66be769df93e0 100644 |
--- a/sandbox/win/tests/validation_tests/suite.cc |
+++ b/sandbox/win/tests/validation_tests/suite.cc |
@@ -142,10 +142,12 @@ TEST(ValidationSuite, TestWindows) { |
TestRunner runner; |
wchar_t command[1024] = {0}; |
- wsprintf(command, L"ValidWindow %d", ::GetDesktopWindow()); |
+ wsprintf(command, L"ValidWindow %Id", |
+ reinterpret_cast<size_t>(::GetDesktopWindow())); |
EXPECT_EQ(SBOX_TEST_DENIED, runner.RunTest(command)); |
- wsprintf(command, L"ValidWindow %d", ::FindWindow(NULL, NULL)); |
+ wsprintf(command, L"ValidWindow %Id", |
+ reinterpret_cast<size_t>(::FindWindow(NULL, NULL))); |
EXPECT_EQ(SBOX_TEST_DENIED, runner.RunTest(command)); |
} |