summaryrefslogtreecommitdiff
path: root/extensions
diff options
context:
space:
mode:
Diffstat (limited to 'extensions')
-rw-r--r--extensions/source/ole/unoobjw.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/extensions/source/ole/unoobjw.cxx b/extensions/source/ole/unoobjw.cxx
index aa160fa1141a..ca31169b1b6f 100644
--- a/extensions/source/ole/unoobjw.cxx
+++ b/extensions/source/ole/unoobjw.cxx
@@ -2069,7 +2069,7 @@ public:
ULONG nReturned = 0;
while (nLeft > 0)
{
- if (mnIndex >= mxCollection->getCount())
+ if (mnIndex > mxCollection->getCount())
{
SAL_INFO("extensions.olebridge", this << "@CXEnumVariant::Next(" << celt << "): got " << nReturned << ": S_FALSE");
return S_FALSE;
@@ -2104,7 +2104,7 @@ public:
ULONG nSkipped = 0;
while (celt > 0)
{
- if (mnIndex >= mxCollection->getCount())
+ if (mnIndex > mxCollection->getCount())
{
SAL_INFO("extensions.olebridge", this << "@CXEnumVariant::Skip(" << celt << "): skipped " << nSkipped << ": S_FALSE");
return S_FALSE;