diff options
Diffstat (limited to 'base/win/registry.cc')
-rw-r--r-- | base/win/registry.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/base/win/registry.cc b/base/win/registry.cc index 09cf485..d105a4c 100644 --- a/base/win/registry.cc +++ b/base/win/registry.cc @@ -218,7 +218,7 @@ LONG RegKey::ReadInt64(const wchar_t* name, int64* value) const { LONG RegKey::WriteValue(const wchar_t* name, const void * data, DWORD dsize, DWORD dtype) { base::ThreadRestrictions::AssertIOAllowed(); - DCHECK(data); + DCHECK(data || !dsize); LONG result = RegSetValueEx(key_, name, 0, dtype, reinterpret_cast<LPBYTE>(const_cast<void*>(data)), dsize); |