diff options
Diffstat (limited to 'base/shared_memory_win.cc')
-rw-r--r-- | base/shared_memory_win.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/base/shared_memory_win.cc b/base/shared_memory_win.cc index 15c61dd..526132c 100644 --- a/base/shared_memory_win.cc +++ b/base/shared_memory_win.cc @@ -80,7 +80,7 @@ bool SharedMemory::CreateAnonymous(uint32 size) { bool SharedMemory::CreateNamed(const std::string& name, bool open_existing, uint32 size) { - DCHECK(mapped_file_ == NULL); + DCHECK(!mapped_file_); if (size == 0) return false; @@ -119,7 +119,7 @@ bool SharedMemory::Delete(const std::string& name) { } bool SharedMemory::Open(const std::string& name, bool read_only) { - DCHECK(mapped_file_ == NULL); + DCHECK(!mapped_file_); name_ = ASCIIToWide(name); read_only_ = read_only; |