Kaydet (Commit) 9a4a84df authored tarafından Thomas Arnhold's avatar Thomas Arnhold

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
üst e77f18f4
......@@ -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());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment