diff options
author | Thomas Arnhold <thomas@arnhold.org> | 2013-10-31 19:45:02 +0100 |
---|---|---|
committer | Thomas Arnhold <thomas@arnhold.org> | 2013-10-31 19:46:59 +0100 |
commit | 9a4a84df5406cdcde1f4d23a1cea2b109998f35b (patch) | |
tree | 8af360e92fff78ed655b8135c523a438e0e26f90 /vcl | |
parent | e77f18f4975bb731f8445cacfff7609a5fe2d7a9 (diff) |
Windows: SHARDAPPIDINFO since 0x0600
This requires at least Windows 7 / Windows Server 2008.
Otherwise it won't compile under WinXP.
http://msdn.microsoft.com/en-us/library/windows/desktop/dd391556
Change-Id: I984e8bc1e9dc80a9c8bf236be9af3cffabcabd05
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/win/source/app/salinst.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/vcl/win/source/app/salinst.cxx b/vcl/win/source/app/salinst.cxx index 22917e81800c..cb19f87115a5 100644 --- a/vcl/win/source/app/salinst.cxx +++ b/vcl/win/source/app/salinst.cxx @@ -1044,6 +1044,7 @@ void WinSalInstance::AddToRecentDocumentList(const OUString& rFileUrl, const OUS if (osl::FileBase::E_None == rc) { +#if WINVER >= 0x0600 if ( aSalShlData.mbW7 ) { typedef HRESULT ( WINAPI *SHCREATEITEMFROMPARSINGNAME )( PCWSTR, IBindCtx*, REFIID, void **ppv ); @@ -1102,6 +1103,9 @@ void WinSalInstance::AddToRecentDocumentList(const OUString& rFileUrl, const OUS } } } +#else + (void) rDocumentService; +#endif } // For whatever reason, we could not use the SHARD_APPIDINFO semantics SHAddToRecentDocs(SHARD_PATHW, (PCWSTR) system_path.getStr()); |