VirtualBox

Changeset 41647 in vbox


Ignore:
Timestamp:
Jun 11, 2012 12:09:52 PM (12 years ago)
Author:
vboxsync
Message:

VBoxGuest: Build fix.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/common/VBoxGuest/VBoxGuest-win.cpp

    r41643 r41647  
    855855            }
    856856
     857            VBoxGuestMouseSetNotifyCallback *pInfo = (VBoxGuestMouseSetNotifyCallback*)pvBuf;
     858
     859            /* we need a lock here to avoid concurrency with the set event functionality */
    857860            KIRQL OldIrql;
    858             VBoxGuestMouseSetNotifyCallback *pInfo = (VBoxGuestMouseSetNotifyCallback*)pvBuf;
    859             /* we need a lock here to avoid concurrency with the set event functionality */
    860861            KeAcquireSpinLock(&pDevExt->win.s.MouseEventAccessLock, &OldIrql);
    861             pDevExt->win.s.pfnMouseNotify =  pInfo->pfnNotify;
    862             pDevExt->win.s.pvMouseNotify =  pInfo->pvNotify;
     862            pDevExt->MouseNotifyCallback = *pInfo;
    863863            KeReleaseSpinLock(&pDevExt->win.s.MouseEventAccessLock, OldIrql);
    864864
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette