Changeset 64428 in vbox for trunk/src/libs
- Timestamp:
- Oct 26, 2016 12:35:20 PM (8 years ago)
- Location:
- trunk/src/libs/xpcom18a4
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/libs/xpcom18a4/ipc/ipcd/client/src/ipcConnectionUnix.cpp
r61402 r64428 420 420 PRNetAddr addr; 421 421 PRSocketOptionData opt; 422 nsresult rv = NS_ERROR_FAILURE; 422 // don't use NS_ERROR_FAILURE as we want to detect these kind of errors 423 // in the frontend 424 nsresult rv = NS_ERROR_SOCKET_FAIL; 423 425 424 426 fd = PR_OpenTCPSocket(PR_AF_LOCAL); … … 480 482 if (NS_FAILED(rv)) 481 483 { 482 rv = IPC_SpawnDaemon(daemonPath); 484 nsresult rv1 = IPC_SpawnDaemon(daemonPath); 485 if (NS_SUCCEEDED(rv1) || rv != NS_ERROR_SOCKET_FAIL) 486 rv = rv1; 483 487 if (NS_SUCCEEDED(rv)) 484 488 rv = TryConnect(&fd); -
trunk/src/libs/xpcom18a4/xpcom/base/nsError.h
r34653 r64428 215 215 #define NS_ERROR_FACTORY_EXISTS (NS_ERROR_BASE + 0x100) 216 216 217 /* Socket failures */ 218 #define NS_ERROR_SOCKET_FAIL (NS_ERROR_BASE + 0x200) 219 217 220 218 221 /* For COM compatibility reasons, we want to use exact error code numbers -
trunk/src/libs/xpcom18a4/xpcom/components/nsComponentManager.cpp
r47778 r64428 1962 1962 { 1963 1963 // Translate error values 1964 rv = NS_ERROR_FACTORY_NOT_REGISTERED; 1964 if (rv != NS_ERROR_SOCKET_FAIL) 1965 rv = NS_ERROR_FACTORY_NOT_REGISTERED; 1965 1966 } 1966 1967
Note:
See TracChangeset
for help on using the changeset viewer.