Changeset 21463 for trunk/src/user32/win32wbase.cpp
- Timestamp:
- Sep 29, 2010, 12:46:01 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/win32wbase.cpp
r21372 r21463 528 528 //****************************************************************************** 529 529 //****************************************************************************** 530 static 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 //****************************************************************************** 530 545 BOOL Win32BaseWindow::MsgCreate(HWND hwndOS2) 531 546 { … … 620 635 621 636 if(fOS2Look) { 622 OSLibWinSetTitleBarText (OS2HwndFrame, windowNameA);637 OSLibWinSetTitleBarTextA(OS2HwndFrame, windowNameA); 623 638 } 624 639 } … … 1635 1650 } 1636 1651 if(fOS2Look) { 1637 OSLibWinSetTitleBarText (OS2HwndFrame, getWindowNameA());1652 OSLibWinSetTitleBarTextA(OS2HwndFrame, getWindowNameA()); 1638 1653 } 1639 1654 } … … 2211 2226 } 2212 2227 if(fOS2Look) { 2213 OSLibWinSetTitleBarText (OS2HwndFrame, getWindowNameA());2228 OSLibWinSetTitleBarTextA(OS2HwndFrame, getWindowNameA()); 2214 2229 } 2215 2230 }
Note:
See TracChangeset
for help on using the changeset viewer.