SourceForge has been redesigned. Learn more.
Close

#259 Incorrect function declaration

Known_bugs
closed-fixed
2004-10-26
2003-01-13
No

function ExInterlockedInsertTailList declared as:

NTOSAPI
PLIST_ENTRY
DDKFASTAPI
ExInterlockedInsertTailList(
IN PLIST_ENTRY ListHead,
IN PLIST_ENTRY ListEntry,
IN PKSPIN_LOCK Lock);

It's incorrect. ntoskrnl.exe exports two functions:
ExInterlockedInsertTailList - stdcall
ExfInterlockedInsertTailList - fastcall

I suggest to change function
ExInterlockedInsertTailList definition to
NTOSAPI
PLIST_ENTRY
DDKAPI
ExInterlockedInsertTailList(
IN PLIST_ENTRY ListHead,
IN PLIST_ENTRY ListEntry,
IN PKSPIN_LOCK Lock);

or define a marco
#define ExInterlockedInsertTailList
ExfInterlockedInsertTailList

same thing to functions
ExInterlockedAddUlong
ExInterlockedInsertHeadList
ExInterlockedRemoveHeadList
ExInterlockedPopEntryList
ExInterlockedPushEntryList

Discussion

  • Earnie Boyd

    Earnie Boyd - 2004-02-14

    Logged In: YES
    user_id=15438

    Casper,

    What do you think about Konstantin's analysis?

    Earnie

     
  • Earnie Boyd

    Earnie Boyd - 2004-02-14
    • assigned_to: earnie --> chorns
     
  • Danny Smith

    Danny Smith - 2004-10-26
    • status: open --> closed-fixed
     
  • Danny Smith

    Danny Smith - 2004-10-26

    Logged In: YES
    user_id=11494

    Fixed in CVS.
    Danny

     

Log in to post a comment.