Author: hbelusca
Date: Sat Dec 12 21:47:14 2015
New Revision: 70334
URL: http://svn.reactos.org/svn/reactos?rev=70334&view=rev
Log:
[WIN32K:CLIP]
- Adjust the type of some variables.
- Correctly set the fClipboardChanged flag to TRUE when emptying the clipboard: now this correctly triggers sending the WM_DRAWCLIPBOARD message to windows. Adapted from a patch by Ricardo Hanke.
CORE-10351
Modified:
trunk/reactos/win32ss/user/ntuser/clipboard.c
Modified: trunk/reactos/win32ss/user/ntuser/clipboard.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/win32ss/user/ntuser/clipbo…
==============================================================================
--- trunk/reactos/win32ss/user/ntuser/clipboard.c [iso-8859-1] (original)
+++ trunk/reactos/win32ss/user/ntuser/clipboard.c [iso-8859-1] Sat Dec 12 21:47:14 2015
@@ -40,7 +40,7 @@
static PCLIP FASTCALL
IntIsFormatAvailable(PWINSTATION_OBJECT pWinStaObj, UINT fmt)
{
- unsigned i = 0;
+ DWORD i;
for (i = 0; i < pWinStaObj->cNumClipFormats; ++i)
{
@@ -335,7 +335,7 @@
VOID NTAPI
UserEmptyClipboardData(PWINSTATION_OBJECT pWinSta)
{
- unsigned i;
+ DWORD i;
PCLIP pElement;
for (i = 0; i < pWinSta->cNumClipFormats; ++i)
@@ -630,6 +630,7 @@
pWinStaObj->spwndClipOwner = pWinStaObj->spwndClipOpen;
pWinStaObj->iClipSequenceNumber++;
+ pWinStaObj->fClipboardChanged = TRUE;
bRet = TRUE;
}