Picked up sfraser's fix from 4.5 that allows URLs of up to 1K to be dragged to a browser window (old limit was 255 characters)

This commit is contained in:
sdagley%netscape.com 1998-10-06 01:29:50 +00:00
parent a1eadc81c7
commit c939b835c6

View File

@ -537,8 +537,8 @@ CBrowserView::DoDragReceive(DragReference inDragRef)
char* theData = nil;
::GetFlavorDataSize(inDragRef, itemRef, 'TEXT', &theDataSize);
if (theDataSize > 255) // ¥¥¥Êare there any limits to the URL string length?
theDataSize = 255;
if (theDataSize > 1024) // ¥¥¥Êare there any limits to the URL string length?
theDataSize = 1024;
theData = (char*) ::NewPtr(theDataSize+1);
// assert(theData != nil);