Changeset 6971 in vbox
- Timestamp:
- Feb 15, 2008 2:18:10 PM (17 years ago)
- svn:sync-xref-src-repo-rev:
- 28150
- Location:
- trunk/src/VBox/Runtime/r3/win
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r3/win/dir-win.cpp
r5999 r6971 99 99 rc = RTErrConvertFromWin32(GetLastError()); 100 100 101 /* 102 * Turn off indexing of directory through Windows Indexing Service 103 */ 104 if (RT_SUCCESS(rc)) 105 { 106 if (SetFileAttributesW((LPCWSTR)pucszString, FILE_ATTRIBUTE_NOT_CONTENT_INDEXED)) 107 rc = VINF_SUCCESS; 108 else 109 rc = RTErrConvertFromWin32(GetLastError()); 110 } 111 101 112 RTStrUcs2Free(pucszString); 102 113 } -
trunk/src/VBox/Runtime/r3/win/fileio-win.cpp
r6432 r6971 230 230 return RTErrConvertFromWin32(GetLastError()); 231 231 232 /* 233 * Turn off indexing of directory through Windows Indexing Service 234 */ 235 if ( (dwCreationDisposition == OPEN_ALWAYS) 236 || (dwCreationDisposition == CREATE_NEW) 237 || (dwCreationDisposition == CREATE_ALWAYS)) 238 { 239 if (FALSE == SetFileAttributes(pszFilename, FILE_ATTRIBUTE_NOT_CONTENT_INDEXED)) 240 return RTErrConvertFromWin32(GetLastError()); 241 } 232 242 #else 243 233 244 PRTUCS2 pwszFilename; 234 245 rc = RTStrToUtf16(pszFilename, &pwszFilename); … … 249 260 return rc; 250 261 } 262 263 /* 264 * Turn off indexing of directory through Windows Indexing Service 265 */ 266 if ( (dwCreationDisposition == OPEN_ALWAYS) 267 || (dwCreationDisposition == CREATE_NEW) 268 || (dwCreationDisposition == CREATE_ALWAYS)) 269 { 270 if (FALSE == SetFileAttributesW(pwszFilename, FILE_ATTRIBUTE_NOT_CONTENT_INDEXED)) 271 { 272 rc = RTErrConvertFromWin32(GetLastError()); 273 RTUtf16Free(pwszFilename); 274 return rc; 275 } 276 } 277 251 278 RTUtf16Free(pwszFilename); 252 279 #endif
Note:
See TracChangeset
for help on using the changeset viewer.