Wireshark-bugs: [Wireshark-bugs] [Bug 6438] Blank lines in Follow TCP Stream clipboard copy

Date: Wed, 12 Oct 2011 10:43:19 -0700 (PDT)
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6438

--- Comment #6 from Olaf van der Spek <olafvdspek@xxxxxxxxx> 2011-10-12 10:43:19 PDT ---
#include <iostream>
#include <windows.h>

using namespace std;

int main()
{
    OpenClipboard(NULL);
    for (UINT f = 0; f = EnumClipboardFormats(f); )
    {
        cout << f << ": ";
        HANDLE h = GetClipboardData(f);
        void* p = GlobalLock(h);
        unsigned char* r = reinterpret_cast<unsigned char*>(p);
        for (; *r; r++)
            printf("%02x ", *r);
        cout << endl;
    }
    return 0;
}

-- 
Configure bugmail: https://bugs.wireshark.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.