Hi,

In xpcom/io/nsLocalFileWin.cpp there is some code to do shortcut resolution for paths like:

c:\foo\shortcut.lnk\bar\file.txt

This appears to be designed to resolve to 'c:\hello\bar\file.txt' for a tree like:

c:\
  foo\
    shortcut.lnk -> c:\hello\
  hello\
    bar\
      file.txt

However calling the Win32 function CreateFile() on the same path will fail. Is there any reason to support functionality which the OS doesn't support itself? i.e. is this functionality being used inside Mozilla?

If not, then this code should be removed. It would simplify path resolution and save a few bytes.

Regards,
Brodie

_______________________________________________
Mozilla-xpcom mailing list
[EMAIL PROTECTED]
http://mail.mozilla.org/listinfo/mozilla-xpcom

Reply via email to