mirror of
https://github.com/reactos/wine.git
synced 2024-12-13 14:26:40 +00:00
kernel32/tests: Remove an identical if / else branch.
Signed-off-by: Michael Stefaniuc <mstefani@redhat.de> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
3e6b503adb
commit
85dea19312
@ -187,15 +187,8 @@ static void test_ValidPathA(const CHAR *curdir, const CHAR *subdir, const CHAR *
|
||||
len=pGetLongPathNameA(fullpath,tmpstr,MAX_PATH);
|
||||
if(passfail==NULL) {
|
||||
ok(len, "%s: GetLongPathNameA failed\n",errstr);
|
||||
if(HAS_TRAIL_SLASH_A(fullpath)) {
|
||||
ok(lstrcmpiA(fullpathlong,tmpstr)==0,
|
||||
"%s: GetLongPathNameA returned '%s' instead of '%s'\n",
|
||||
errstr,tmpstr,fullpathlong);
|
||||
} else {
|
||||
ok(lstrcmpiA(fullpathlong,tmpstr)==0,
|
||||
"%s: GetLongPathNameA returned '%s' instead of '%s'\n",
|
||||
errstr,tmpstr,fullpathlong);
|
||||
}
|
||||
ok(!lstrcmpiA(fullpathlong, tmpstr), "%s: GetLongPathNameA returned '%s' instead of '%s'\n",
|
||||
errstr, tmpstr, fullpathlong);
|
||||
} else {
|
||||
passfail->longlen=len;
|
||||
passfail->longerror=GetLastError();
|
||||
|
Loading…
Reference in New Issue
Block a user