Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
619bbe5d
Commit
619bbe5d
authored
Oct 17, 2013
by
Jacek Caban
Committed by
Alexandre Julliard
Oct 17, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
crypt32: Get rid of no longer needed BASE_CONTEXT.
parent
83026a71
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
8 deletions
+5
-8
context.c
dlls/crypt32/context.c
+3
-6
crypt32_private.h
dlls/crypt32/crypt32_private.h
+2
-2
No files found.
dlls/crypt32/context.c
View file @
619bbe5d
...
...
@@ -25,14 +25,11 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
context
);
#define CONTEXT_FROM_BASE_CONTEXT(p) (void*)(p+1)
#define BASE_CONTEXT_FROM_CONTEXT(p) ((BASE_CONTEXT*)(p)-1)
void
*
Context_CreateDataContext
(
size_t
contextSize
,
const
context_vtbl_t
*
vtbl
)
{
BASE_CONTEXT
*
context
;
context_t
*
context
;
context
=
CryptMemAlloc
(
contextSize
+
sizeof
(
BASE_CONTEXT
)
);
context
=
CryptMemAlloc
(
sizeof
(
context_t
)
+
contextSize
);
if
(
!
context
)
return
NULL
;
...
...
@@ -47,7 +44,7 @@ void *Context_CreateDataContext(size_t contextSize, const context_vtbl_t *vtbl)
}
TRACE
(
"returning %p
\n
"
,
context
);
return
CONTEXT_FROM_BASE_CONTEXT
(
context
);
return
context_ptr
(
context
);
}
context_t
*
Context_CreateLinkContext
(
unsigned
int
contextSize
,
context_t
*
linked
)
...
...
dlls/crypt32/crypt32_private.h
View file @
619bbe5d
...
...
@@ -171,7 +171,7 @@ typedef struct {
struct
_context_t
*
(
*
clone
)(
context_t
*
,
struct
WINE_CRYPTCERTSTORE
*
,
BOOL
);
}
context_vtbl_t
;
typedef
struct
_context_t
{
struct
_context_t
{
const
context_vtbl_t
*
vtbl
;
LONG
ref
;
struct
_context_t
*
linked
;
...
...
@@ -180,7 +180,7 @@ typedef struct _context_t {
struct
list
entry
;
void
*
ptr
;
}
u
;
}
BASE_CONTEXT
;
};
static
inline
context_t
*
context_from_ptr
(
const
void
*
ptr
)
{
...
...
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