Index: src/ports/SkOSFile_win.cpp |
diff --git a/src/ports/SkOSFile_win.cpp b/src/ports/SkOSFile_win.cpp |
index 1430d7f03bf3d1147c2dd4e0be3cd5edfeba4dc5..ded58586b081f65bb42e10304b8664e9548630f9 100644 |
--- a/src/ports/SkOSFile_win.cpp |
+++ b/src/ports/SkOSFile_win.cpp |
@@ -66,7 +66,7 @@ public: |
SkAutoNullKernelHandle(const HANDLE handle) : fHandle(handle) { } |
~SkAutoNullKernelHandle() { CloseHandle(fHandle); } |
operator HANDLE() const { return fHandle; } |
- bool isValid() const { return NULL != fHandle; } |
+ bool isValid() const { return SkToBool(fHandle); } |
private: |
HANDLE fHandle; |
}; |