Ignore:
Timestamp:
Sep 29, 2010, 12:46:01 AM (15 years ago)
Author:
dmik
Message:

Undo interpreting strings as ANSI for certain OSLib APIs modified in the previous commits as it breaks the common logic where many other OSLib calls (e.g. all dealig with file names) seem to expect the OEM (OS/2) encoding.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/user32/win32wbase.cpp

    r21372 r21463  
    528528//******************************************************************************
    529529//******************************************************************************
     530static BOOL OSLibWinSetTitleBarTextA(HWND hwnd, LPSTR lpsz)
     531{
     532    LPSTR psz = NULL;
     533    if(lpsz) {
     534        psz = (LPSTR)_smalloc(strlen(lpsz) + 1);
     535        CharToOemA(lpsz, psz);
     536    }
     537    BOOL rc = OSLibWinSetTitleBarText(hwnd, psz);
     538    if (psz) {
     539        _sfree(psz);
     540    }
     541    return rc;
     542}
     543//******************************************************************************
     544//******************************************************************************
    530545BOOL Win32BaseWindow::MsgCreate(HWND hwndOS2)
    531546{
     
    620635
    621636        if(fOS2Look) {
    622             OSLibWinSetTitleBarText(OS2HwndFrame, windowNameA);
     637            OSLibWinSetTitleBarTextA(OS2HwndFrame, windowNameA);
    623638        }
    624639    }
     
    16351650            }
    16361651            if(fOS2Look) {
    1637                 OSLibWinSetTitleBarText(OS2HwndFrame, getWindowNameA());
     1652                OSLibWinSetTitleBarTextA(OS2HwndFrame, getWindowNameA());
    16381653            }
    16391654        }
     
    22112226            }
    22122227            if(fOS2Look) {
    2213                 OSLibWinSetTitleBarText(OS2HwndFrame, getWindowNameA());
     2228                OSLibWinSetTitleBarTextA(OS2HwndFrame, getWindowNameA());
    22142229            }
    22152230        }
Note: See TracChangeset for help on using the changeset viewer.