Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5958 for code/trunk


Ignore:
Timestamp:
Oct 16, 2009, 9:52:10 AM (15 years ago)
Author:
rgrieder
Message:

Fixed a failed assertion on Windows, occurring when pasting from an empty clipboard.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/libraries/util/Clipboard.cc

    r5781 r5958  
    9494            {
    9595                HANDLE hData = GetClipboardData(CF_TEXT);
     96                if (hData == NULL)
     97                    return "";
    9698                std::string output = static_cast<char*>(GlobalLock(hData));
    9799                GlobalUnlock(hData);
Note: See TracChangeset for help on using the changeset viewer.