fix error checking. helps to assign into the return code that you check for an error ;)

This commit is contained in:
pinkerton%netscape.com 1999-04-07 06:25:17 +00:00
parent cab01f5713
commit 9b349e54af

View File

@ -171,9 +171,9 @@ nsClipboard :: SetNativeClipboardData()
// so make sure not to delete it.
void* data = nsnull;
PRUint32 dataSize = 0;
mTransferable->GetTransferData ( currentFlavor, &data, &dataSize );
errCode = mTransferable->GetTransferData ( currentFlavor, &data, &dataSize );
#ifdef NS_DEBUG
if ( errCode != NS_OK ) printf("nsClipboard:: Error getting data into transferable\n");
if ( errCode != NS_OK ) printf("nsClipboard:: Error getting data from transferable\n");
#endif
// stash on clipboard