- Timestamp:
- Dec 18, 2017 2:09:58 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r3/nt/pathint-nt.cpp
r70195 r70200 38 38 #include <iprt/assert.h> 39 39 40 #include "../win/internal-r3-win.h"41 42 40 43 41 /********************************************************************************************************************************* … … 69 67 { 70 68 *phRootDir = NULL; 71 if ( g_enmWinVer >= kRTWinOSType_NT4 72 || g_enmWinVer == kRTWinOSType_UNKNOWN) 69 if (RT_MAKE_U64(RTNtCurrentPeb()->OSMinorVersion, RTNtCurrentPeb()->OSMajorVersion) >= RT_MAKE_U64(0, 4)) 73 70 { 74 71 pwszPath[0] = '\\'; … … 121 118 if (cwcWinPath < _32K - 1) 122 119 { 123 size_t const cwcExtraPrefix = g_enmWinVer >= kRTWinOSType_NT4 || g_enmWinVer == kRTWinOSType_UNKNOWN 120 121 size_t const cwcExtraPrefix = RT_MAKE_U64(RTNtCurrentPeb()->OSMinorVersion, RTNtCurrentPeb()->OSMajorVersion) 122 >= RT_MAKE_U64(0, 4) 124 123 ? 0 : sizeof(g_szPrefixNt3x) - 1 - 4; 125 124 PRTUTF16 pwszNtPath = (PRTUTF16)RTUtf16Alloc((cwcExtraPrefix + cwcWinPath + 1) * sizeof(RTUTF16)); … … 210 209 const char *pszPrefix; 211 210 size_t cchPrefix; 212 if ( g_enmWinVer >= kRTWinOSType_NT4 213 || g_enmWinVer == kRTWinOSType_UNKNOWN) 211 if (RT_MAKE_U64(RTNtCurrentPeb()->OSMinorVersion, RTNtCurrentPeb()->OSMajorVersion) >= RT_MAKE_U64(0, 4)) 214 212 { 215 213 pszPrefix = g_szPrefix; … … 251 249 { 252 250 /* UNC */ 253 if ( g_enmWinVer >= kRTWinOSType_NT4 254 || g_enmWinVer == kRTWinOSType_UNKNOWN) 251 if (RT_MAKE_U64(RTNtCurrentPeb()->OSMinorVersion, RTNtCurrentPeb()->OSMajorVersion) >= RT_MAKE_U64(0, 4)) 255 252 { 256 253 pszPrefix = g_szPrefixUnc;
Note:
See TracChangeset
for help on using the changeset viewer.