NWGetNSLoadedList does not work on NW 5.0 SP4, and NW5.1 for NSS volumes as documented. The documentation states that the return value is a WORD when it is in fact returning a LONG, thus overwriting the first 2 bytes of the original caller's stack.
Engineering is aware of the issue and is working on a fix.
Any trademarks referenced in this document are the property of their respective owners. Consult your product manuals for complete trademark information.