VirtualBox

Changeset 70200 in vbox for trunk


Ignore:
Timestamp:
Dec 18, 2017 2:09:58 PM (7 years ago)
Author:
vboxsync
Message:

IPRT/R3: Made the core work on NT 3.51 (still experimental). [build fix]

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r3/nt/pathint-nt.cpp

    r70195 r70200  
    3838#include <iprt/assert.h>
    3939
    40 #include "../win/internal-r3-win.h"
    41 
    4240
    4341/*********************************************************************************************************************************
     
    6967        {
    7068            *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))
    7370            {
    7471                pwszPath[0] = '\\';
     
    121118    if (cwcWinPath < _32K - 1)
    122119    {
    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)
    124123                                    ? 0 : sizeof(g_szPrefixNt3x) - 1 - 4;
    125124        PRTUTF16 pwszNtPath = (PRTUTF16)RTUtf16Alloc((cwcExtraPrefix + cwcWinPath + 1) * sizeof(RTUTF16));
     
    210209    const char *pszPrefix;
    211210    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))
    214212    {
    215213        pszPrefix = g_szPrefix;
     
    251249        {
    252250            /* 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))
    255252            {
    256253                pszPrefix = g_szPrefixUnc;
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