summaryrefslogtreecommitdiff
path: root/sw/source/ui/uno/swdetect.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/ui/uno/swdetect.cxx')
-rw-r--r--sw/source/ui/uno/swdetect.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/ui/uno/swdetect.cxx b/sw/source/ui/uno/swdetect.cxx
index 9f6abf4248b8..765bd86a3f31 100644
--- a/sw/source/ui/uno/swdetect.cxx
+++ b/sw/source/ui/uno/swdetect.cxx
@@ -70,7 +70,7 @@ OUString SAL_CALL SwFilterDetect::detect( Sequence< PropertyValue >& lDescriptor
pInStrm->Seek( STREAM_SEEK_TO_BEGIN );
const sal_uInt8 nBufSize = 3;
sal_uInt8 nBuffer[ nBufSize ];
- if ( pInStrm->Read( nBuffer, nBufSize ) < nBufSize )
+ if (pInStrm->ReadBytes(nBuffer, nBufSize) < nBufSize)
return OUString();
bIsDetected = (nBuffer[0] == 0x9B && nBuffer[1] == 0xA5 && nBuffer[2] == 0x21) // WinWord 1