Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

36 lines
547 B

  1. /*++
  2. Copyright (c) 1997-1999 Microsoft Corporation
  3. Module Name:
  4. MSPutils.cpp
  5. Abstract:
  6. data for msputils.h
  7. --*/
  8. #include "precomp.h"
  9. #pragma hdrstop
  10. #include "mspbase.h"
  11. #include "msputils.h"
  12. CMSPCritSection CMSPObjectSafetyImpl::s_CritSection;
  13. BOOL IsNodeOnList(PLIST_ENTRY ListHead, PLIST_ENTRY Entry)
  14. {
  15. PLIST_ENTRY pCurrent = ListHead;
  16. while(pCurrent->Flink != Entry)
  17. {
  18. pCurrent = pCurrent->Flink;
  19. if(pCurrent == 0)
  20. {
  21. return FALSE;
  22. }
  23. }
  24. return TRUE;
  25. }
  26. // eof