Commit 94a6832b authored by Andreas Mohr's avatar Andreas Mohr Committed by Alexandre Julliard

WM_SETTEXT should return TRUE on success.

parent fa940f59
......@@ -1887,7 +1887,7 @@ static inline LRESULT WINAPI ComboWndProc_locked( WND* pWnd, UINT message,
lphc->wState &= ~CBF_NOEDITNOTIFY;
return ret;
}
else return CB_ERR;
else return CB_ERR;
case WM_CUT:
case WM_PASTE:
case WM_COPY:
......
......@@ -242,6 +242,7 @@ LRESULT WINAPI StaticWndProc( HWND hWnd, UINT uMsg, WPARAM wParam,
else
DEFWND_SetTextA( wndPtr, (LPCSTR)lParam );
InvalidateRect( hWnd, NULL, FALSE );
lResult = 1; /* success. FIXME: check text length */
break;
case WM_SETFONT:
......
......@@ -611,6 +611,7 @@ LRESULT WINAPI DefWindowProc16( HWND16 hwnd, UINT16 msg, WPARAM16 wParam,
DEFWND_SetTextA( wndPtr, (LPCSTR)PTR_SEG_TO_LIN(lParam) );
if( (wndPtr->dwStyle & WS_CAPTION) == WS_CAPTION )
NC_HandleNCPaint( hwnd , (HRGN)1 );
result = 1; /* success. FIXME: check text length */
break;
default:
......@@ -677,6 +678,7 @@ LRESULT WINAPI DefWindowProcA( HWND hwnd, UINT msg, WPARAM wParam,
DEFWND_SetTextA( wndPtr, (LPCSTR)lParam );
if( (wndPtr->dwStyle & WS_CAPTION) == WS_CAPTION )
NC_HandleNCPaint( hwnd , (HRGN)1 ); /* Repaint caption */
result = 1; /* success. FIXME: check text length */
break;
default:
......@@ -733,6 +735,7 @@ LRESULT WINAPI DefWindowProcW(
DEFWND_SetTextW( wndPtr, (LPCWSTR)lParam );
if( (wndPtr->dwStyle & WS_CAPTION) == WS_CAPTION )
NC_HandleNCPaint( hwnd , (HRGN)1 ); /* Repaint caption */
result = 1; /* success. FIXME: check text length */
break;
default:
......
......@@ -1505,7 +1505,7 @@ LRESULT WINAPI DefFrameProc16( HWND16 hwnd, HWND16 hwndMDIClient,
WIN_ReleaseWndPtr(wndPtr);
HeapFree( GetProcessHeap(), 0, text );
}
return 0;
return 1; /* success. FIXME: check text length */
case WM_SETFOCUS:
SetFocus(hwndMDIClient);
......@@ -1662,7 +1662,7 @@ LRESULT WINAPI DefMDIChildProc16( HWND16 hwnd, UINT16 message,
if( ci->hwndChildMaximized == hwnd )
MDI_UpdateFrameText( clientWnd->parent, ci->self,
MDI_REPAINTFRAME, NULL );
retvalue = 0;
retvalue = 1; /* success. FIXME: check text length */
goto END;
case WM_CLOSE:
......@@ -1862,7 +1862,7 @@ LRESULT WINAPI DefMDIChildProcA( HWND hwnd, UINT message,
if( ci->hwndChildMaximized == hwnd )
MDI_UpdateFrameText( clientWnd->parent, ci->self,
MDI_REPAINTFRAME, NULL );
retvalue = 0;
retvalue = 1; /* success. FIXME: check text length */
goto END;
case WM_GETMINMAXINFO:
......@@ -1940,7 +1940,7 @@ LRESULT WINAPI DefMDIChildProcW( HWND hwnd, UINT message,
if( ci->hwndChildMaximized == hwnd )
MDI_UpdateFrameText( clientWnd->parent, ci->self,
MDI_REPAINTFRAME, NULL );
retvalue = 0;
retvalue = 1; /* success. FIXME: check text length */
goto END;
case WM_GETMINMAXINFO:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment