Changeset 24320 in vbox for trunk/src/VBox
- Timestamp:
- Nov 4, 2009 11:38:15 AM (15 years ago)
- Location:
- trunk/src/VBox/Additions
- Files:
-
- 14 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/WINNT/VBoxGINA/Helper.cpp
r22239 r24320 53 53 void credentialsReset(void) 54 54 { 55 memset(g_Username, '\0', sizeof(g_Username));56 memset(g_Password, '\0', sizeof(g_Password));57 memset(g_Domain, '\0', sizeof(g_Domain));55 RT_ZERO(g_Username); 56 RT_ZERO(g_Password); 57 RT_ZERO(g_Domain); 58 58 } 59 59 -
trunk/src/VBox/Additions/WINNT/VBoxTray/VBoxClipboard.cpp
r13835 r24320 79 79 VBoxGuestHGCMConnectInfo info; 80 80 81 memset (&info, 0, sizeof (info));81 RT_ZERO (info); 82 82 83 83 info.Loc.type = VMMDevHGCMLoc_LocalHost_Existing; … … 116 116 VBoxGuestHGCMDisconnectInfo info; 117 117 118 memset (&info, 0, sizeof (info));118 RT_ZERO (info); 119 119 120 120 info.u32ClientID = pCtx->u32ClientID; … … 787 787 } 788 788 789 memset (&gCtx, 0, sizeof (gCtx));789 RT_ZERO (gCtx); 790 790 791 791 gCtx.pEnv = pEnv; -
trunk/src/VBox/Additions/WINNT/VBoxTray/VBoxDisplay.cpp
r21888 r24320 488 488 /* Single monitor NT. */ 489 489 DEVMODE devMode; 490 memset (&devMode, 0, sizeof (devMode));490 RT_ZERO(devMode); 491 491 devMode.dmSize = sizeof(DEVMODE); 492 492 -
trunk/src/VBox/Additions/WINNT/VBoxTray/VBoxTray.cpp
r23057 r24320 405 405 /* prepare the system tray icon */ 406 406 NOTIFYICONDATA ndata; 407 memset (&ndata, 0, sizeof (ndata));407 RT_ZERO (ndata); 408 408 ndata.cbSize = NOTIFYICONDATA_V1_SIZE; // sizeof(NOTIFYICONDATA); 409 409 ndata.hWnd = gToolWindow; -
trunk/src/VBox/Additions/common/VBoxControl/VBoxControl.cpp
r22562 r24320 651 651 652 652 /* null out the table */ 653 memset(customModes, 0, sizeof(customModes));653 RT_ZERO(customModes); 654 654 655 655 do … … 858 858 { 859 859 RTPrintf("found mode at index %d\n", i); 860 memset(&customModes[i], 0, sizeof(customModes[i]));860 RZ_ZERO(customModes[i]); 861 861 break; 862 862 } -
trunk/src/VBox/Additions/common/VBoxGuestLib/Init.cpp
r21461 r24320 138 138 int rc = VINF_SUCCESS; 139 139 140 memset(&g_vbgldata, 0, sizeof (VBGLDATA));140 RT_ZERO(g_vbgldata); 141 141 142 142 g_vbgldata.status = VbglStatusInitializing; … … 159 159 VbglPhysHeapTerminate (); 160 160 161 memset(&g_vbgldata, 0, sizeof (VBGLDATA));161 RT_ZERO(g_vbgldata); 162 162 163 163 return; -
trunk/src/VBox/Additions/common/VBoxGuestLib/VBoxGuestR3LibClipboard.cpp
r21211 r24320 42 42 Info.result = VERR_WRONG_ORDER; 43 43 Info.Loc.type = VMMDevHGCMLoc_LocalHost_Existing; 44 memset(&Info.Loc.u, 0, sizeof(Info.Loc.u));44 RT_ZERO(Info.Loc.u); 45 45 strcpy(Info.Loc.u.host.achName, "VBoxSharedClipboard"); 46 46 Info.u32ClientID = UINT32_MAX; /* try make valgrid shut up. */ -
trunk/src/VBox/Additions/common/VBoxGuestLib/VBoxGuestR3LibDaemonize.cpp
r21211 r24320 147 147 struct sigaction OldSigAct; 148 148 struct sigaction SigAct; 149 memset(&SigAct, 0, sizeof(SigAct));149 RT_ZERO(SigAct); 150 150 SigAct.sa_handler = SIG_IGN; 151 151 int rcSigAct = sigaction(SIGHUP, &SigAct, &OldSigAct); -
trunk/src/VBox/Additions/common/VBoxGuestLib/VBoxGuestR3LibGuestProp.cpp
r22761 r24320 69 69 Info.result = VERR_WRONG_ORDER; 70 70 Info.Loc.type = VMMDevHGCMLoc_LocalHost_Existing; 71 memset(&Info.Loc.u, 0, sizeof(Info.Loc.u));71 RT_ZERO(Info.Loc.u); 72 72 strcpy(Info.Loc.u.host.achName, "VBoxGuestPropSvc"); 73 73 Info.u32ClientID = UINT32_MAX; /* try make valgrid shut up. */ -
trunk/src/VBox/Additions/common/VBoxGuestLib/VBoxGuestR3LibSeamless.cpp
r21219 r24320 47 47 int rc = VINF_SUCCESS; 48 48 49 memset(&vmmreqGuestCaps, 0, sizeof(vmmreqGuestCaps));49 RT_ZERO(vmmreqGuestCaps); 50 50 vmmdevInitRequest(&vmmreqGuestCaps.header, VMMDevReq_ReportGuestCapabilities); 51 51 vmmreqGuestCaps.caps = fState ? VMMDEV_GUEST_SUPPORTS_SEAMLESS : 0; -
trunk/src/VBox/Additions/linux/sharedfolders/dirops.c
r20342 r24320 43 43 } 44 44 45 memset(¶ms, 0, sizeof(params));45 RT_ZERO(params); 46 46 47 47 sf_d = sf_dir_info_alloc (); … … 409 409 #endif 410 410 411 memset(¶ms, 0, sizeof(params));411 RT_ZERO(params); 412 412 /* Ensure that the shared folders host service is using our fMode 413 413 * paramter */ -
trunk/src/VBox/Additions/linux/sharedfolders/regops.c
r24293 r24320 271 271 } 272 272 273 memset(¶ms, 0, sizeof(params));273 RT_ZERO(params); 274 274 params.Handle = SHFL_HANDLE_NIL; 275 275 /* We check the value of params.Handle afterwards to find out if -
trunk/src/VBox/Additions/linux/sharedfolders/utils.c
r23621 r24320 169 169 TRACE (); 170 170 171 memset(¶ms, 0, sizeof(params));171 RT_ZERO(params); 172 172 params.CreateFlags = SHFL_CF_LOOKUP | SHFL_CF_ACT_FAIL_IF_NEW; 173 173 LogFunc(("calling vboxCallCreate, file %s, flags %#x\n", … … 294 294 err = 0; 295 295 296 memset(¶ms, 0, sizeof(params));296 RT_ZERO(params); 297 297 298 298 params.CreateFlags = SHFL_CF_ACT_OPEN_IF_EXISTS … … 324 324 #define mode_set(r) ((iattr->ia_mode & (S_##r)) ? RTFS_UNIX_##r : 0) 325 325 326 memset(&info, 0, sizeof(info));326 RT_ZERO(info); 327 327 if (iattr->ia_valid & ATTR_MODE) 328 328 { … … 365 365 if (iattr->ia_valid & ATTR_SIZE) 366 366 { 367 memset(&info, 0, sizeof(info));367 RT_ZERO(info); 368 368 info.cbObject = iattr->ia_size; 369 369 cbBuffer = sizeof(info); -
trunk/src/VBox/Additions/linux/sharedfolders/vfsmod.c
r23551 r24320 81 81 } 82 82 83 memset(sf_g, 0, sizeof(*sf_g));83 RT_ZERO(*sf_g); 84 84 85 85 if ( info->nullchar != '\0'
Note:
See TracChangeset
for help on using the changeset viewer.