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
Родитель 72225bcd8a
Коммит 3ba39cffd6
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -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