mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-31 21:21:08 +00:00
fix error checking. helps to assign into the return code that you check for an error ;)
This commit is contained in:
parent
cab01f5713
commit
9b349e54af
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user