commit | 635091f0a98b7d86a74baff11ae5e304062d8420 | [log] [tgz] |
---|---|---|
author | bungeman@google.com <bungeman@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | Tue Oct 01 15:03:18 2013 +0000 |
committer | bungeman@google.com <bungeman@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | Tue Oct 01 15:03:18 2013 +0000 |
tree | b55a162af5df326aff2b59e41542428feb37b579 | |
parent | 9a112f5605b093a9f4edd96158687512def78032 [diff] [blame] |
Minor changes to XPS device. git-svn-id: http://skia.googlecode.com/svn/trunk@11552 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/src/utils/win/SkIStream.cpp b/src/utils/win/SkIStream.cpp index 182d9a8..0386ea7 100644 --- a/src/utils/win/SkIStream.cpp +++ b/src/utils/win/SkIStream.cpp
@@ -122,6 +122,9 @@ , bool unrefOnRelease , IStream ** ppStream) { + if (NULL == stream) { + return E_INVALIDARG; + } *ppStream = new SkIStream(stream, unrefOnRelease); return S_OK; }