Ignore:
Timestamp:
11/14/2008 12:39:26 PM (4 years ago)
Author:
lowjoel
Message:

Don't use unsafe in this context.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eraser6/Eraser/SchedulerPanel.cs

    r497 r565  
    434434        [DllImport("User32.dll")] 
    435435        private static extern UIntPtr SendMessage(IntPtr HWND, uint Message, 
    436             UIntPtr wParam, IntPtr lParam); 
     436            UIntPtr wParam, out Rect lParam); 
    437437 
    438438        private struct Rect 
     
    444444        }; 
    445445 
    446         private unsafe Rectangle GetSubItemRect(int index, int subItemIndex) 
     446        private Rectangle GetSubItemRect(int index, int subItemIndex) 
    447447        { 
    448448            Rect pRect = new Rect(); 
    449449            pRect.top = subItemIndex; 
    450450            pRect.left = 0; //LVIR_BOUNDS 
    451             SendMessage(scheduler.Handle, 0x1000 + 56, (UIntPtr)index, (IntPtr)(&pRect)); 
     451            SendMessage(scheduler.Handle, 0x1000 + 56, (UIntPtr)index, out pRect); 
    452452 
    453453            return new Rectangle(pRect.left, pRect.top, pRect.right - pRect.left, 
Note: See TracChangeset for help on using the changeset viewer.