VirtualBox

Changeset 90880 in vbox for trunk/src


Ignore:
Timestamp:
Aug 25, 2021 1:14:57 PM (3 years ago)
Author:
vboxsync
Message:

IPRT/RTKrnlModLoadedQueryInfoAll: Fixed regression from r146424.

Location:
trunk/src/VBox/Runtime/r3
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r3/darwin/krnlmod-darwin.cpp

    r90789 r90880  
    229229                                        uint32_t *pcEntries)
    230230{
    231     AssertPtrReturn(pahKrnlModInfo, VERR_INVALID_POINTER);
    232     AssertReturn(cEntriesMax == 0, VERR_INVALID_PARAMETER);
     231    if (cEntriesMax > 0)
     232        AssertPtrReturn(pahKrnlModInfo, VERR_INVALID_POINTER);
    233233
    234234    int rc = VINF_SUCCESS;
  • trunk/src/VBox/Runtime/r3/linux/krnlmod-linux.cpp

    r90789 r90880  
    196196                                        uint32_t *pcEntries)
    197197{
    198     AssertPtrReturn(pahKrnlModInfo, VERR_INVALID_POINTER);
    199     AssertReturn(cEntriesMax == 0, VERR_INVALID_PARAMETER);
     198    if (cEntriesMax > 0)
     199        AssertPtrReturn(pahKrnlModInfo, VERR_INVALID_POINTER);
    200200
    201201    uint32_t cKmodsLoaded = RTKrnlModLoadedGetCount();
  • trunk/src/VBox/Runtime/r3/solaris/krnlmod-solaris.cpp

    r90789 r90880  
    196196                                        uint32_t *pcEntries)
    197197{
    198     AssertPtrReturn(pahKrnlModInfo, VERR_INVALID_POINTER);
    199     AssertReturn(cEntriesMax == 0, VERR_INVALID_PARAMETER);
     198    if (cEntriesMax > 0)
     199        AssertPtrReturn(pahKrnlModInfo, VERR_INVALID_POINTER);
    200200
    201201    uint32_t cKmodsLoaded = RTKrnlModLoadedGetCount();
  • trunk/src/VBox/Runtime/r3/win/krnlmod-win.cpp

    r90789 r90880  
    186186                                        uint32_t *pcEntries)
    187187{
    188     AssertPtrReturn(pahKrnlModInfo, VERR_INVALID_POINTER);
    189     AssertReturn(cEntriesMax == 0, VERR_INVALID_PARAMETER);
     188    if (cEntriesMax > 0)
     189        AssertPtrReturn(pahKrnlModInfo, VERR_INVALID_POINTER);
    190190
    191191    PRTL_PROCESS_MODULES pKrnlMods = NULL;
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