VirtualBox

Ignore:
Timestamp:
Jan 12, 2010 10:16:41 AM (15 years ago)
Author:
vboxsync
Message:

NetFltInstall.cpp: Look for files in the executable directory if not found in the current dir.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/VBoxNetFlt/win/NetFltInstall.cpp

    r25388 r25745  
    3737
    3838/** 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 */
    4444static DWORD MyGetfullPathNameW(LPCWSTR pwszName, size_t cchFull, LPWSTR pwszFull)
    4545{
    46 #ifdef DEBUG_bird  /** @todo make this default behavior after 3.1. */
    4746    LPWSTR pwszFilePart;
    4847    DWORD dwSize = GetFullPathNameW(pwszName, cchFull, pwszFull, &pwszFilePart);
     
    6665                {
    6766                    dwSize = GetFullPathNameW(wsz, cchFull, pwszFull, NULL);
    68                     if(   dwSize > 0 
     67                    if(   dwSize > 0
    6968                       && GetFileAttributesW(pwszFull) != INVALID_FILE_ATTRIBUTES)
    7069                        return dwSize;
     
    7776
    7877    /* fallback */
    79 #endif
    8078    return GetFullPathNameW(pwszName, cchFull, pwszFull, NULL);
    8179}
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