Module: wine Branch: master Commit: ff307d96c1cadefb62857ffdb400abee186a424d URL: http://source.winehq.org/git/wine.git/?a=commit;h=ff307d96c1cadefb62857ffdb4...
Author: Gerald Pfeifer gerald@pfeifer.com Date: Thu Nov 1 15:30:55 2007 +0100
shell32: Remove useless comparison >= 0 for unsigned variables.
---
dlls/shell32/tests/shelllink.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/dlls/shell32/tests/shelllink.c b/dlls/shell32/tests/shelllink.c index 091522b..7983aa0 100644 --- a/dlls/shell32/tests/shelllink.c +++ b/dlls/shell32/tests/shelllink.c @@ -527,7 +527,7 @@ static void test_load_save(void) check_lnk(lnkfile, &desc, 0x0);
r=GetModuleFileName(NULL, mypath, sizeof(mypath)); - ok(r>=0 && r<sizeof(mypath), "GetModuleFileName failed (%d)\n", r); + ok(r<sizeof(mypath), "GetModuleFileName failed (%d)\n", r); strcpy(mydir, mypath); p=strrchr(mydir, '\'); if (p) @@ -564,9 +564,9 @@ static void test_load_save(void)
/* Create a temporary non-executable file */ r=GetTempPath(sizeof(mypath), mypath); - ok(r>=0 && r<sizeof(mypath), "GetTempPath failed (%d), err %d\n", r, GetLastError()); + ok(r<sizeof(mypath), "GetTempPath failed (%d), err %d\n", r, GetLastError()); r=pGetLongPathNameA(mypath, mydir, sizeof(mydir)); - ok(r>=0 && r<sizeof(mydir), "GetLongPathName failed (%d), err %d\n", r, GetLastError()); + ok(r<sizeof(mydir), "GetLongPathName failed (%d), err %d\n", r, GetLastError()); p=strrchr(mydir, '\'); if (p) *p='\0';