Dylan Smith : richedit: Swapped the expected and destination buffers in a test.

Alexandre Julliard julliard at winehq.org
Mon Oct 6 09:35:03 CDT 2008


Module: wine
Branch: master
Commit: 0589b618482a2ce70a82b73c652f1a86f04c812e
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=0589b618482a2ce70a82b73c652f1a86f04c812e

Author: Dylan Smith <dylan.ah.smith at gmail.com>
Date:   Thu Oct  2 17:33:24 2008 -0400

richedit: Swapped the expected and destination buffers in a test.

---

 dlls/riched20/tests/editor.c |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/dlls/riched20/tests/editor.c b/dlls/riched20/tests/editor.c
index 8274721..1c03eca 100644
--- a/dlls/riched20/tests/editor.c
+++ b/dlls/riched20/tests/editor.c
@@ -328,14 +328,14 @@ static void test_EM_GETLINE(void)
       char expectedbuf[1024];
       char resultbuf[1024];
       int j;
-      expectedbuf[0] = '\0';
-      for (j = 0; j < 32; j++)
-        sprintf(expectedbuf+strlen(expectedbuf), "%02x", dest[j] & 0xFF);
       resultbuf[0] = '\0';
+      for (j = 0; j < 32; j++)
+        sprintf(resultbuf+strlen(resultbuf), "%02x", dest[j] & 0xFF);
+      expectedbuf[0] = '\0';
       for (j = 0; j < expected_bytes_written; j++)
-        sprintf(resultbuf+strlen(resultbuf), "%02x", gl[i].text[j] & 0xFF);
+        sprintf(expectedbuf+strlen(expectedbuf), "%02x", gl[i].text[j] & 0xFF);
       for (; j < 32; j++)
-        sprintf(resultbuf+strlen(resultbuf), "%02x", origdest[j] & 0xFF);
+        sprintf(expectedbuf+strlen(expectedbuf), "%02x", origdest[j] & 0xFF);
 
       ok(!strncmp(dest, gl[i].text, expected_bytes_written),
          "%d: expected_bytes_written=%d\n" "expected=0x%s\n" "but got= 0x%s\n",




More information about the wine-cvs mailing list