diff options
author | Arnon Gilboa <agilboa@redhat.com> | 2012-03-01 13:06:24 +0200 |
---|---|---|
committer | Arnon Gilboa <agilboa@redhat.com> | 2012-03-01 14:16:49 +0200 |
commit | f605e2774d74d879f847b301705dfeb2330d1167 (patch) | |
tree | 7283bb576b6c9eebb2c39ef8e1be297c1545204c /server/char_device.h | |
parent | d2cd7b2b020da1dc7efe778ddfc4525e31784dbb (diff) | |
download | spice-f605e2774d74d879f847b301705dfeb2330d1167.tar.gz spice-f605e2774d74d879f847b301705dfeb2330d1167.tar.xz spice-f605e2774d74d879f847b301705dfeb2330d1167.zip |
client/windows: fix SetClipboardViewer error handling rhbz#786554
MSDN says the following about SetClipboardViewer(): "If an error occurs or there
are no other windows in the clipboard viewer chain, the return value is NULL".
Seems like the buggy case was "no other windows in the clipboard viewer chain",
which explains the 3rd party clipboard manager workaround detailed in the bug
description.
It also seems like SetClipboardViewer() does not clear the error state on
succcess. Calling SetLastError(0) before SetClipboardViewer() seems to solves
this issue.
Since we could not reproduce the bug on our env, the customer has verified on
several of their systems that a private build resolved the issue.
Diffstat (limited to 'server/char_device.h')
0 files changed, 0 insertions, 0 deletions