Commit 2939375
committed
windows: fix readImageDib to check the handle, not stale GetLastError (#65)
readImageDib returned an error whenever GetLastError held a stale non-zero
value (GetClipboardData does not reset it on success), so the CF_DIB
fallback path bailed out and Read(FmtImage) returned nil for 24-bit
images. Check the returned handle (hClipDat == 0) like readImage does.1 parent b189b79 commit 2939375
1 file changed
Lines changed: 6 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
164 | 164 | | |
165 | 165 | | |
166 | 166 | | |
167 | | - | |
168 | | - | |
169 | | - | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
170 | 173 | | |
171 | 174 | | |
172 | 175 | | |
| |||
0 commit comments