"Aric Stewart" aric@codeweavers.com wrote:
ChangeLog: modify msvcrt dir test to create its own directory to ensure the directory exists for the test.
- SetCurrentDirectory("C:\Windows\System\");
- free1=free2=TRUE;
- rc = CreateDirectory("C:\msvcrt-test\",NULL);
- if (!rc && GetLastError()==ERROR_ALREADY_EXISTS)
free1=FALSE;
- rc = CreateDirectory("C:\msvcrt-test\nextlevel\",NULL);
- if (!rc && GetLastError()==ERROR_ALREADY_EXISTS)
free2=FALSE;
- SetCurrentDirectory("C:\msvcrt-test\nextlevel\");
Drive C: root directory is not the best place to create temporary directories, I'd suggest to use GetTempPath (and maybe GetTempFileName) to get a more appropriate starting point.