FIX: Error message on not existing drive

This commit is contained in:
Alexander Koblov 2009-08-20 06:35:14 +00:00
commit baa8a32720

View file

@ -677,7 +677,7 @@ begin
aFile.Name := sPath;
Files:= TFiles.Create; // free in ShowContextMenu
Files.Add(aFile);
OldErrorMode:= SetErrorMode(SEM_NOOPENFILEERRORBOX);
OldErrorMode:= SetErrorMode(SEM_FAILCRITICALERRORS or SEM_NOOPENFILEERRORBOX);
ShowContextMenu(Owner, Files, X, Y);
SetErrorMode(OldErrorMode);
end;