Changeset 25745 in vbox for trunk/src/VBox/HostDrivers/VBoxNetFlt/win
- Timestamp:
- Jan 12, 2010 10:16:41 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostDrivers/VBoxNetFlt/win/NetFltInstall.cpp
r25388 r25745 37 37 38 38 /** Wrapper aroung GetfullPathNameW that will try an alternative INF location. 39 * 40 * The default location is the current directory. If not found there, the 41 * alternative locatoin is the executable directory. If not found there either, 42 * the first alternative is present to the caller. 43 */ 39 * 40 * The default location is the current directory. If not found there, the 41 * alternative locatoin is the executable directory. If not found there either, 42 * the first alternative is present to the caller. 43 */ 44 44 static DWORD MyGetfullPathNameW(LPCWSTR pwszName, size_t cchFull, LPWSTR pwszFull) 45 45 { 46 #ifdef DEBUG_bird /** @todo make this default behavior after 3.1. */47 46 LPWSTR pwszFilePart; 48 47 DWORD dwSize = GetFullPathNameW(pwszName, cchFull, pwszFull, &pwszFilePart); … … 66 65 { 67 66 dwSize = GetFullPathNameW(wsz, cchFull, pwszFull, NULL); 68 if( dwSize > 0 67 if( dwSize > 0 69 68 && GetFileAttributesW(pwszFull) != INVALID_FILE_ATTRIBUTES) 70 69 return dwSize; … … 77 76 78 77 /* fallback */ 79 #endif80 78 return GetFullPathNameW(pwszName, cchFull, pwszFull, NULL); 81 79 }
Note:
See TracChangeset
for help on using the changeset viewer.