VirtualBox

Changeset 30601 in vbox


Ignore:
Timestamp:
Jul 5, 2010 11:22:54 AM (15 years ago)
Author:
vboxsync
Message:

VBoxService: VBoxServicePageSharingInitFork shouldn't return void. Why don't the compilers throw an error on this?

Location:
trunk/src/VBox/Additions/common/VBoxService
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/common/VBoxService/VBoxServiceInternal.h

    r30560 r30601  
    289289#endif
    290290#if defined(VBOX_WITH_PAGE_SHARING) && defined(RT_OS_WINDOWS)
    291 extern void VBoxServicePageSharingInitFork();
     291extern RTEXITCODE VBoxServicePageSharingInitFork(void);
    292292#endif
    293293
  • trunk/src/VBox/Additions/common/VBoxService/VBoxServicePageSharing.cpp

    r30560 r30601  
    607607
    608608#ifdef RT_OS_WINDOWS
    609 void VBoxServicePageSharingInitFork()
     609
     610/**
     611 * This gets control when VBoxService is launched with -pagefusionfork by
     612 * VBoxServicePageSharingWorkerProcess().
     613 *
     614 * @returns RTEXITCODE_SUCCESS.
     615 *
     616 * @remarks It won't normally return since the parent drops the shutdown hint
     617 *          via RTProcTerminate().
     618 */
     619RTEXITCODE VBoxServicePageSharingInitFork(void)
    610620{
    611621    VBoxServiceVerbose(3, "VBoxServicePageSharingInitFork\n");
     
    614624    VBoxServicePageSharingInit();
    615625    VBoxServicePageSharingWorker(&fShutdown);
     626
     627    return RTEXITCODE_SUCCESS;
    616628}
    617629
     
    649661                pszArgs[1] = "-pagefusionfork";
    650662                pszArgs[2] = NULL;
    651                 /* Start a 2nd VBoxService process to deal with page fusion as we do not wish to dummy load 
     663                /* Start a 2nd VBoxService process to deal with page fusion as we do not wish to dummy load
    652664                 * dlls into this process. (first load with DONT_RESOLVE_DLL_REFERENCES, 2nd normal -> dll init routines not called!)
    653665                 */
     
    686698}
    687699
    688 #endif
     700#endif /* RT_OS_WINDOWS */
    689701
    690702/** @copydoc VBOXSERVICE::pfnTerm */
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette