CHDIR/SetCurrentDirectory returns FILE_NOT_FOUND

Alexandre Julliard julliard at
Wed Jun 16 23:27:10 CDT 2004

markus.amsler at writes:

> The installation routine of the ida dos disassembler (gg:,
> wonn't work, because winedos/int21:0x3b CHDIR returns ERROR_FILE_NOT_FOUND.
> If I return ERROR_PATH_NOT_FOUND it will install.
> ntdll:RtlSetCurrentDirectory returns STATUS_OBJECT_NAME_NOT_FOUND, which gets
> mapped to ERROR_FILE_NOT_FOUND (ntdll/error.c#L403).
> How to achieve the right behavior?
>  - Check for FILE_NOT_FOUND in winedos/int21.c: INT21_SetCurrentdirectory
>  - Check for FILE_NOT_FOUND in kernel/path.c: SetCurrentDirectoryW/A

The bug is in int21.c. I committed a fix.

Alexandre Julliard
julliard at

More information about the wine-devel mailing list