From 7bff19ea6ea00345f1d96ef4f144a6c3bc81e8e3 Mon Sep 17 00:00:00 2001 From: Patrik Stridvall Date: Mon, 2 Dec 2002 19:00:59 +0000 Subject: [PATCH] Added FIXME:s in the stubs. --- dlls/cabinet/Makefile.in | 1 + dlls/cabinet/fci.c | 35 ++++++++++++++++++++++++++++++++--- dlls/cabinet/fdi.c | 35 ++++++++++++++++++++++++++++++++--- include/fci.h | 2 +- include/fdi.h | 2 +- 5 files changed, 67 insertions(+), 8 deletions(-) diff --git a/dlls/cabinet/Makefile.in b/dlls/cabinet/Makefile.in index c691de828c8..8740f226bce 100644 --- a/dlls/cabinet/Makefile.in +++ b/dlls/cabinet/Makefile.in @@ -3,6 +3,7 @@ TOPOBJDIR = ../.. SRCDIR = @srcdir@ VPATH = @srcdir@ MODULE = cabinet.dll +IMPORTS = kernel32 LDDLLFLAGS = @LDDLLFLAGS@ SYMBOLFILE = $(MODULE).tmp.o diff --git a/dlls/cabinet/fci.c b/dlls/cabinet/fci.c index ec3af3bddf4..1a64c44c4e2 100644 --- a/dlls/cabinet/fci.c +++ b/dlls/cabinet/fci.c @@ -21,6 +21,8 @@ #include "config.h" #include "windef.h" +#include "winbase.h" +#include "winerror.h" #include "fci.h" #include "wine/debug.h" @@ -45,6 +47,16 @@ HFCI __cdecl FCICreate( PCCAB pccab, void *pv) { + FIXME("(%p, %p, %p, %p, %p, %p, %p, %p, %p, %p, %p, %p, %p): stub\n", + perf, pfnfcifp, pfna, pfnf, pfnopen, pfnread, pfnwrite, pfnclose, + pfnseek, pfndelete, pfnfcigtf, pccab, pv); + + perf->erfOper = FCIERR_NONE; + perf->erfType = 0; + perf->fError = TRUE; + + SetLastError(ERROR_CALL_NOT_IMPLEMENTED); + return NULL; } @@ -61,6 +73,11 @@ BOOL __cdecl FCIAddFile( PFNFCIGETOPENINFO pfnfcigoi, TCOMP typeCompress) { + FIXME("(%p, %p, %p, %d, %p, %p, %p, %hu): stub\n", hfci, pszSourceFile, + pszFileName, fExecute, pfnfcignc, pfnfcis, pfnfcigoi, typeCompress); + + SetLastError(ERROR_CALL_NOT_IMPLEMENTED); + return FALSE; } @@ -73,7 +90,11 @@ BOOL __cdecl FCIFlushCabinet( PFNFCIGETNEXTCABINET pfnfcignc, PFNFCISTATUS pfnfcis) { - return FALSE; + FIXME("(%p, %d, %p, %p): stub\n", hfci, fGetNextCab, pfnfcignc, pfnfcis); + + SetLastError(ERROR_CALL_NOT_IMPLEMENTED); + + return FALSE; } /*********************************************************************** @@ -84,7 +105,11 @@ BOOL __cdecl FCIFlushFolder( PFNFCIGETNEXTCABINET pfnfcignc, PFNFCISTATUS pfnfcis) { - return FALSE; + FIXME("(%p, %p, %p): stub\n", hfci, pfnfcignc, pfnfcis); + + SetLastError(ERROR_CALL_NOT_IMPLEMENTED); + + return FALSE; } /*********************************************************************** @@ -92,5 +117,9 @@ BOOL __cdecl FCIFlushFolder( */ BOOL __cdecl FCIDestroy(HFCI hfci) { - return FALSE; + FIXME("(%p): stub\n", hfci); + + SetLastError(ERROR_CALL_NOT_IMPLEMENTED); + + return FALSE; } diff --git a/dlls/cabinet/fdi.c b/dlls/cabinet/fdi.c index fd98fcdcd91..bab31f0d957 100644 --- a/dlls/cabinet/fdi.c +++ b/dlls/cabinet/fdi.c @@ -21,6 +21,8 @@ #include "config.h" #include "windef.h" +#include "winbase.h" +#include "winerror.h" #include "fdi.h" #include "wine/debug.h" @@ -41,23 +43,37 @@ HFDI __cdecl FDICreate( int cpuType, PERF perf) { + FIXME("(%p, %p, %p, %p, %p, %p, %p, %d, %p): stub\n", + pfnalloc, pfnfree, pfnopen, pfnread, pfnwrite, pfnclose, pfnseek, + cpuType, perf); + + perf->erfOper = FDIERROR_NONE; + perf->erfType = 0; + perf->fError = TRUE; + + SetLastError(ERROR_CALL_NOT_IMPLEMENTED); + return NULL; } /*********************************************************************** - * FDICreate (CABINET.20) + * FDIIsCabinet (CABINET.21) */ BOOL __cdecl FDIIsCabinet( HFDI hfdi, INT_PTR hf, PFDICABINETINFO pfdici) { + FIXME("(%p, %d, %p): stub\n", hfdi, hf, pfdici); + + SetLastError(ERROR_CALL_NOT_IMPLEMENTED); + return FALSE; } /*********************************************************************** - * FDICreate (CABINET.20) + * FDICopy (CABINET.22) */ BOOL __cdecl FDICopy( HFDI hfdi, @@ -68,14 +84,23 @@ BOOL __cdecl FDICopy( PFNFDIDECRYPT pfnfdid, void *pvUser) { + FIXME("(%p, %p, %p, %d, %p, %p, %p): stub\n", + hfdi, pszCabinet, pszCabPath, flags, pfnfdin, pfnfdid, pvUser); + + SetLastError(ERROR_CALL_NOT_IMPLEMENTED); + return FALSE; } /*********************************************************************** - * FDICreate (CABINET.20) + * FDIDestroy (CABINET.23) */ BOOL __cdecl FDIDestroy(HFDI hfdi) { + FIXME("(%p): stub\n", hfdi); + + SetLastError(ERROR_CALL_NOT_IMPLEMENTED); + return FALSE; } @@ -87,5 +112,9 @@ BOOL __cdecl FDITruncateCabinet( char *pszCabinetName, USHORT iFolderToDelete) { + FIXME("(%p, %p, %hu): stub\n", hfdi, pszCabinetName, iFolderToDelete); + + SetLastError(ERROR_CALL_NOT_IMPLEMENTED); + return FALSE; } diff --git a/include/fci.h b/include/fci.h index 267e6ecae19..257baccba30 100644 --- a/include/fci.h +++ b/include/fci.h @@ -43,7 +43,7 @@ typedef struct { int erfOper; /* FCI/FDI error code - see {FCI,FDI}ERROR_XXX for details. */ int erfType; /* Optional error value filled in by FCI/FDI. */ BOOL fError; /* TRUE => error present */ -} ERF, PERF; +} ERF, *PERF; /**********************************************************************/ diff --git a/include/fdi.h b/include/fdi.h index f4f912ad4fd..b414bd5d915 100644 --- a/include/fdi.h +++ b/include/fdi.h @@ -43,7 +43,7 @@ typedef struct { int erfOper; /* FCI/FDI error code - see {FCI,FDI}ERROR_XXX for details. */ int erfType; /* Optional error value filled in by FCI/FDI. */ BOOL fError; /* TRUE => error present */ -} ERF, PERF; +} ERF, *PERF; /**********************************************************************/