- Timestamp:
- Nov 14, 2008 2:48:49 PM (16 years ago)
- Location:
- trunk/src/VBox
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostServices/SharedFolders/mappings.cpp
r13837 r14215 77 77 FolderMapping[i].fValid = true; 78 78 FolderMapping[i].cMappings = 0; 79 FolderMapping[i].fWritable = fWritable;79 FolderMapping[i].fWritable = !!fWritable; 80 80 81 81 /* Check if the host file system is case sensitive */ … … 329 329 Assert(FolderMapping[index].cMappings == 1 || FolderMapping[index].fGuestCaseSensitive == fCaseSensitive); 330 330 FolderMapping[index].fGuestCaseSensitive = fCaseSensitive; 331 *pRoot = index;331 *pRoot = (SHFLROOT)index; 332 332 return VINF_SUCCESS; 333 333 } -
trunk/src/VBox/HostServices/SharedFolders/vbsf.cpp
r14062 r14215 108 108 Log2(("vbsfCorrectCasing: %s %s\n", pszFullPath, pszStartComponent)); 109 109 110 cbComponent = strlen(pszStartComponent);110 cbComponent = (uint32_t) strlen(pszStartComponent); 111 111 112 112 cbDirEntry = 4096; … … 223 223 224 224 if (pcbFullPathRoot) 225 *pcbFullPathRoot = cbUtf8Root; /* Must index the path delimiter. */225 *pcbFullPathRoot = (uint32_t)cbUtf8Root; /* Must index the path delimiter. */ 226 226 } 227 227 … … 301 301 char *dst = pszFullPath; 302 302 303 cbRoot = strlen(dst);303 cbRoot = (uint32_t)strlen(dst); 304 304 if (dst[cbRoot - 1] != RTPATH_DELIMITER) 305 305 { … … 346 346 } 347 347 348 uint32_t l = strlen (dst);348 uint32_t l = (uint32_t)strlen (dst); 349 349 350 350 cb -= l; … … 375 375 { 376 376 /* strip off the last path component, that contains the wildcard(s) */ 377 uint32_t len = strlen(pszFullPath);377 uint32_t len = (uint32_t)strlen(pszFullPath); 378 378 char *src = pszFullPath + len - 1; 379 379 … … 412 412 if (rc == VERR_FILE_NOT_FOUND || rc == VERR_PATH_NOT_FOUND) 413 413 { 414 uint32_t len = strlen(pszFullPath);414 uint32_t len = (uint32_t)strlen(pszFullPath); 415 415 char *src = pszFullPath + len - 1; 416 416 … … 1414 1414 } 1415 1415 #endif 1416 pSFDEntry->name.u16Length = RTUtf16Len (pSFDEntry->name.String.ucs2) * 2;1416 pSFDEntry->name.u16Length = (uint32_t)RTUtf16Len (pSFDEntry->name.String.ucs2) * 2; 1417 1417 pSFDEntry->name.u16Size = pSFDEntry->name.u16Length + 2; 1418 1418 -
trunk/src/VBox/Main/KeyboardImpl.cpp
r13837 r14215 187 187 /// @todo is it actually possible that not all scancodes can be transmitted? 188 188 if (codesStored) 189 *codesStored = keys.size();189 *codesStored = (uint32_t)keys.size(); 190 190 191 191 return rc; -
trunk/src/VBox/Main/hgcm/HGCM.cpp
r13837 r14215 1111 1111 1112 1112 /* Save the length of the service name. */ 1113 rc = SSMR3PutU32(pSSM, strlen(pSvc->m_pszSvcName) + 1);1113 rc = SSMR3PutU32(pSSM, (uint32_t) strlen(pSvc->m_pszSvcName) + 1); 1114 1114 AssertRCReturn(rc, rc); 1115 1115
Note:
See TracChangeset
for help on using the changeset viewer.