case PSPCB_RELEASE:
{
DestroySecurityPage(sp);
- UnregisterCheckListControl();
return FALSE;
}
}
MAKEINTRESOURCE(IDB_USRGRPIMAGES),
16,
3,
- 0);
+ RGB(255,
+ 0,
+ 255));
/* setup the listview control */
- ListView_SetExtendedListViewStyleEx(sp->hWndPrincipalsList,
- LVS_EX_FULLROWSELECT,
- LVS_EX_FULLROWSELECT);
- ListView_SetImageList(sp->hWndPrincipalsList,
- sp->hiPrincipals,
- LVSIL_SMALL);
+ if (sp->hiPrincipals != NULL)
+ {
+ ListView_SetExtendedListViewStyleEx(sp->hWndPrincipalsList,
+ LVS_EX_FULLROWSELECT,
+ LVS_EX_FULLROWSELECT);
+ ListView_SetImageList(sp->hWndPrincipalsList,
+ sp->hiPrincipals,
+ LVSIL_SMALL);
+ }
GetClientRect(sp->hWndPrincipalsList,
&rcLvClient);
return NULL;
}
- if (!RegisterCheckListControl(hDllInstance))
- {
- DPRINT("Registering the CHECKLIST_ACLUI class failed!\n");
- return NULL;
- }
-
sPage = HeapAlloc(GetProcessHeap(),
HEAP_ZERO_MEMORY,
sizeof(SECURITY_PAGE));
{
case DLL_PROCESS_ATTACH:
hDllInstance = hinstDLL;
+
+ DisableThreadLibraryCalls(hinstDLL);
+
+ if (!RegisterCheckListControl(hinstDLL))
+ {
+ DPRINT("Registering the CHECKLIST_ACLUI class failed!\n");
+ return FALSE;
+ }
break;
- case DLL_THREAD_ATTACH:
- case DLL_THREAD_DETACH:
+
case DLL_PROCESS_DETACH:
+ UnregisterCheckListControl();
break;
}
+
return TRUE;
}