Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
9aa0e35e
Commit
9aa0e35e
authored
Feb 04, 2011
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cabinet: Call FCI function pointers explicitly instead of hiding them inside macros.
parent
e30b19f1
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
22 deletions
+10
-22
cabinet.h
dlls/cabinet/cabinet.h
+10
-22
fci.c
dlls/cabinet/fci.c
+0
-0
No files found.
dlls/cabinet/cabinet.h
View file @
9aa0e35e
...
...
@@ -311,16 +311,16 @@ typedef struct cds_forward {
typedef
struct
{
unsigned
int
FCI_Intmagic
;
PERF
perf
;
PFNFCIFILEPLACED
pfnfiledest
;
PFNFCIALLOC
pfn
alloc
;
PFNFCIFREE
pfn
free
;
PFNFCIOPEN
pfn
open
;
PFNFCIREAD
pfn
read
;
PFNFCIWRITE
pfn
write
;
PFNFCICLOSE
pfn
close
;
PFNFCISEEK
pfn
seek
;
PFNFCIDELETE
pfn
delete
;
PFNFCIGETTEMPFILE
pfnfcigtf
;
PFNFCIFILEPLACED
fileplaced
;
PFNFCIALLOC
alloc
;
PFNFCIFREE
free
;
PFNFCIOPEN
open
;
PFNFCIREAD
read
;
PFNFCIWRITE
write
;
PFNFCICLOSE
close
;
PFNFCISEEK
seek
;
PFNFCIDELETE
delete
;
PFNFCIGETTEMPFILE
gettemp
;
PCCAB
pccab
;
BOOL
fPrevCab
;
BOOL
fNextCab
;
...
...
@@ -378,18 +378,6 @@ typedef struct {
/* cast an HFDI into a PFDI_Int */
#define PFDI_INT(hfdi) ((PFDI_Int)(hfdi))
/* quick pfci method invokers */
#define PFCI_ALLOC(hfdi, size) ((*PFCI_INT(hfdi)->pfnalloc) (size))
#define PFCI_FREE(hfdi, ptr) ((*PFCI_INT(hfdi)->pfnfree) (ptr))
#define PFCI_GETTEMPFILE(hfci,name,length) ((*PFCI_INT(hfci)->pfnfcigtf)(name,length,PFCI_INT(hfci)->pv))
#define PFCI_DELETE(hfci,name,err,pv) ((*PFCI_INT(hfci)->pfndelete)(name,err,pv))
#define PFCI_OPEN(hfci,name,oflag,pmode,err,pv) ((*PFCI_INT(hfci)->pfnopen)(name,oflag,pmode,err,pv))
#define PFCI_READ(hfci,hf,memory,cb,err,pv)((*PFCI_INT(hfci)->pfnread)(hf,memory,cb,err,pv))
#define PFCI_WRITE(hfci,hf,memory,cb,err,pv) ((*PFCI_INT(hfci)->pfnwrite)(hf,memory,cb,err,pv))
#define PFCI_CLOSE(hfci,hf,err,pv) ((*PFCI_INT(hfci)->pfnclose)(hf,err,pv))
#define PFCI_SEEK(hfci,hf,dist,seektype,err,pv)((*PFCI_INT(hfci)->pfnseek)(hf,dist,seektype,err,pv))
#define PFCI_FILEPLACED(hfci,pccab,name,cb,cont,pv)((*PFCI_INT(hfci)->pfnfiledest)(pccab,name,cb,cont,pv))
/* quickie pfdi method invokers */
#define PFDI_ALLOC(hfdi, size) ((*PFDI_INT(hfdi)->pfnalloc) (size))
#define PFDI_FREE(hfdi, ptr) ((*PFDI_INT(hfdi)->pfnfree) (ptr))
...
...
dlls/cabinet/fci.c
View file @
9aa0e35e
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment