[2/3] ntdll: don't treat DOS paths starting with / as Unix paths
madewokherd+8cd9 at gmail.com
Wed Apr 8 19:27:34 CDT 2009
On Wed, Apr 8, 2009 at 6:08 PM, Koro <webmaster at korosoft.net> wrote:
> Isn't that why WINE has the Z: drive that maps to / anyway?
Wine has Z: so that in its default state all Unix paths can map to a
Windows path. However, Wine cannot rely on Z: to always map to /. A
Wine without Z: is a perfectly valid configuration (although it may
mean windows programs cannot access some paths), but paths within C:
need to always continue to function.
Apparently Wine directly accesses Unix paths internally in some cases
that I did not find (I'm not sure how I would go about finding them if
I wanted to fix this.), and doing this is preferable (?) to explicitly
converting them first. That is, rather than doing:
windows_path <- convert_unix_path_to_windows_path(unix_path)
we should be doing:
Having to add "\\?\unix" to the start of the unix path (so we can do
open_file(\\?\unix/unix_path)) is apparently worth skipping the
conversion, which still happens internally. I don't know how, but
that's what the rejection of the first patch in this series, combined
with the \\?\unix idea, tells me.
More information about the wine-devel