[PATCH] kernel32/tests: Fix ASCII / ANSI mixups in comments.

Francois Gouget fgouget at free.fr
Fri Aug 27 05:46:26 CDT 2021


Signed-off-by: Francois Gouget <fgouget at free.fr>
---
 dlls/kernel32/tests/format_msg.c | 4 ++--
 dlls/kernel32/tests/process.c    | 4 ++--
 dlls/kernel32/tests/profile.c    | 4 ++--
 3 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/dlls/kernel32/tests/format_msg.c b/dlls/kernel32/tests/format_msg.c
index 4997f8991bd..794069e341d 100644
--- a/dlls/kernel32/tests/format_msg.c
+++ b/dlls/kernel32/tests/format_msg.c
@@ -144,7 +144,7 @@ static void test_message_from_string_wide(void)
     ok(!lstrcmpW(L"test", out), "failed out=%s\n", wine_dbgstr_w(out));
     ok(r==4, "failed: r=%d\n", r);
 
-    /* S is ascii */
+    /* S is ansi */
     r = doitW(FORMAT_MESSAGE_FROM_STRING, L"%1!S!", 0, 0, out, ARRAY_SIZE(out), "test");
     ok(!lstrcmpW(L"test", out), "failed out=%s\n", wine_dbgstr_w(out));
     ok(r==4, "failed: r=%d\n", r);
@@ -417,7 +417,7 @@ static void test_message_from_string(void)
     ok(!strcmp("test", out),"failed out=[%s]\n",out);
     ok(r==4,"failed: r=%d\n",r);
 
-    /* s is ascii */
+    /* s is ansi */
     r = doit(FORMAT_MESSAGE_FROM_STRING, "%1!s!", 0, 0, out, ARRAY_SIZE(out), "test");
     ok(!strcmp("test", out),"failed out=[%s]\n",out);
     ok(r==4,"failed: r=%d\n",r);
diff --git a/dlls/kernel32/tests/process.c b/dlls/kernel32/tests/process.c
index e729bca87ef..b1b76a88878 100644
--- a/dlls/kernel32/tests/process.c
+++ b/dlls/kernel32/tests/process.c
@@ -1952,9 +1952,9 @@ static void test_QueryFullProcessImageNameA(void)
     expect_eq_d(4, size);
     expect_eq_s(INIT_STR, buf);
 
-    /* this is a difference between the ascii and the unicode version
+    /* this is a difference between the ansi and the unicode version
      * the unicode version crashes when the size is big enough to hold
-     * the result while the ascii version throws an error
+     * the result while the ansi version throws an error
      */
     size = 1024;
     expect_eq_d(FALSE, pQueryFullProcessImageNameA(GetCurrentProcess(), 0, NULL, &size));
diff --git a/dlls/kernel32/tests/profile.c b/dlls/kernel32/tests/profile.c
index f9815585480..94ef0a85467 100644
--- a/dlls/kernel32/tests/profile.c
+++ b/dlls/kernel32/tests/profile.c
@@ -150,7 +150,7 @@ static void test_profile_string(void)
     WriteFile( h, content2, sizeof(content2), &count, NULL);
     CloseHandle( h);
 
-    /* works only in unicode, ascii crashes */
+    /* works only in unicode, ansi crashes */
     ret=GetPrivateProfileStringW(emptyW, keyW, emptyW, bufW, ARRAY_SIZE(bufW), TESTFILE2W);
     todo_wine
     ok(ret == 13, "expected 13, got %u\n", ret);
@@ -158,7 +158,7 @@ static void test_profile_string(void)
     ok(!lstrcmpW(valsectionW,bufW), "expected %s, got %s\n",
         wine_dbgstr_w(valsectionW), wine_dbgstr_w(bufW) );
 
-    /* works only in unicode, ascii crashes */
+    /* works only in unicode, ansi crashes */
     ret=GetPrivateProfileStringW(sW, emptyW, emptyW, bufW, ARRAY_SIZE(bufW), TESTFILE2W);
     ok(ret == 10, "expected 10, got %u\n", ret);
     ok(!lstrcmpW(valnokeyW,bufW), "expected %s, got %s\n",
-- 
2.20.1




More information about the wine-devel mailing list