Changeset 699


Ignore:
Timestamp:
2009/03/31 14:15:23 (3 years ago)
Author:
egtra
Message:

無駄となったUNICODE条件分岐を削除

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ab5.0/ablib/src/Classes/System/Environment.ab

    r667 r699  
    1919 
    2020    Static Function CommandLine() As String 
    21 #ifdef UNICODE 
    22             CommandLine = New String(GetCommandLineW()) 
    23 #else 
    24             CommandLine = New String(GetCommandLineA()) 
    25 #endif 
     21        CommandLine = New String(GetCommandLine()) 
    2622    End Function 
    2723 
     
    6864 
    6965    Static Function OSVersion() As OperatingSystem 
    70         Dim vi As OSVERSIONINFO 
    71         vi.dwOSVersionInfoSize = Len(vi) 
    72         GetVersionEx(vi) 
    73         OSVersion = New OperatingSystem(vi) 
     66        OSVersion = New OperatingSystem(ActiveBasic.Windows.Version.Detail.vi) 
    7467    End Function 
    7568 
     
    163156        Dim buf = New Text.StringBuilder 
    164157        buf.Length = size As Long 
    165         buf.Length  = _System_GetEnvironmentVariable(tcsVariable, StrPtr(buf), size) 
     158        buf.Length = _System_GetEnvironmentVariable(tcsVariable, StrPtr(buf), size) 
    166159        GetEnvironmentVariable = buf.ToString 
    167160    End Function 
Note: See TracChangeset for help on using the changeset viewer.