summaryrefslogtreecommitdiff
path: root/shell/source/win32/shlxthandler/ooofilt/ooofilt.cxx
diff options
context:
space:
mode:
authorDirk Voelzke <dv@openoffice.org>2010-08-13 15:25:54 +0200
committerDirk Voelzke <dv@openoffice.org>2010-08-13 15:25:54 +0200
commit444d54e41c545f42705da35d2b87e03400eb6883 (patch)
tree3cc101b437174216ac32f291395e367b1ad7e389 /shell/source/win32/shlxthandler/ooofilt/ooofilt.cxx
parente794eb3b50d14d86f9e24cb598b3c6b16a096005 (diff)
dv20:#i95454# Use GetShortName to avoid problems with char versus wchar
Diffstat (limited to 'shell/source/win32/shlxthandler/ooofilt/ooofilt.cxx')
-rwxr-xr-xshell/source/win32/shlxthandler/ooofilt/ooofilt.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/shell/source/win32/shlxthandler/ooofilt/ooofilt.cxx b/shell/source/win32/shlxthandler/ooofilt/ooofilt.cxx
index 89b0cc435d..07e1b06137 100755
--- a/shell/source/win32/shlxthandler/ooofilt/ooofilt.cxx
+++ b/shell/source/win32/shlxthandler/ooofilt/ooofilt.cxx
@@ -657,7 +657,8 @@ SCODE STDMETHODCALLTYPE COooFilter::IsDirty()
SCODE STDMETHODCALLTYPE COooFilter::Load(LPCWSTR pszFileName, DWORD /*dwMode*/)
{
// Load just sets the filename for GetChunk to read and ignores the mode
- m_pwszFileName = pszFileName;
+ m_pwszFileName = getShortPathName( pszFileName );
+
// Open the file previously specified in call to IPersistFile::Load and get content.
try
{