зеркало из https://github.com/mozilla/pjs.git
fix error checking. helps to assign into the return code that you check for an error ;)
This commit is contained in:
Родитель
72225bcd8a
Коммит
3ba39cffd6
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче