-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Crashes when trying to query clipboard data size for bitmap format #10
Comments
I'll take a look, thanks |
Out of curiosity could you sahre the way you place your bmp on clipboard, and the bmp itself? |
Ok, this is weird. According to my investigation Also please check the size returned by |
I've opened it in Paint, select all, copy.
From WinDbg:
|
This is actually pretty weird... It crashed in syscall for valid clipboard handle... On side note, as I mentioned we actually should not be able to get clipboard data for bitmap like that. P.s. Copying in Paint reproduces issue easily regardless of image |
Ok, after some investigation, I found that MS thinks it is ok to crash To solve it I could adopt following approaches:
@shepmaster I suppose either wouldn't work for you if you need generic approach to clipboard data, but sadly it is very difficult facilitate generic data retrieval due to how default formats like BITMAP works, so either way you'd need to handle bitmap data specially. |
Fixed 750d8ad If you'd like, verify |
For what it's worth, I was just answering a Stack Overflow question; I don't have any particular pressing need w.r.t. the Windows clipboard ;-). |
Attempting to debug copying a bitmap from the clipboard to a file, the crate crashes:
This is on Windows 10 (Version 10.0.17134 Build 17134)
The text was updated successfully, but these errors were encountered: