summaryrefslogtreecommitdiff
path: root/shell
diff options
context:
space:
mode:
authortono <tono@openoffice.org>2010-03-05 19:15:20 +0900
committertono <tono@openoffice.org>2010-03-05 19:15:20 +0900
commit56e56223d23f0ccf5a5ff714387aaf38b38c7304 (patch)
tree5cca98b6666151cb33190d09745ca4b842b8918a /shell
parent31d45baf9132d2a588e13d9042943532c24a9716 (diff)
i#109673: Mingw port fix: new Windows property handler
Diffstat (limited to 'shell')
-rwxr-xr-xshell/source/win32/shlxthandler/makefile.mk10
-rwxr-xr-xshell/source/win32/shlxthandler/ooofilt/makefile.mk7
-rwxr-xr-xshell/source/win32/shlxthandler/prophdl/makefile.mk6
-rwxr-xr-xshell/source/win32/shlxthandler/prophdl/propertyhdl.cxx4
4 files changed, 22 insertions, 5 deletions
diff --git a/shell/source/win32/shlxthandler/makefile.mk b/shell/source/win32/shlxthandler/makefile.mk
index 0c2abb405b..4452cb1a90 100755
--- a/shell/source/win32/shlxthandler/makefile.mk
+++ b/shell/source/win32/shlxthandler/makefile.mk
@@ -75,8 +75,14 @@ SHL1STDLIBS+=\
$(SHELL32LIB)\
$(KERNEL32LIB)\
$(GDI32LIB)\
- $(GDIPLUSLIB)\
- msvcprt.lib \
+ $(GDIPLUSLIB)
+
+.IF "$(COM)"!="GCC"
+SHL1STDLIBS+=\
+ msvcprt.lib
+.ENDIF
+
+SHL1STDLIBS+=\
$(SHLWAPILIB)
SHL1LIBS+=$(SLB)$/util.lib\
diff --git a/shell/source/win32/shlxthandler/ooofilt/makefile.mk b/shell/source/win32/shlxthandler/ooofilt/makefile.mk
index 0d2a40e147..9111069ab8 100755
--- a/shell/source/win32/shlxthandler/ooofilt/makefile.mk
+++ b/shell/source/win32/shlxthandler/ooofilt/makefile.mk
@@ -73,12 +73,15 @@ SHL1STDLIBS+=$(OLE32LIB)\
$(UUIDLIB)\
$(SHELL32LIB)\
$(KERNEL32LIB)\
- $(OLDNAMESLIB)\
- msvcprt.lib
+ $(OLDNAMESLIB)
+
+.IF "$(COM)"!="GCC"
+SHL1STDLIBS+=msvcprt.lib
.IF "$(PRODUCT)"!="full"
SHL1STDLIBS+=msvcrt.lib
.ENDIF
+.ENDIF
# $(LIBSTLPORTST)
diff --git a/shell/source/win32/shlxthandler/prophdl/makefile.mk b/shell/source/win32/shlxthandler/prophdl/makefile.mk
index 572dcb9385..dc6d0e1590 100755
--- a/shell/source/win32/shlxthandler/prophdl/makefile.mk
+++ b/shell/source/win32/shlxthandler/prophdl/makefile.mk
@@ -73,12 +73,16 @@ SHL1STDLIBS+=\
$(GDI32LIB)\
$(GDIPLUSLIB)\
$(SHLWAPILIB)\
- $(PROPSYSLIB) \
+ $(PROPSYSLIB)
+
+.IF "$(COM)"!="GCC"
+SHL1STDLIBS+=\
msvcprt.lib
.IF "$(PRODUCT)"!="full"
SHL1STDLIBS+=msvcrt.lib
.ENDIF
+.ENDIF
SHL1LIBS+=$(SLB)$/util.lib\
$(SLB)$/ooofilereader.lib
diff --git a/shell/source/win32/shlxthandler/prophdl/propertyhdl.cxx b/shell/source/win32/shlxthandler/prophdl/propertyhdl.cxx
index cbe4638658..cb5d7e2627 100755
--- a/shell/source/win32/shlxthandler/prophdl/propertyhdl.cxx
+++ b/shell/source/win32/shlxthandler/prophdl/propertyhdl.cxx
@@ -222,7 +222,11 @@ HRESULT STDMETHODCALLTYPE CPropertyHdl::Initialize( IStream *pStream, DWORD grfM
if ( !m_pCache )
{
+#ifdef __MINGW32__
+ if ( FAILED( PSCreateMemoryPropertyStore( IID_IPropertyStoreCache, reinterpret_cast<void**>(&m_pCache) ) ) )
+#else
if ( FAILED( PSCreateMemoryPropertyStore( IID_PPV_ARGS( &m_pCache ) ) ) )
+#endif
OutputDebugStringFormat( "CPropertyHdl::Initialize: PSCreateMemoryPropertyStore failed" );
zlib_filefunc_def z_filefunc;