Index: sandbox/win/src/named_pipe_policy_test.cc |
diff --git a/sandbox/win/src/named_pipe_policy_test.cc b/sandbox/win/src/named_pipe_policy_test.cc |
index fe8c71f70b91e9d31fede3d688a842633871bad2..813cf1f4640290993504d44e5bac62f2fdbf3242 100644 |
--- a/sandbox/win/src/named_pipe_policy_test.cc |
+++ b/sandbox/win/src/named_pipe_policy_test.cc |
@@ -109,9 +109,10 @@ TEST(NamedPipePolicyTest, CreatePipeCanonicalization) { |
// disable all string parsing and to send the string that follows it straight |
// to the file system." |
// http://msdn.microsoft.com/en-us/library/aa365247(VS.85).aspx |
- wchar_t* argv[2] = { L"\\\\?\\pipe\\test\\..\\bleh", |
- L"\\Device\\NamedPipe\\test" }; |
- EXPECT_EQ(SBOX_TEST_SUCCEEDED, NamedPipe_Create(2, argv)); |
+ const wchar_t* argv[2] = { L"\\\\?\\pipe\\test\\..\\bleh", |
+ L"\\Device\\NamedPipe\\test" }; |
+ EXPECT_EQ(SBOX_TEST_SUCCEEDED, |
+ NamedPipe_Create(2, const_cast<wchar_t**>(argv))); |
} |
// The same test as CreatePipe but this time using strict interceptions. |