VirtualBox

Changeset 45015 in vbox for trunk/src/VBox/Additions/common


Ignore:
Timestamp:
Mar 13, 2013 12:40:50 PM (12 years ago)
Author:
vboxsync
Message:

VBoxGuestR0LibSharedFolders.c: Use RT_ZERO instead of non-portable RtlZeroMemory.

File:
1 edited

Legend:

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

    r44558 r45015  
    5353    (a)->cParms      = SHFL_CPARMS_##b
    5454
    55 #ifndef RT_OS_WINDOWS
    56 # define RtlZeroMemory(a, b) memset (a, 0, b)
    57 #endif
    58 
    5955
    6056DECLVBGL(int) vboxInit (void)
     
    7369DECLVBGL(int) vboxConnect (PVBSFCLIENT pClient)
    7470{
    75     int rc = VINF_SUCCESS;
    76 
     71    int rc;
    7772    VBoxGuestHGCMConnectInfo data;
    7873
    79     RtlZeroMemory (&data, sizeof (VBoxGuestHGCMConnectInfo));
     74    RT_ZERO(data);
    8075
    8176    pClient->handle = NULL;
     
    112107        return;                 /* not connected */
    113108
    114     RtlZeroMemory (&data, sizeof (VBoxGuestHGCMDisconnectInfo));
     109    RT_ZERO(data);
    115110
    116111    data.result      = VINF_SUCCESS;
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