Ignore:
Timestamp:
Apr 12, 2001, 4:04:54 PM (24 years ago)
Author:
sandervl
Message:

Sofiya: DBCS fixes

File:
1 edited

Legend:

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

    r5409 r5496  
    1 /* $Id: window.cpp,v 1.92 2001-03-30 23:59:47 sandervl Exp $ */
     1/* $Id: window.cpp,v 1.93 2001-04-12 14:04:33 sandervl Exp $ */
    22/*
    33 * Win32 window apis for OS/2
     
    798798    window = Win32BaseWindow::GetWindowFromHandle(hwnd);
    799799    if(!window) {
    800         dprintf(("GetWindowTextLength, window %x not found", hwnd));
    801         SetLastError(ERROR_INVALID_WINDOW_HANDLE);
    802         return 0;
    803     }
    804     dprintf(("GetWindowTextLength %x", hwnd));
    805     return window->GetWindowTextLength();
     800        dprintf(("GetWindowTextLengthA, window %x not found", hwnd));
     801        SetLastError(ERROR_INVALID_WINDOW_HANDLE);
     802        return 0;
     803    }
     804    dprintf(("GetWindowTextLengthA %x", hwnd));
     805    return window->GetWindowTextLengthA();
    806806}
    807807//******************************************************************************
     
    826826int WIN32API GetWindowTextLengthW( HWND hwnd)
    827827{
    828     dprintf(("USER32:  GetWindowTextLengthW\n"));
    829     return GetWindowTextLengthA(hwnd);
     828   Win32BaseWindow *window;
     829
     830    window = Win32BaseWindow::GetWindowFromHandle(hwnd);
     831    if(!window) {
     832        dprintf(("GetWindowTextLengthW, window %x not found", hwnd));
     833        SetLastError(ERROR_INVALID_WINDOW_HANDLE);
     834        return 0;
     835    }
     836    dprintf(("GetWindowTextLengthW %x", hwnd));
     837    return window->GetWindowTextLengthW();
    830838}
    831839//******************************************************************************
Note: See TracChangeset for help on using the changeset viewer.