Chromium Code Reviews| Index: sandbox/win/src/win_utils.cc |
| diff --git a/sandbox/win/src/win_utils.cc b/sandbox/win/src/win_utils.cc |
| index f5c479a35a2cb732e84e970d39544b80829cc706..bcad768e6cfea198094f0fc63dc4da0fabf33f45 100644 |
| --- a/sandbox/win/src/win_utils.cc |
| +++ b/sandbox/win/src/win_utils.cc |
| @@ -6,10 +6,10 @@ |
| #include <map> |
| -#include "base/logging.h" |
| #include "base/memory/scoped_ptr.h" |
| #include "sandbox/win/src/internal_types.h" |
| #include "sandbox/win/src/nt_internals.h" |
| +#include "sandbox/win/src/sandbox_nt_util.h" |
| namespace { |
| @@ -104,7 +104,7 @@ DWORD IsReparsePoint(const std::wstring& full_path, bool* result) { |
| error != ERROR_PATH_NOT_FOUND && |
| error != ERROR_INVALID_NAME) { |
| // Unexpected error. |
| - NOTREACHED(); |
| + NOTREACHED_NT(); |
| return error; |
| } |
| } else if (FILE_ATTRIBUTE_REPARSE_POINT & attributes) { |
| @@ -124,7 +124,7 @@ DWORD IsReparsePoint(const std::wstring& full_path, bool* result) { |
| // we'll get from |handle| will be \device\harddiskvolume1\some\foo\bar. |
| bool SameObject(HANDLE handle, const wchar_t* full_path) { |
| std::wstring path(full_path); |
| - DCHECK(!path.empty()); |
| + DCHECK_NT(!path.empty()); |
| // Check if it's a pipe. |
| if (IsPipe(path)) |
| @@ -319,5 +319,5 @@ void ResolveNTFunctionPtr(const char* name, void* ptr) { |
| *function_ptr = ::GetProcAddress(ntdll, name); |
| } |
| - CHECK(*function_ptr); |
| + VERIFY(*function_ptr); |
|
rvargas (doing something else)
2013/11/27 23:53:51
We need CHECK_NT
robertshield
2013/11/29 01:21:26
Done.
|
| } |