From dde56e71e8691ac973aae726fced8f7f41a6a4fb Mon Sep 17 00:00:00 2001 From: "waterson%netscape.com" Date: Wed, 19 Jan 2000 00:35:01 +0000 Subject: [PATCH] Make ResolveSymLink() fail silently if target was not a shortcut. r=lumpy --- xpcom/io/nsFileSpecWin.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/xpcom/io/nsFileSpecWin.cpp b/xpcom/io/nsFileSpecWin.cpp index 898f9826a235..627e316acc10 100644 --- a/xpcom/io/nsFileSpecWin.cpp +++ b/xpcom/io/nsFileSpecWin.cpp @@ -348,6 +348,11 @@ nsresult nsFileSpec::ResolveSymlink(PRBool& wasSymlink) } } } + else { + // It wasn't a shortcut. Oh well. Leave it like it was. + hres = 0; + } + // Release the pointer to the IPersistFile interface. ppf->Release(); }