a=chofmann, 21783. inverted parameter validation checks have been corrected.

This commit is contained in:
valeski@netscape.com
1999-12-21 03:00:54 +00:00
parent 5eaa0c372e
commit 804a74c6e9

View File

@@ -1,4 +1,4 @@
/* -*- Mode: IDL; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public
* License Version 1.1 (the "License"); you may not use this file
@@ -28,7 +28,7 @@ NS_IMPL_ISUPPORTS2(nsScriptableInputStream, nsIBaseStream, nsIScriptableInputStr
// nsIBaseStream methods
NS_IMETHODIMP
nsScriptableInputStream::Close(void) {
if (mInputStream) return NS_ERROR_NOT_INITIALIZED;
if (!mInputStream) return NS_ERROR_NOT_INITIALIZED;
return mInputStream->Close();
}
@@ -42,7 +42,7 @@ nsScriptableInputStream::Init(nsIInputStream *aInputStream) {
NS_IMETHODIMP
nsScriptableInputStream::Available(PRUint32 *_retval) {
if (mInputStream) return NS_ERROR_NOT_INITIALIZED;
if (!mInputStream) return NS_ERROR_NOT_INITIALIZED;
return mInputStream->Available(_retval);
}