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, ...@@ -1887,7 +1887,7 @@ static inline LRESULT WINAPI ComboWndProc_locked( WND* pWnd, UINT message,
lphc->wState &= ~CBF_NOEDITNOTIFY; lphc->wState &= ~CBF_NOEDITNOTIFY;
return ret; return ret;
} }
else return CB_ERR; else return CB_ERR;
case WM_CUT: case WM_CUT:
case WM_PASTE: case WM_PASTE:
case WM_COPY: case WM_COPY:
......
...@@ -242,6 +242,7 @@ LRESULT WINAPI StaticWndProc( HWND hWnd, UINT uMsg, WPARAM wParam, ...@@ -242,6 +242,7 @@ LRESULT WINAPI StaticWndProc( HWND hWnd, UINT uMsg, WPARAM wParam,
else else
DEFWND_SetTextA( wndPtr, (LPCSTR)lParam ); DEFWND_SetTextA( wndPtr, (LPCSTR)lParam );
InvalidateRect( hWnd, NULL, FALSE ); InvalidateRect( hWnd, NULL, FALSE );
lResult = 1; /* success. FIXME: check text length */
break; break;
case WM_SETFONT: case WM_SETFONT:
......
...@@ -611,6 +611,7 @@ LRESULT WINAPI DefWindowProc16( HWND16 hwnd, UINT16 msg, WPARAM16 wParam, ...@@ -611,6 +611,7 @@ LRESULT WINAPI DefWindowProc16( HWND16 hwnd, UINT16 msg, WPARAM16 wParam,
DEFWND_SetTextA( wndPtr, (LPCSTR)PTR_SEG_TO_LIN(lParam) ); DEFWND_SetTextA( wndPtr, (LPCSTR)PTR_SEG_TO_LIN(lParam) );
if( (wndPtr->dwStyle & WS_CAPTION) == WS_CAPTION ) if( (wndPtr->dwStyle & WS_CAPTION) == WS_CAPTION )
NC_HandleNCPaint( hwnd , (HRGN)1 ); NC_HandleNCPaint( hwnd , (HRGN)1 );
result = 1; /* success. FIXME: check text length */
break; break;
default: default:
...@@ -677,6 +678,7 @@ LRESULT WINAPI DefWindowProcA( HWND hwnd, UINT msg, WPARAM wParam, ...@@ -677,6 +678,7 @@ LRESULT WINAPI DefWindowProcA( HWND hwnd, UINT msg, WPARAM wParam,
DEFWND_SetTextA( wndPtr, (LPCSTR)lParam ); DEFWND_SetTextA( wndPtr, (LPCSTR)lParam );
if( (wndPtr->dwStyle & WS_CAPTION) == WS_CAPTION ) if( (wndPtr->dwStyle & WS_CAPTION) == WS_CAPTION )
NC_HandleNCPaint( hwnd , (HRGN)1 ); /* Repaint caption */ NC_HandleNCPaint( hwnd , (HRGN)1 ); /* Repaint caption */
result = 1; /* success. FIXME: check text length */
break; break;
default: default:
...@@ -733,6 +735,7 @@ LRESULT WINAPI DefWindowProcW( ...@@ -733,6 +735,7 @@ LRESULT WINAPI DefWindowProcW(
DEFWND_SetTextW( wndPtr, (LPCWSTR)lParam ); DEFWND_SetTextW( wndPtr, (LPCWSTR)lParam );
if( (wndPtr->dwStyle & WS_CAPTION) == WS_CAPTION ) if( (wndPtr->dwStyle & WS_CAPTION) == WS_CAPTION )
NC_HandleNCPaint( hwnd , (HRGN)1 ); /* Repaint caption */ NC_HandleNCPaint( hwnd , (HRGN)1 ); /* Repaint caption */
result = 1; /* success. FIXME: check text length */
break; break;
default: default:
......
...@@ -1505,7 +1505,7 @@ LRESULT WINAPI DefFrameProc16( HWND16 hwnd, HWND16 hwndMDIClient, ...@@ -1505,7 +1505,7 @@ LRESULT WINAPI DefFrameProc16( HWND16 hwnd, HWND16 hwndMDIClient,
WIN_ReleaseWndPtr(wndPtr); WIN_ReleaseWndPtr(wndPtr);
HeapFree( GetProcessHeap(), 0, text ); HeapFree( GetProcessHeap(), 0, text );
} }
return 0; return 1; /* success. FIXME: check text length */
case WM_SETFOCUS: case WM_SETFOCUS:
SetFocus(hwndMDIClient); SetFocus(hwndMDIClient);
...@@ -1662,7 +1662,7 @@ LRESULT WINAPI DefMDIChildProc16( HWND16 hwnd, UINT16 message, ...@@ -1662,7 +1662,7 @@ LRESULT WINAPI DefMDIChildProc16( HWND16 hwnd, UINT16 message,
if( ci->hwndChildMaximized == hwnd ) if( ci->hwndChildMaximized == hwnd )
MDI_UpdateFrameText( clientWnd->parent, ci->self, MDI_UpdateFrameText( clientWnd->parent, ci->self,
MDI_REPAINTFRAME, NULL ); MDI_REPAINTFRAME, NULL );
retvalue = 0; retvalue = 1; /* success. FIXME: check text length */
goto END; goto END;
case WM_CLOSE: case WM_CLOSE:
...@@ -1862,7 +1862,7 @@ LRESULT WINAPI DefMDIChildProcA( HWND hwnd, UINT message, ...@@ -1862,7 +1862,7 @@ LRESULT WINAPI DefMDIChildProcA( HWND hwnd, UINT message,
if( ci->hwndChildMaximized == hwnd ) if( ci->hwndChildMaximized == hwnd )
MDI_UpdateFrameText( clientWnd->parent, ci->self, MDI_UpdateFrameText( clientWnd->parent, ci->self,
MDI_REPAINTFRAME, NULL ); MDI_REPAINTFRAME, NULL );
retvalue = 0; retvalue = 1; /* success. FIXME: check text length */
goto END; goto END;
case WM_GETMINMAXINFO: case WM_GETMINMAXINFO:
...@@ -1940,7 +1940,7 @@ LRESULT WINAPI DefMDIChildProcW( HWND hwnd, UINT message, ...@@ -1940,7 +1940,7 @@ LRESULT WINAPI DefMDIChildProcW( HWND hwnd, UINT message,
if( ci->hwndChildMaximized == hwnd ) if( ci->hwndChildMaximized == hwnd )
MDI_UpdateFrameText( clientWnd->parent, ci->self, MDI_UpdateFrameText( clientWnd->parent, ci->self,
MDI_REPAINTFRAME, NULL ); MDI_REPAINTFRAME, NULL );
retvalue = 0; retvalue = 1; /* success. FIXME: check text length */
goto END; goto END;
case WM_GETMINMAXINFO: 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