Changeset 699 for trunk/ab5.0


Ignore:
Timestamp:
Mar 31, 2009, 2:15:23 PM (16 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.