VirtualBox

Changeset 102299 in vbox


Ignore:
Timestamp:
Nov 27, 2023 10:06:50 AM (12 months ago)
Author:
vboxsync
Message:

Additions/WINNT/Mouse: do not try to remove device from list if it is not in the list

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/WINNT/Mouse/NT5/VBoxMFInternal.cpp

    r99739 r102299  
    192192    KeAcquireSpinLock(&g_ctx.SyncLock, &Irql);
    193193
    194     RemoveEntryList(&pDevExt->ListEntry);
     194    /* Do not try to remove the device from the list if it was never added. */
     195    if (pDevExt->ListEntry.Flink && pDevExt->ListEntry.Blink)
     196        RemoveEntryList(&pDevExt->ListEntry);
    195197
    196198    /* Check if the PS/2 mouse is being removed. Usually never happens. */
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