Bug 172462 - For Mach-0, drag and drop of file onto browser doesn't work. It was because some code was #ifdef'd out for lack of nsILocalFileMac. r=cls/sr=sfraser/a=dbaron

This commit is contained in:
ccarlen%netscape.com 2002-10-24 13:39:26 +00:00
Родитель 9992f966e2
Коммит f4d7cddf61
1 изменённых файлов: 0 добавлений и 4 удалений

Просмотреть файл

@ -58,9 +58,7 @@
#include "nsXPIDLString.h"
#include "nsCRT.h"
#include "nsPrimitiveHelpers.h"
#ifndef XP_MACOSX
#include "nsILocalFileMac.h"
#endif
#include "nsWatchTask.h"
// rjc
@ -559,11 +557,9 @@ printf("looking for data in type %s, mac flavor %ld\n", NS_STATIC_CAST(const cha
// we have a HFSFlavor struct in |dataBuff|. Create an nsLocalFileMac object.
HFSFlavor* fileData = NS_REINTERPRET_CAST(HFSFlavor*, dataBuff);
NS_ASSERTION ( sizeof(HFSFlavor) == dataSize, "Ooops, we realy don't have a HFSFlavor" );
#ifndef XP_MACOSX
nsCOMPtr<nsILocalFileMac> file;
if ( NS_SUCCEEDED(NS_NewLocalFileWithFSSpec(&fileData->fileSpec, PR_TRUE, getter_AddRefs(file))) )
genericDataWrapper = do_QueryInterface(file);
#endif
}
else {
// we probably have some form of text. The DOM only wants LF, so convert k