kernel32/tests: '\' needs to be escaped in a C string (sparse).
This commit is contained in:
parent
b6b7069f2f
commit
bb442a2a57
|
@ -362,7 +362,7 @@ static void test_InitPathA(CHAR *newdir, CHAR *curDrive, CHAR *otherDrive)
|
|||
|
||||
for(unique=0;unique<3;unique++) {
|
||||
/* Nonexistent path */
|
||||
sprintf(invalid_dir, "%s\%s",tmppath,"non_existent_dir_1jwj3y32nb3");
|
||||
sprintf(invalid_dir, "%s\\%s",tmppath,"non_existent_dir_1jwj3y32nb3");
|
||||
SetLastError(0xdeadbeef);
|
||||
ok(!GetTempFileNameA(invalid_dir,"tfn",unique,newdir),"GetTempFileNameA should have failed\n");
|
||||
ok(GetLastError()==ERROR_DIRECTORY || broken(GetLastError()==ERROR_PATH_NOT_FOUND)/*win98*/,
|
||||
|
|
Loading…
Reference in New Issue