Uploaded image for project: 'Core ReactOS'
  1. Core ReactOS
  2. CORE-17318

Print Screen key (PrntScrn) does not load CF_DIB data into Clipboard

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 0.4.15
    • Win32SS
    • None

    Description

      Using the ClipbrdTest.exe program from CORE-14770 and running it before and after hitting the PrntScrn key on Win2K3SP2 shows that a CF_BITMAP and a CF_DIB entry are both created when the key is hit. ReactOS only creates the CF_BITMAP data and shows errors when it tries to create the CF_DIB formatted data as can be seen in CORE-17307. The attached patch fixes this for me. I do not know of any programs that are affected by this failing.
      I created a program Clipboard Read DIB (crdib.exe) that is attached and it reads the clipboard CF_DIB data and writes it out to a "test.bmp" file in the same directory as the program for testing this function. It works well in W2K3SP2 and failed in ReactOS. After this patch now it works fine.
      I plan to create a PR for this soon.

      Attachments

        1. ReactOS_DIB_Good03.png
          ReactOS_DIB_Good03.png
          110 kB
        2. ReactOS_DIB_Good02.png
          ReactOS_DIB_Good02.png
          116 kB
        3. ReactOS_DIB_Good01.png
          ReactOS_DIB_Good01.png
          98 kB
        4. ReactOS_DIB_Bad.png
          ReactOS_DIB_Bad.png
          71 kB
        5. object_c_clipboard.patch
          2 kB
        6. debug-15-266-PrntScrn.txt
          50 kB
        7. crdib.exe
          680 kB
        8. crdib.cpp
          6 kB
        9. CMakeLists.txt
          0.3 kB

        Issue Links

          Activity

            People

              DougLyons DougLyons
              DougLyons DougLyons
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: