diff --git a/filter/source/msfilter/msocximex.cxx b/filter/source/msfilter/msocximex.cxx index d78dc81..308bc44 100644 --- a/filter/source/msfilter/msocximex.cxx +++ b/filter/source/msfilter/msocximex.cxx @@ -78,6 +78,7 @@ #include #include #include +#include #include #include @@ -938,7 +939,7 @@ public: if ( bDefaultProg ) pS->Read( pDefaultProg, sizeof( pDefaultProg ) ); - sal_Int32 nNumIds = sizeof( ClsidList ) / sizeof( ClsidList[0] ); + sal_Int32 nNumIds = SAL_N_ELEMENTS( ClsidList ); if ( bClsID ) {