Alexandre Julliard : kernel32/tests: Support broken GetTempPath return value on WinME.

Alexandre Julliard julliard at winehq.org
Fri Jan 30 07:58:10 CST 2009


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

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Thu Jan 29 22:07:50 2009 +0100

kernel32/tests: Support broken GetTempPath return value on WinME.

---

 dlls/kernel32/tests/path.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/kernel32/tests/path.c b/dlls/kernel32/tests/path.c
index 3985bcf..a272b56 100644
--- a/dlls/kernel32/tests/path.c
+++ b/dlls/kernel32/tests/path.c
@@ -328,7 +328,7 @@ static void test_InitPathA(CHAR *newdir, CHAR *curDrive, CHAR *otherDrive)
      "GetTempPathA returned a path that did not end in '\\'\n");
   lstrcpyA(tmpstr,"aaaaaaaa");
   len1=GetTempPathA(len,tmpstr);
-  ok(len1==len+1,
+  ok(len1==len+1 || broken(len1 == len), /* WinME */
      "GetTempPathA should return string length %d instead of %d\n",len+1,len1);
 
 /* Test GetTmpFileNameA




More information about the wine-cvs mailing list