VirtualBox

Changeset 1216 in vbox for trunk


Ignore:
Timestamp:
Mar 5, 2007 2:51:40 PM (18 years ago)
Author:
vboxsync
Message:

Shared clipboard, WINNT guest additions: handle the buffer size = 0.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/WINNT/VBoxService/VBoxClipboard.cpp

    r1103 r1216  
    288288//    }
    289289
    290     if (!VirtualLock (pv, cb))
     290    if (cb > 0 && !VirtualLock (pv, cb))
    291291    {
    292292        dprintf (("vboxClipboardWriteData: VirtualLock failed\n"));
     
    308308    }
    309309
    310     VirtualUnlock (pv, cb);
     310    if (cb > 0)
     311    {
     312        VirtualUnlock (pv, cb);
     313    }
    311314
    312315    return rc;
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette