Changeset 21520 in vbox for trunk/src/VBox/Frontends/VBoxSDL
- Timestamp:
- Jul 13, 2009 8:18:44 AM (16 years ago)
- svn:sync-xref-src-repo-rev:
- 49972
- Location:
- trunk/src/VBox/Frontends/VBoxSDL
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxSDL/Framebuffer.h
r20433 r21520 71 71 return cnt; 72 72 } 73 STDMETHOD(QueryInterface) (REFIID riid , void **ppObj) 74 { 75 if (riid == IID_IUnknown) 76 { 77 *ppObj = this; 78 AddRef(); 79 return S_OK; 80 } 81 if (riid == IID_IFramebuffer) 82 { 83 *ppObj = this; 84 AddRef(); 85 return S_OK; 86 } 87 *ppObj = NULL; 88 return E_NOINTERFACE; 89 } 90 #endif 73 #endif 74 VBOX_SCRIPTABLE_DISPATCH_IMPL(IFramebuffer) 91 75 92 76 NS_DECL_ISUPPORTS … … 242 226 return cnt; 243 227 } 244 STDMETHOD(QueryInterface) (REFIID riid , void **ppObj) 245 { 246 if (riid == IID_IUnknown) 247 { 248 *ppObj = this; 249 AddRef(); 250 return S_OK; 251 } 252 if (riid == IID_IFramebuffer) 253 { 254 *ppObj = this; 255 AddRef(); 256 return S_OK; 257 } 258 *ppObj = NULL; 259 return E_NOINTERFACE; 260 } 261 #endif 228 #endif 229 VBOX_SCRIPTABLE_DISPATCH_IMPL(IFramebuffer) 262 230 263 231 NS_DECL_ISUPPORTS -
trunk/src/VBox/Frontends/VBoxSDL/VBoxSDL.cpp
r21446 r21520 272 272 return cnt; 273 273 } 274 STDMETHOD(QueryInterface)(REFIID riid , void **ppObj) 275 { 276 if (riid == IID_IUnknown) 277 { 278 *ppObj = this; 279 AddRef(); 280 return S_OK; 281 } 282 if (riid == IID_IVirtualBoxCallback) 283 { 284 *ppObj = this; 285 AddRef(); 286 return S_OK; 287 } 288 *ppObj = NULL; 289 return E_NOINTERFACE; 290 } 291 #endif 274 #endif 275 VBOX_SCRIPTABLE_DISPATCH_IMPL(IVirtualBoxCallback) 292 276 293 277 NS_DECL_ISUPPORTS … … 419 403 return cnt; 420 404 } 421 STDMETHOD(QueryInterface)(REFIID riid , void **ppObj) 422 { 423 if (riid == IID_IUnknown) 424 { 425 *ppObj = this; 426 AddRef(); 427 return S_OK; 428 } 429 if (riid == IID_IConsoleCallback) 430 { 431 *ppObj = this; 432 AddRef(); 433 return S_OK; 434 } 435 *ppObj = NULL; 436 return E_NOINTERFACE; 437 } 438 #endif 405 #endif 406 VBOX_SCRIPTABLE_DISPATCH_IMPL(IConsoleCallback) 439 407 440 408 NS_DECL_ISUPPORTS
Note:
See TracChangeset
for help on using the changeset viewer.