add (None) text when there are no token security attributes

git-svn-id: svn://svn.code.sf.net/p/processhacker/code@4801 21ef857c-d57f-4fe0-8362-d861dc6d29cd
This commit is contained in:
wj32
2011-11-06 07:17:48 +00:00
parent 33b5d47cba
commit 36ca654ae2
+5 -2
View File
@@ -1631,7 +1631,7 @@ BOOLEAN NTAPI PhpAttributeTreeNewCallback(
PATTRIBUTE_NODE PhpAddAttributeNode(
__in PATTRIBUTE_TREE_CONTEXT Context,
__in_opt PATTRIBUTE_NODE Parent,
__in_opt PPH_STRING Text
__in_opt __assumeRefs(1) PPH_STRING Text
)
{
PATTRIBUTE_NODE node;
@@ -1649,7 +1649,7 @@ PATTRIBUTE_NODE PhpAddAttributeNode(
else
PhAddItemList(Context->RootList, node);
PhSwapReference(&node->Text, Text);
PhSwapReference2(&node->Text, Text);
return node;
}
@@ -2039,6 +2039,9 @@ INT_PTR CALLBACK PhpTokenAttributesPageProc(
{
PhpInitializeAttributeTreeContext(&tokenPageContext->AuthzTreeContext, tnHandle);
PhpAddTokenAttributes(tokenPageContext, tnHandle);
if (tokenPageContext->AuthzTreeContext.RootList->Count == 0)
PhpAddAttributeNode(&tokenPageContext->AuthzTreeContext, NULL, PhCreateString(L"(None)"));
}
break;
case WM_DESTROY: