Ignore:
Timestamp:
Apr 22, 2001, 11:00:19 AM (24 years ago)
Author:
sandervl
Message:

removed wrong segment definition

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kernel32/codepage.cpp

    r5485 r5564  
    114114
    115115    return ansi_cptable->info.codepage;
    116 }
    117 
    118 static UconvObject GetObjectByCP(ULONG codepage)
    119 {
    120     UconvObject rc = 0;
    121     UniChar   codepage_str[12];
    122 
    123     BOOL ret = UniMapCpToUcsCp(codepage, codepage_str, sizeof(codepage_str));
    124     if ( ret == ULS_SUCCESS )
    125     {
    126         ret = UniCreateUconvObject( codepage_str, &rc );
    127         if ( ret != ULS_SUCCESS )
    128                 rc = 0;
    129     }
    130     dprintf(("UniCreateUconvObject for CP %d (%08x)\n", codepage, rc ));
    131     return rc;
    132 }
    133 
    134 static UconvObject DisplayUconv = NULL;
    135 static UconvObject WindowsUconv = NULL;
    136 
    137 UconvObject GetDisplayUconvObject()
    138 {
    139     if (!DisplayUconv)
    140         DisplayUconv = GetObjectByCP(GetDisplayCodepage());
    141 
    142     return DisplayUconv;
    143 }
    144 
    145 UconvObject GetWindowsUconvObject()
    146 {
    147     if (!WindowsUconv)
    148         WindowsUconv = GetObjectByCP(GetWindowsCodepage());
    149 
    150     return WindowsUconv;
    151116}
    152117
Note: See TracChangeset for help on using the changeset viewer.