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
6f8b296f
Commit
6f8b296f
authored
Aug 27, 2007
by
Juan Lang
Committed by
Alexandre Julliard
Aug 28, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wintrust: Move mem alloc functions to wintrust_main.c.
parent
92de4384
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
43 additions
and
12 deletions
+43
-12
register.c
dlls/wintrust/register.c
+1
-11
wintrust_main.c
dlls/wintrust/wintrust_main.c
+17
-1
wintrust_priv.h
dlls/wintrust/wintrust_priv.h
+25
-0
No files found.
dlls/wintrust/register.c
View file @
6f8b296f
...
...
@@ -31,7 +31,7 @@
#include "wintrust.h"
#include "softpub.h"
#include "mssip.h"
#include "wintrust_priv.h"
#include "wine/debug.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
wintrust
);
...
...
@@ -812,16 +812,6 @@ error_close_key:
return
Func
;
}
static
void
*
WINAPI
WINTRUST_Alloc
(
DWORD
cb
)
{
return
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
cb
);
}
static
void
WINAPI
WINTRUST_Free
(
void
*
p
)
{
HeapFree
(
GetProcessHeap
(),
0
,
p
);
}
/***********************************************************************
* WintrustLoadFunctionPointers (WINTRUST.@)
*/
...
...
dlls/wintrust/wintrust_main.c
View file @
6f8b296f
...
...
@@ -29,7 +29,7 @@
#include "softpub.h"
#include "mscat.h"
#include "objbase.h"
#include "wintrust_priv.h"
#include "wine/debug.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
wintrust
);
...
...
@@ -214,3 +214,19 @@ BOOL WINAPI WintrustSetRegPolicyFlags( DWORD dwPolicyFlags)
if
(
r
)
SetLastError
(
r
);
return
r
==
ERROR_SUCCESS
;
}
/* Utility functions */
void
*
WINAPI
WINTRUST_Alloc
(
DWORD
cb
)
{
return
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
cb
);
}
void
*
WINAPI
WINTRUST_ReAlloc
(
void
*
ptr
,
DWORD
cb
)
{
return
HeapReAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
ptr
,
cb
);
}
void
WINAPI
WINTRUST_Free
(
void
*
p
)
{
HeapFree
(
GetProcessHeap
(),
0
,
p
);
}
dlls/wintrust/wintrust_priv.h
0 → 100644
View file @
6f8b296f
/*
* Copyright 2007 Juan Lang
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#ifndef __WINTRUST_PRIV_H__
#define __WINTRUST_PRIV_H__
void
*
WINAPI
WINTRUST_Alloc
(
DWORD
cb
);
void
*
WINAPI
WINTRUST_ReAlloc
(
void
*
ptr
,
DWORD
cb
);
void
WINAPI
WINTRUST_Free
(
void
*
p
);
#endif
/* ndef __WINTRUST_PRIV_H__ */
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