Changeset 19751 in vbox
- Timestamp:
- May 15, 2009 5:41:03 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/cbinding/tstXPCOMCCall.c
r19743 r19751 263 263 static nsresult QueryInterface(nsISupports *pThis, const nsID *iid, void **resultp) 264 264 { 265 IConsoleCallback *that = (IConsoleCallback *)pThis;266 const nsID ivirtualboxCallbackUUID = IVIRTUALBOXCALLBACK_IID;265 static const nsID ivirtualboxCallbackUUID = IVIRTUALBOXCALLBACK_IID; 266 static const nsID isupportIID = NS_ISUPPORTS_IID; 267 267 268 268 /* match iid */ 269 if (memcmp(iid, &ivirtualboxCallbackUUID, sizeof(nsID)) == 0) 269 if ( memcmp(iid, &ivirtualboxCallbackUUID, sizeof(nsID)) == 0 270 || memcmp(iid, &isupportIID, sizeof(nsID)) == 0) 270 271 { 271 272 ++g_refcount; 272 273 printf("QueryInterface: %d\n", g_refcount); 273 *resultp = that;274 *resultp = pThis; 274 275 return NS_OK; 275 276 } 276 else 277 { 278 printf("vboxCallback QueryInterface didn't find a matching interface\n"); 279 printUUID(iid); 280 printUUID(&ivirtualboxCallbackUUID); 281 return NS_NOINTERFACE; 282 } 277 278 printf("vboxCallback QueryInterface didn't find a matching interface\n"); 279 printUUID(iid); 280 printUUID(&ivirtualboxCallbackUUID); 281 return NS_NOINTERFACE; 283 282 } 284 283
Note:
See TracChangeset
for help on using the changeset viewer.