Without duplicating it (I'm unable to), I would say the problem has to do with the data that you're unpacking.
Are you sure that $SubAuthorityCount contains the correct number?
In reply to Re: Win32 Tieregistry issue
by rrwo
in thread Win32 Tieregistry issue
by vlaero
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |