kernel32/tests: '\' needs to be escaped in a C string (sparse).

This commit is contained in:
Michael Stefaniuc 2010-11-10 01:19:48 +01:00 committed by Alexandre Julliard
parent b6b7069f2f
commit bb442a2a57
1 changed files with 1 additions and 1 deletions

View File

@ -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*/,