modifying _fullpath test
Dmitry Timoshkov
dmitry at baikal.ru
Wed Jan 11 04:33:33 CST 2006
"Aric Stewart" <aric at 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.
--
Dmitry.
More information about the wine-devel
mailing list