Ignore:
Timestamp:
Feb 5, 2011, 11:43:01 PM (13 years ago)
Author:
イグトランス (egtra)
Message:

PSAPIを使用している箇所について、Toolhelp32と選択するよう修正

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/egtra/ab5.0/abdev/OldWindowsHelperImpl.cpp

    r787 r798  
    11#include "stdafx.h"
    2 
    3 static OSVERSIONINFO GetVersionEx2()
    4 {
    5     OSVERSIONINFO vi = {sizeof vi};
    6     GetVersionEx(&vi);
    7     return vi;
    8 }
    9 
    10 static OSVERSIONINFO const vi = GetVersionEx2();
    11 
    12 
     2#include "OSVersion.h"
    133
    144static HMODULE hmodKernel;
     
    146136            if (InitializeCriticalSectionAndSpinCount_Real != nullptr)
    147137            {
    148                 OSVERSIONINFO vi = {sizeof vi};
    149                 ::GetVersionEx(&vi);
    150138                BOOL ret = InitializeCriticalSectionAndSpinCount_Real(lpcs, spinCount);
    151                 return vi.dwPlatformId == VER_PLATFORM_WIN32_WINDOWS
     139                return ActiveBasic::Common::Is9x()
    152140                    ? TRUE
    153141                    : ret;
Note: See TracChangeset for help on using the changeset viewer.