VirtualBox

Changeset 32311 in vbox for trunk/src/VBox/Additions


Ignore:
Timestamp:
Sep 8, 2010 11:41:47 AM (14 years ago)
Author:
vboxsync
Message:

Additions/common/VBoxGuestR0Lib: shadow declaration.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/common/VBoxGuestLib/VBoxGuestR0LibSharedFolders.c

    r31002 r32311  
    222222        rc         = data.callInfo.result;
    223223    }
    224     else
    225     if (rc == VERR_NOT_IMPLEMENTED)
     224    else if (rc == VERR_NOT_IMPLEMENTED)
    226225    {
    227226        /* try the legacy interface too; temporary to assure backwards compatibility */
    228         VBoxSFMapFolder_Old data;
    229 
    230         VBOX_INIT_CALL(&data.callInfo, MAP_FOLDER_OLD, pClient);
    231 
    232         data.path.type                    = VMMDevHGCMParmType_LinAddr;
    233         data.path.u.Pointer.size          = ShflStringSizeOfBuffer (szFolderName);
    234         data.path.u.Pointer.u.linearAddr  = (uintptr_t)szFolderName;
    235 
    236         data.root.type                    = VMMDevHGCMParmType_32bit;
    237         data.root.u.value32               = 0;
    238 
    239         data.delimiter.type               = VMMDevHGCMParmType_32bit;
    240         data.delimiter.u.value32          = RTPATH_DELIMITER;
    241 
    242         rc = VbglHGCMCall (pClient->handle, &data.callInfo, sizeof (data));
     227        VBoxSFMapFolder_Old OldData;
     228
     229        VBOX_INIT_CALL(&OldData.callInfo, MAP_FOLDER_OLD, pClient);
     230
     231        OldData.path.type                    = VMMDevHGCMParmType_LinAddr;
     232        OldData.path.u.Pointer.size          = ShflStringSizeOfBuffer (szFolderName);
     233        OldData.path.u.Pointer.u.linearAddr  = (uintptr_t)szFolderName;
     234
     235        OldData.root.type                    = VMMDevHGCMParmType_32bit;
     236        OldData.root.u.value32               = 0;
     237
     238        OldData.delimiter.type               = VMMDevHGCMParmType_32bit;
     239        OldData.delimiter.u.value32          = RTPATH_DELIMITER;
     240
     241        rc = VbglHGCMCall (pClient->handle, &OldData.callInfo, sizeof (OldData));
    243242
    244243        if (RT_SUCCESS (rc))
    245244        {
    246             pMap->root = data.root.u.value32;
    247             rc         = data.callInfo.result;
     245            pMap->root = OldData.root.u.value32;
     246            rc         = OldData.callInfo.result;
    248247        }
    249248    }
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