Commit e4e55ed8 authored by Ilya Shpigor's avatar Ilya Shpigor Committed by Alexandre Julliard

comctl32: Test the WM_GETTEXT processing of datetime control.

parent e4faa129
......@@ -659,7 +659,7 @@ static void test_dtm_set_and_get_system_time(void)
static void test_wm_set_get_text(void)
{
static const CHAR a_str[] = "a";
char buff[10];
char buff[16], time[16];
HWND hWnd;
LRESULT ret;
......@@ -674,6 +674,10 @@ static void test_wm_set_get_text(void)
ret = SendMessage(hWnd, WM_GETTEXT, sizeof(buff), (LPARAM)buff);
ok(strcmp(buff, a_str) != 0, "Expected text not to change, got %s\n", buff);
GetDateFormat(LOCALE_USER_DEFAULT, 0, NULL, NULL, time, sizeof(time));
todo_wine
ok(!strcmp(buff, time), "Expected %s, got %s\n", time, buff);
DestroyWindow(hWnd);
}
......
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