From 979770b1cab0d01980751eaaac9b7ad9ddf2331b Mon Sep 17 00:00:00 2001 From: Francois Gouget Date: Thu, 19 Dec 2002 21:12:48 +0000 Subject: [PATCH] On Win9x "hi\n" gives us "hi\r\n". --- dlls/kernel/tests/format_msg.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/kernel/tests/format_msg.c b/dlls/kernel/tests/format_msg.c index 644d53d74d4..adce921e9b2 100644 --- a/dlls/kernel/tests/format_msg.c +++ b/dlls/kernel/tests/format_msg.c @@ -195,8 +195,8 @@ void test_message_from_string(void) /* line feed */ r = doit(FORMAT_MESSAGE_FROM_STRING | FORMAT_MESSAGE_MAX_WIDTH_MASK, "hi\n", 0, 0, out, sizeof out/sizeof (CHAR)); - ok(!strcmp("hi ", out),"failed out=[%s]",out); - ok(r==3,"failed: r=%ld",r); + ok(!strcmp("hi ", out) || !strcmp("hi\r\n", out),"failed out=[%s]",out); + ok(r==3 || r==4,"failed: r=%ld",r); /* carriage return line feed */ r = doit(FORMAT_MESSAGE_FROM_STRING | FORMAT_MESSAGE_MAX_WIDTH_MASK, "hi\r\n", 0,