Ignore:
Timestamp:
Jan 14, 2000, 3:45:18 PM (26 years ago)
Author:
sandervl
Message:

MsgFormat bugfix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/user32/new/windowword.cpp

    r2290 r2437  
    1 /* $Id: windowword.cpp,v 1.5 2000-01-01 14:57:36 cbratschi Exp $ */
     1/* $Id: windowword.cpp,v 1.6 2000-01-14 14:45:18 sandervl Exp $ */
    22
    33/*
     
    2626      return window->SetWindowLongA(nIndex,lNewLong);
    2727    }
    28     else
    29     {
    30       if (nIndex == GWL_WNDPROC && !Win32BaseWindow::GetWindowFromOS2Handle(hwnd))
    31       {
    32         dprintf(("Start subclassing OS/2 window"));
    33 
    34         window = new Win32BaseWindow(hwnd,(PVOID)lNewLong);
    35 
    36         if(window == NULL)
    37         {
    38           dprintf(("Win32BaseWindow creation failed!!"));
    39           return 0;
    40         }
    41 
    42         if(GetLastError() != 0)
    43         {
    44           dprintf(("Win32BaseWindow error found!!"));
    45           delete window;
    46           return 0;
    47         }
    48 
    49         return (LONG)window->getOldWndProc();
    50       }
    51       else dprintf(("SetWindowLongA; window %x not found!", hwnd));
     28    else {
     29         dprintf(("SetWindowLongA; window %x not found!", hwnd));
    5230    }
    5331    return 0;
     
    6442      return window->SetWindowLongA(nIndex,lNewLong, TRUE);
    6543    }
    66     else
    67     {
    68       if (nIndex == GWL_WNDPROC && !Win32BaseWindow::GetWindowFromOS2Handle(hwnd))
    69       {
    70         dprintf(("Start subclassing OS/2 window"));
    71 
    72         window = new Win32BaseWindow(hwnd,(PVOID)lNewLong);
    73 
    74         if(window == NULL)
    75         {
    76           dprintf(("Win32BaseWindow creation failed!!"));
    77           return 0;
    78         }
    79 
    80         if(GetLastError() != 0)
    81         {
    82           dprintf(("Win32BaseWindow error found!!"));
    83           delete window;
    84           return 0;
    85         }
    86 
    87         return (LONG)window->getOldWndProc();
    88       }
    89       else dprintf(("SetWindowLongW; window %x not found!", hwnd));
     44    else {
     45         dprintf(("SetWindowLongW; window %x not found!", hwnd));
    9046    }
    9147    return 0;
Note: See TracChangeset for help on using the changeset viewer.