Ignore:
Timestamp:
Jun 18, 2009, 11:53:26 AM (16 years ago)
Author:
ydario
Message:

Kernel32 updates.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kernel32/ole2nls.c

    r9975 r21302  
    19121912    }
    19131913
     1914#ifdef __WIN32OS2__
     1915    /* For WCHAR we better use the WCHAR toupper/lower.
     1916     * (VAC308 toupper/tolower doesn't do range checks according to standards
     1917     *  which may cause illegal memory reads access when misused like it were here.
     1918     */
     1919    if (mapflags & LCMAP_UPPERCASE)
     1920      f = toupperW;
     1921    else if (mapflags & LCMAP_LOWERCASE)
     1922      f = tolowerW;
     1923#else
    19141924    if (mapflags & LCMAP_UPPERCASE)
    19151925      f = toupper;
    19161926    else if (mapflags & LCMAP_LOWERCASE)
    19171927      f = tolower;
     1928#endif
    19181929    if (f)
    19191930    {
Note: See TracChangeset for help on using the changeset viewer.