зеркало из https://github.com/mozilla/gecko-dev.git
do_QueryInterface(NULL, &error) now returns the appropriate error in |error|
This commit is contained in:
Родитель
a430e857b6
Коммит
806ab190c0
|
@ -39,7 +39,7 @@ nsCOMPtr_base::assign_with_AddRef( nsISupports* rawPtr )
|
|||
void
|
||||
nsCOMPtr_base::assign_with_QueryInterface( nsISupports* rawPtr, const nsIID& iid, nsresult* result )
|
||||
{
|
||||
nsresult status = NS_OK;
|
||||
nsresult status = NS_ERROR_NULL_POINTER;
|
||||
if ( !rawPtr || !NS_SUCCEEDED( status = rawPtr->QueryInterface(iid, NSCAP_REINTERPRET_CAST(void**, &rawPtr)) ) )
|
||||
rawPtr = 0;
|
||||
|
||||
|
|
|
@ -39,7 +39,7 @@ nsCOMPtr_base::assign_with_AddRef( nsISupports* rawPtr )
|
|||
void
|
||||
nsCOMPtr_base::assign_with_QueryInterface( nsISupports* rawPtr, const nsIID& iid, nsresult* result )
|
||||
{
|
||||
nsresult status = NS_OK;
|
||||
nsresult status = NS_ERROR_NULL_POINTER;
|
||||
if ( !rawPtr || !NS_SUCCEEDED( status = rawPtr->QueryInterface(iid, NSCAP_REINTERPRET_CAST(void**, &rawPtr)) ) )
|
||||
rawPtr = 0;
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче