Commit 898f4163 authored by Alexandre Julliard's avatar Alexandre Julliard

Still send a message in SetWindowText for the inter-process case even

though it's not fully correct (reported by Jason Campbell).
parent d6a4e34a
......@@ -2292,11 +2292,8 @@ BOOL WINAPI SetWindowTextA( HWND hwnd, LPCSTR lpString )
return FALSE;
}
if (!WIN_IsCurrentProcess( hwnd ))
{
FIXME( "cannot set text %s of other process window %p\n", debugstr_a(lpString), hwnd );
SetLastError( ERROR_ACCESS_DENIED );
return FALSE;
}
FIXME( "setting text %s of other process window %p should not use SendMessage\n",
debugstr_a(lpString), hwnd );
return (BOOL)SendMessageA( hwnd, WM_SETTEXT, 0, (LPARAM)lpString );
}
......@@ -2312,11 +2309,8 @@ BOOL WINAPI SetWindowTextW( HWND hwnd, LPCWSTR lpString )
return FALSE;
}
if (!WIN_IsCurrentProcess( hwnd ))
{
FIXME( "cannot set text %s of other process window %p\n", debugstr_w(lpString), hwnd );
SetLastError( ERROR_ACCESS_DENIED );
return FALSE;
}
FIXME( "setting text %s of other process window %p should not use SendMessage\n",
debugstr_w(lpString), hwnd );
return (BOOL)SendMessageW( hwnd, WM_SETTEXT, 0, (LPARAM)lpString );
}
......
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