Ignore:
Timestamp:
Jul 25, 1999, 10:19:29 AM (26 years ago)
Author:
sandervl
Message:

GetLocaleInfoW bugfix

File:
1 edited

Legend:

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

    r367 r390  
    8989  ret_len=GetLocaleInfoW(lcid, LCType, lpWStr, len);
    9090
    91   if (buf)
     91  if (ret_len && buf)
    9292  {
    9393    UnicodeToAscii(lpWStr,buf);
     
    125125  if (wbuf)
    126126  {
    127     if (*pLen > sizeof(WCHAR))
     127//    if (*pLen > sizeof(WCHAR))
     128    if (*pLen > 2)
    128129    {
    129130      wbuf[0]=(WCHAR)'0'+wcUniChar;
Note: See TracChangeset for help on using the changeset viewer.