• Vincent Povirk's avatar
    user32: Don't regard the clipboard as changed if we don't own it. · b68e03f9
    Vincent Povirk authored
    I ran into a situation where user32 will call EndClipboardUpdate even though
    the clipboard hasn't changed. It went something like this:
    * Program A acquires the clipboard and adds some delay-rendered data.
    * Program B requests data from the clipboard, causing program A to receive
      WM_RENDERFORMAT.
    * Program A calls SetClipboardData to fulfill the request, setting
      bCBHasChanged to TRUE.
    * Program C acquires the clipboard.
    * Program A opens the clipboard to enumerate the formats. When it closes the
      clipboard, EndClipboardUpdate is called.
    Signed-off-by: 's avatarVincent Povirk <vincent@codeweavers.com>
    Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
    b68e03f9
clipboard.c 13 KB