Fix MinGW compilation error with min()

This commit is contained in:
Tor Lillqvist 2011-09-02 08:44:38 +03:00
parent 581e7d7057
commit 893c6785a9

View file

@ -523,7 +523,7 @@ void MyTestPlugInImpl::initialize( CPPUNIT_NS::TestFactoryRegistry *,
psia=GetSidIdentifierAuthority(pSid);
/* obtain sidsubauthority count */
dwSubAuthorities=min(*GetSidSubAuthorityCount(pSid), 5);
dwSubAuthorities=std::min((int) *GetSidSubAuthorityCount(pSid), 5);
/* buffer length: S-SID_REVISION- + identifierauthority- + subauthorities- + NULL */
Ident=(sal_Char * )malloc(88*sizeof(sal_Char));