mirror of
https://github.com/reactos/reactos.git
synced 2025-08-06 06:22:58 +00:00
Whitespace fixes only.
svn path=/trunk/; revision=70333
This commit is contained in:
parent
747395cee4
commit
6518065a73
1 changed files with 13 additions and 12 deletions
|
@ -44,7 +44,7 @@ IntIsFormatAvailable(PWINSTATION_OBJECT pWinStaObj, UINT fmt)
|
||||||
|
|
||||||
for (i = 0; i < pWinStaObj->cNumClipFormats; ++i)
|
for (i = 0; i < pWinStaObj->cNumClipFormats; ++i)
|
||||||
{
|
{
|
||||||
if (pWinStaObj->pClipBase[i].fmt == fmt)
|
if (pWinStaObj->pClipBase[i].fmt == fmt)
|
||||||
return &pWinStaObj->pClipBase[i];
|
return &pWinStaObj->pClipBase[i];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -232,14 +232,14 @@ IntSynthesizeBitmap(PWINSTATION_OBJECT pWinStaObj, PCLIP pBmEl)
|
||||||
|
|
||||||
pDibEl = IntIsFormatAvailable(pWinStaObj, CF_DIB);
|
pDibEl = IntIsFormatAvailable(pWinStaObj, CF_DIB);
|
||||||
ASSERT(pDibEl && !IS_DATA_SYNTHESIZED(pDibEl));
|
ASSERT(pDibEl && !IS_DATA_SYNTHESIZED(pDibEl));
|
||||||
if(!pDibEl->fGlobalHandle)
|
if (!pDibEl->fGlobalHandle)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
pMemObj = (PCLIPBOARDDATA)UserGetObject(gHandleTable, pDibEl->hData, TYPE_CLIPDATA);
|
pMemObj = (PCLIPBOARDDATA)UserGetObject(gHandleTable, pDibEl->hData, TYPE_CLIPDATA);
|
||||||
if (!pMemObj)
|
if (!pMemObj)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
pBmi = (BITMAPINFO*)pMemObj->Data;
|
pBmi = (BITMAPINFO*)pMemObj->Data;
|
||||||
|
|
||||||
if (pMemObj->cbData < sizeof(DWORD) && pMemObj->cbData < pBmi->bmiHeader.biSize)
|
if (pMemObj->cbData < sizeof(DWORD) && pMemObj->cbData < pBmi->bmiHeader.biSize)
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
|
@ -341,11 +341,12 @@ UserEmptyClipboardData(PWINSTATION_OBJECT pWinSta)
|
||||||
for (i = 0; i < pWinSta->cNumClipFormats; ++i)
|
for (i = 0; i < pWinSta->cNumClipFormats; ++i)
|
||||||
{
|
{
|
||||||
pElement = &pWinSta->pClipBase[i];
|
pElement = &pWinSta->pClipBase[i];
|
||||||
IntFreeElementData(pElement);
|
IntFreeElementData(pElement);
|
||||||
}
|
}
|
||||||
|
|
||||||
if(pWinSta->pClipBase)
|
if (pWinSta->pClipBase)
|
||||||
ExFreePoolWithTag(pWinSta->pClipBase, USERTAG_CLIPBOARD);
|
ExFreePoolWithTag(pWinSta->pClipBase, USERTAG_CLIPBOARD);
|
||||||
|
|
||||||
pWinSta->pClipBase = NULL;
|
pWinSta->pClipBase = NULL;
|
||||||
pWinSta->cNumClipFormats = 0;
|
pWinSta->cNumClipFormats = 0;
|
||||||
}
|
}
|
||||||
|
@ -413,7 +414,7 @@ UserEnumClipboardFormats(UINT fmt)
|
||||||
}
|
}
|
||||||
|
|
||||||
cleanup:
|
cleanup:
|
||||||
if(pWinStaObj)
|
if (pWinStaObj)
|
||||||
ObDereferenceObject(pWinStaObj);
|
ObDereferenceObject(pWinStaObj);
|
||||||
|
|
||||||
return Ret;
|
return Ret;
|
||||||
|
@ -569,10 +570,10 @@ NtUserChangeClipboardChain(HWND hWndRemove, HWND hWndNewNext)
|
||||||
|
|
||||||
if (pWindowRemove && pWinStaObj->spwndClipViewer)
|
if (pWindowRemove && pWinStaObj->spwndClipViewer)
|
||||||
{
|
{
|
||||||
if(pWindowRemove == pWinStaObj->spwndClipViewer)
|
if (pWindowRemove == pWinStaObj->spwndClipViewer)
|
||||||
pWinStaObj->spwndClipViewer = UserGetWindowObject(hWndNewNext);
|
pWinStaObj->spwndClipViewer = UserGetWindowObject(hWndNewNext);
|
||||||
|
|
||||||
if(pWinStaObj->spwndClipViewer)
|
if (pWinStaObj->spwndClipViewer)
|
||||||
bRet = (BOOL)co_IntSendMessage(pWinStaObj->spwndClipViewer->head.h, WM_CHANGECBCHAIN, (WPARAM)hWndRemove, (LPARAM)hWndNewNext);
|
bRet = (BOOL)co_IntSendMessage(pWinStaObj->spwndClipViewer->head.h, WM_CHANGECBCHAIN, (WPARAM)hWndRemove, (LPARAM)hWndNewNext);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -730,7 +731,7 @@ NtUserGetClipboardViewer(VOID)
|
||||||
UserEnterShared();
|
UserEnterShared();
|
||||||
|
|
||||||
pWinStaObj = IntGetWinStaForCbAccess();
|
pWinStaObj = IntGetWinStaForCbAccess();
|
||||||
if(!pWinStaObj)
|
if (!pWinStaObj)
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
|
|
||||||
if (pWinStaObj->spwndClipViewer)
|
if (pWinStaObj->spwndClipViewer)
|
||||||
|
@ -911,7 +912,7 @@ NtUserGetClipboardData(UINT fmt, PGETCLIPBDATA pgcd)
|
||||||
_SEH2_END;
|
_SEH2_END;
|
||||||
|
|
||||||
cleanup:
|
cleanup:
|
||||||
if(pWinStaObj)
|
if (pWinStaObj)
|
||||||
ObDereferenceObject(pWinStaObj);
|
ObDereferenceObject(pWinStaObj);
|
||||||
|
|
||||||
UserLeave();
|
UserLeave();
|
||||||
|
@ -976,7 +977,7 @@ UserSetClipboardData(UINT fmt, HANDLE hData, PSETCLIPBDATA scd)
|
||||||
cleanup:
|
cleanup:
|
||||||
TRACE("NtUserSetClipboardData returns: %p\n", hRet);
|
TRACE("NtUserSetClipboardData returns: %p\n", hRet);
|
||||||
|
|
||||||
if(pWinStaObj)
|
if (pWinStaObj)
|
||||||
ObDereferenceObject(pWinStaObj);
|
ObDereferenceObject(pWinStaObj);
|
||||||
|
|
||||||
return hRet;
|
return hRet;
|
||||||
|
@ -1041,7 +1042,7 @@ NtUserSetClipboardViewer(HWND hWndNewViewer)
|
||||||
pWinStaObj->spwndClipViewer = pWindow;
|
pWinStaObj->spwndClipViewer = pWindow;
|
||||||
|
|
||||||
cleanup:
|
cleanup:
|
||||||
if(pWinStaObj)
|
if (pWinStaObj)
|
||||||
ObDereferenceObject(pWinStaObj);
|
ObDereferenceObject(pWinStaObj);
|
||||||
|
|
||||||
UserLeave();
|
UserLeave();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue