Bug 328077. Fix Windows drag-drop crash. patch by Yuri Kovalchuk. r+sr=roc

git-svn-id: svn://10.0.0.236/trunk@190901 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
roc+%cs.cmu.edu 2006-02-22 22:39:33 +00:00
parent 0c4dffbc43
commit 36bc8c35cf
2 changed files with 13 additions and 7 deletions

View File

@ -222,6 +222,12 @@ nsDragService::InvokeDragSession(nsIDOMNode *aDOMNode,
if (NS_FAILED(rv))
return rv;
// set the directory promise flavour
// if this fails it won't affect the drag so we can just continue
trans->SetTransferData(kFilePromiseDirectoryMime,
dropLocalFile,
sizeof(nsILocalFile*));
// Create a new FileURI to pass to the nsIDownload
nsCOMPtr<nsIURI> targetURI;

View File

@ -63,14 +63,14 @@ typedef struct {
#endif // SHCNE_RENAMEITEM_DEF
// Register for shell notifications func ptr
typedef ULONG (*SHCNRegPtr)(HWND hWnd, // Ordinal of 2
int fSources,
LONG fEvents,
UINT wMsg,
int cEntries,
SHChangeNotifyStruct *pschn);
typedef WINSHELLAPI ULONG (WINAPI *SHCNRegPtr)(HWND hWnd, // Ordinal of 2
int fSources,
LONG fEvents,
UINT wMsg,
int cEntries,
SHChangeNotifyStruct *pschn);
// Unregister form from the shell notifications func ptr
typedef BOOL (*SHCNDeregPtr)(ULONG ulID); // Ordinal of 4
typedef WINSHELLAPI BOOL (WINAPI *SHCNDeregPtr)(ULONG ulID); // Ordinal of 4
/**
* Native Win32 DragService wrapper