Ignore:
Timestamp:
Oct 19, 1999, 9:26:08 PM (26 years ago)
Author:
sandervl
Message:

Combobox + getWindowTextA/W fixes

File:
1 edited

Legend:

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

    r1357 r1365  
    1 /* $Id: win32wbase.cpp,v 1.55 1999-10-19 12:52:30 sandervl Exp $ */
     1/* $Id: win32wbase.cpp,v 1.56 1999-10-19 19:26:08 sandervl Exp $ */
    22/*
    33 * Win32 Window Base Class for OS/2
     
    641641  else
    642642  {
     643        dprintf(("Set window ID to %x", cs->hMenu));
    643644        setWindowId((DWORD)cs->hMenu);
    644645  }
     
    24532454int Win32BaseWindow::GetWindowTextA(LPSTR lpsz, int cch)
    24542455{
     2456    if(windowNameA == NULL) {
     2457        *lpsz = 0;
     2458        return 0;
     2459    }
    24552460    strncpy(lpsz, windowNameA, cch);
    24562461    return wndNameLength;
     
    24602465int Win32BaseWindow::GetWindowTextW(LPWSTR lpsz, int cch)
    24612466{
     2467    if(windowNameW == NULL) {
     2468        *lpsz = 0;
     2469        return 0;
     2470    }
    24622471    lstrcpynW((LPWSTR)lpsz, windowNameW, cch);
    24632472    return wndNameLength;
Note: See TracChangeset for help on using the changeset viewer.