- Timestamp:
- Mar 5, 2009 10:11:15 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/libs/xpcom18a4/ipc/ipcd/extensions/dconnect/src/ipcDConnectService.cpp
r15985 r17381 344 344 345 345 case nsXPTType::T_IID: 346 writer.PutBytes(v.val.p, sizeof(nsID)); 346 { 347 if (v.val.p) 348 writer.PutBytes(v.val.p, sizeof(nsID)); 349 else 350 return NS_ERROR_INVALID_POINTER; 351 } 347 352 break; 348 353 … … 2408 2413 2409 2414 if (NS_FAILED(rv)) 2410 return rv;2415 break; 2411 2416 } 2412 2417 else if ((paramInfo.IsOut() || paramInfo.IsRetval()) && !aParams[i].val.p) 2413 2418 { 2414 2419 // report error early if NULL pointer is passed as an output parameter 2415 return NS_ERROR_NULL_POINTER; 2416 } 2420 rv = NS_ERROR_NULL_POINTER; 2421 break; 2422 } 2423 } 2424 2425 if (NS_FAILED(rv)) 2426 { 2427 // INVOKE message wasn't sent; clean up wrappers 2428 dConnect->ReleaseWrappers(wrappers); 2429 return rv; 2417 2430 } 2418 2431 … … 2431 2444 aParams[i].val.p, wrappers); 2432 2445 if (NS_FAILED(rv)) 2446 { 2447 // INVOKE message wasn't sent; clean up wrappers 2448 dConnect->ReleaseWrappers(wrappers); 2433 2449 return rv; 2450 } 2434 2451 } 2435 2452 }
Note:
See TracChangeset
for help on using the changeset viewer.