Author: pborobia
Date: Fri Sep 1 10:57:03 2006
New Revision: 23859
URL:
http://svn.reactos.org/svn/reactos?rev=23859&view=rev
Log:
* Removed check for GDI handle (crash), should work, tested on Windows.
Modified:
branches/clipboard/dll/win32/user32/windows/clipboard.c
Modified: branches/clipboard/dll/win32/user32/windows/clipboard.c
URL:
http://svn.reactos.org/svn/reactos/branches/clipboard/dll/win32/user32/wind…
==============================================================================
--- branches/clipboard/dll/win32/user32/windows/clipboard.c (original)
+++ branches/clipboard/dll/win32/user32/windows/clipboard.c Fri Sep 1 10:57:03 2006
@@ -312,22 +312,24 @@
if (uFormat == CF_BITMAP)
{
+ /* GlobalLock should return 0 for GDI handles
pMem = GlobalLock(hMem);
if (pMem)
{
- /* not a GDI handle */
+ // not a GDI handle
GlobalUnlock(hMem);
return ret;
}
else
{
+ */
/* check if this GDI handle is a HBITMAP */
/* GetObject for HBITMAP not implemented in ReactOS */
//if (GetObject(hMem, 0, NULL) == sifeof(BITMAP))
//{
return NtUserSetClipboardData(CF_BITMAP, hMem, 0);
//}
- }
+ /*}*/
}
size = GlobalSize(hMem);
@@ -337,7 +339,7 @@
{
size = GlobalSize(hMem);
ret = NtUserSetClipboardData(uFormat, pMem, size);
- //sholud i unlock hMem?
+ //should i unlock hMem?
GlobalUnlock(hMem);
}
else