- Timestamp:
- Sep 2, 2013 12:57:44 PM (11 years ago)
- svn:sync-xref-src-repo-rev:
- 88622
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-client/HGCM.cpp
r48012 r48229 5 5 6 6 /* 7 * Copyright (C) 2006-201 1Oracle Corporation7 * Copyright (C) 2006-2013 Oracle Corporation 8 8 * 9 9 * This file is part of VirtualBox Open Source Edition (OSE), as … … 255 255 * @return VBox code 256 256 */ 257 int HGCMService::loadServiceDLL 257 int HGCMService::loadServiceDLL(void) 258 258 { 259 259 LogFlowFunc(("m_pszSvcLibrary = %s\n", m_pszSvcLibrary)); … … 265 265 266 266 RTERRINFOSTATIC ErrInfo; 267 RTErrInfoInitStatic (&ErrInfo); 268 269 int rc = SUPR3HardenedLdrLoadAppPriv (m_pszSvcLibrary, &m_hLdrMod, RTLDRLOAD_FLAGS_LOCAL, &ErrInfo.Core); 267 RTErrInfoInitStatic(&ErrInfo); 268 269 int rc; 270 271 if (RTPathHasPath(m_pszSvcLibrary)) 272 rc = SUPR3HardenedLdrLoadPlugIn(m_pszSvcLibrary, &m_hLdrMod, &ErrInfo.Core); 273 else 274 rc = SUPR3HardenedLdrLoadAppPriv(m_pszSvcLibrary, &m_hLdrMod, RTLDRLOAD_FLAGS_LOCAL, &ErrInfo.Core); 270 275 271 276 if (RT_SUCCESS(rc)) … … 275 280 m_pfnLoad = NULL; 276 281 277 rc = RTLdrGetSymbol 282 rc = RTLdrGetSymbol(m_hLdrMod, VBOX_HGCM_SVCLOAD_NAME, (void**)&m_pfnLoad); 278 283 279 284 if (RT_FAILURE(rc) || !m_pfnLoad) … … 292 297 RT_ZERO(m_fntable); 293 298 294 m_fntable.cbSize = sizeof 299 m_fntable.cbSize = sizeof(m_fntable); 295 300 m_fntable.u32Version = VBOX_HGCM_SVC_VERSION; 296 301 m_fntable.pHelpers = &m_svcHelpers; 297 302 298 rc = m_pfnLoad 303 rc = m_pfnLoad(&m_fntable); 299 304 300 305 LogFlowFunc(("m_pfnLoad rc = %Rrc\n", rc)); … … 314 319 if (m_fntable.pfnUnload) 315 320 { 316 m_fntable.pfnUnload 321 m_fntable.pfnUnload(m_fntable.pvService); 317 322 } 318 323 } … … 329 334 if (RT_FAILURE(rc)) 330 335 { 331 unloadServiceDLL 336 unloadServiceDLL(); 332 337 } 333 338 … … 339 344 * @return VBox code 340 345 */ 341 void HGCMService::unloadServiceDLL 346 void HGCMService::unloadServiceDLL(void) 342 347 { 343 348 if (m_hLdrMod) 344 349 { 345 RTLdrClose 350 RTLdrClose(m_hLdrMod); 346 351 } 347 352
Note:
See TracChangeset
for help on using the changeset viewer.