Changeset 93910 in vbox for trunk/src/libs/xpcom18a4/ipc/ipcd/extensions
- Timestamp:
- Feb 24, 2022 10:45:13 AM (3 years ago)
- svn:sync-xref-src-repo-rev:
- 150136
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/libs/xpcom18a4/ipc/ipcd/extensions/dconnect/src/ipcDConnectService.cpp
r86401 r93910 374 374 case nsXPTType::T_IID: 375 375 { 376 if (v.val.p) 377 writer.PutBytes(v.val.p, sizeof(nsID)); 378 else 379 return NS_ERROR_INVALID_POINTER; 376 AssertReturn(v.val.p, NS_ERROR_INVALID_POINTER); 377 writer.PutBytes(v.val.p, sizeof(nsID)); 380 378 } 381 379 break; … … 1883 1881 NS_IMETHODIMP ExceptionStub::GetMessage(char **aMessage) 1884 1882 { 1885 if (!aMessage) 1886 return NS_ERROR_INVALID_POINTER; 1883 AssertReturn(aMessage, NS_ERROR_INVALID_POINTER); 1887 1884 *aMessage = ToNewCString(mMessage); 1888 1885 return NS_OK; … … 1892 1889 NS_IMETHODIMP ExceptionStub::GetResult(nsresult *aResult) 1893 1890 { 1894 if (!aResult) 1895 return NS_ERROR_INVALID_POINTER; 1891 AssertReturn(aResult, NS_ERROR_INVALID_POINTER); 1896 1892 *aResult = mResult; 1897 1893 return NS_OK; … … 1901 1897 NS_IMETHODIMP ExceptionStub::GetName(char **aName) 1902 1898 { 1903 if (!aName) 1904 return NS_ERROR_INVALID_POINTER; 1899 AssertReturn(aName, NS_ERROR_INVALID_POINTER); 1905 1900 *aName = ToNewCString(mName); 1906 1901 return NS_OK; … … 1910 1905 NS_IMETHODIMP ExceptionStub::GetFilename(char **aFilename) 1911 1906 { 1912 if (!aFilename) 1913 return NS_ERROR_INVALID_POINTER; 1907 AssertReturn(aFilename, NS_ERROR_INVALID_POINTER); 1914 1908 *aFilename = ToNewCString(mFilename); 1915 1909 return NS_OK; … … 1919 1913 NS_IMETHODIMP ExceptionStub::GetLineNumber(PRUint32 *aLineNumber) 1920 1914 { 1921 if (!aLineNumber) 1922 return NS_ERROR_INVALID_POINTER; 1915 AssertReturn(aLineNumber, NS_ERROR_INVALID_POINTER); 1923 1916 *aLineNumber = mLineNumber; 1924 1917 return NS_OK; … … 1928 1921 NS_IMETHODIMP ExceptionStub::GetColumnNumber(PRUint32 *aColumnNumber) 1929 1922 { 1930 if (!aColumnNumber) 1931 return NS_ERROR_INVALID_POINTER; 1923 AssertReturn(aColumnNumber, NS_ERROR_INVALID_POINTER); 1932 1924 *aColumnNumber = mColumnNumber; 1933 1925 return NS_OK; … … 2590 2582 rv = SerializeParam(writer, type, aParams[i]); 2591 2583 2592 if (NS_FAILED(rv)) 2593 break; 2584 AssertMsgBreak(NS_SUCCEEDED(rv), ("i=%d rv=%#x\n", i, rv)); 2594 2585 } 2595 2586 else if ((paramInfo.IsOut() || paramInfo.IsRetval()) && !aParams[i].val.p) … … 2597 2588 // report error early if NULL pointer is passed as an output parameter 2598 2589 rv = NS_ERROR_NULL_POINTER; 2590 AssertMsgFailedBreak(("i=%d IsOut=%d IsRetval=%d NS_ERROR_NULL_POINTER\n", i, paramInfo.IsOut(), paramInfo.IsRetval())); 2599 2591 break; 2600 2592 }
Note:
See TracChangeset
for help on using the changeset viewer.