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
82a31d09
Commit
82a31d09
authored
May 24, 2007
by
Juan Lang
Committed by
Alexandre Julliard
May 25, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
crypt32: Statically initialize static lists and critical sections.
parent
8f7a5d63
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
18 deletions
+16
-18
oid.c
dlls/crypt32/oid.c
+16
-18
No files found.
dlls/crypt32/oid.c
View file @
82a31d09
...
@@ -37,14 +37,12 @@ WINE_DEFAULT_DEBUG_CHANNEL(crypt);
...
@@ -37,14 +37,12 @@ WINE_DEFAULT_DEBUG_CHANNEL(crypt);
static
const
WCHAR
DllW
[]
=
{
'D'
,
'l'
,
'l'
,
0
};
static
const
WCHAR
DllW
[]
=
{
'D'
,
'l'
,
'l'
,
0
};
static
void
init_function_sets
(
void
);
static
void
init_oid_info
(
HINSTANCE
hinst
);
static
void
init_oid_info
(
HINSTANCE
hinst
);
static
void
free_function_sets
(
void
);
static
void
free_function_sets
(
void
);
static
void
free_oid_info
(
void
);
static
void
free_oid_info
(
void
);
void
crypt_oid_init
(
HINSTANCE
hinst
)
void
crypt_oid_init
(
HINSTANCE
hinst
)
{
{
init_function_sets
();
init_oid_info
(
hinst
);
init_oid_info
(
hinst
);
}
}
...
@@ -55,7 +53,14 @@ void crypt_oid_free(void)
...
@@ -55,7 +53,14 @@ void crypt_oid_free(void)
}
}
static
CRITICAL_SECTION
funcSetCS
;
static
CRITICAL_SECTION
funcSetCS
;
static
struct
list
funcSets
;
static
CRITICAL_SECTION_DEBUG
funcSetCSDebug
=
{
0
,
0
,
&
funcSetCS
,
{
&
funcSetCSDebug
.
ProcessLocksList
,
&
funcSetCSDebug
.
ProcessLocksList
},
0
,
0
,
{
(
DWORD_PTR
)(
__FILE__
": funcSetCS"
)
}
};
static
CRITICAL_SECTION
funcSetCS
=
{
&
funcSetCSDebug
,
-
1
,
0
,
0
,
0
,
0
};
static
struct
list
funcSets
=
{
&
funcSets
,
&
funcSets
};
struct
OIDFunctionSet
struct
OIDFunctionSet
{
{
...
@@ -72,13 +77,6 @@ struct OIDFunction
...
@@ -72,13 +77,6 @@ struct OIDFunction
struct
list
next
;
struct
list
next
;
};
};
static
void
init_function_sets
(
void
)
{
InitializeCriticalSection
(
&
funcSetCS
);
funcSetCS
.
DebugInfo
->
Spare
[
0
]
=
(
DWORD_PTR
)(
__FILE__
": funcSetCS"
);
list_init
(
&
funcSets
);
}
static
void
free_function_sets
(
void
)
static
void
free_function_sets
(
void
)
{
{
struct
OIDFunctionSet
*
setCursor
,
*
setNext
;
struct
OIDFunctionSet
*
setCursor
,
*
setNext
;
...
@@ -100,8 +98,6 @@ static void free_function_sets(void)
...
@@ -100,8 +98,6 @@ static void free_function_sets(void)
DeleteCriticalSection
(
&
setCursor
->
cs
);
DeleteCriticalSection
(
&
setCursor
->
cs
);
CryptMemFree
(
setCursor
);
CryptMemFree
(
setCursor
);
}
}
funcSetCS
.
DebugInfo
->
Spare
[
0
]
=
0
;
DeleteCriticalSection
(
&
funcSetCS
);
}
}
/* There is no free function associated with this; therefore, the sets are
/* There is no free function associated with this; therefore, the sets are
...
@@ -849,7 +845,14 @@ LPCWSTR WINAPI CryptFindLocalizedName(LPCWSTR pwszCryptName)
...
@@ -849,7 +845,14 @@ LPCWSTR WINAPI CryptFindLocalizedName(LPCWSTR pwszCryptName)
}
}
static
CRITICAL_SECTION
oidInfoCS
;
static
CRITICAL_SECTION
oidInfoCS
;
static
struct
list
oidInfo
;
static
CRITICAL_SECTION_DEBUG
oidInfoCSDebug
=
{
0
,
0
,
&
oidInfoCS
,
{
&
oidInfoCSDebug
.
ProcessLocksList
,
&
oidInfoCSDebug
.
ProcessLocksList
},
0
,
0
,
{
(
DWORD_PTR
)(
__FILE__
": oidInfoCS"
)
}
};
static
CRITICAL_SECTION
oidInfoCS
=
{
&
oidInfoCSDebug
,
-
1
,
0
,
0
,
0
,
0
};
static
struct
list
oidInfo
=
{
&
oidInfo
,
&
oidInfo
};
static
const
WCHAR
tripledes
[]
=
{
'3'
,
'd'
,
'e'
,
's'
,
0
};
static
const
WCHAR
tripledes
[]
=
{
'3'
,
'd'
,
'e'
,
's'
,
0
};
static
const
WCHAR
cms3deswrap
[]
=
{
'C'
,
'M'
,
'S'
,
'3'
,
'D'
,
'E'
,
'S'
,
'w'
,
'r'
,
'a'
,
static
const
WCHAR
cms3deswrap
[]
=
{
'C'
,
'M'
,
'S'
,
'3'
,
'D'
,
'E'
,
'S'
,
'w'
,
'r'
,
'a'
,
...
@@ -1190,9 +1193,6 @@ static void init_oid_info(HINSTANCE hinst)
...
@@ -1190,9 +1193,6 @@ static void init_oid_info(HINSTANCE hinst)
{
{
DWORD
i
;
DWORD
i
;
InitializeCriticalSection
(
&
oidInfoCS
);
oidInfoCS
.
DebugInfo
->
Spare
[
0
]
=
(
DWORD_PTR
)(
__FILE__
": oidInfoCS"
);
list_init
(
&
oidInfo
);
for
(
i
=
0
;
i
<
sizeof
(
oidInfoConstructors
)
/
for
(
i
=
0
;
i
<
sizeof
(
oidInfoConstructors
)
/
sizeof
(
oidInfoConstructors
[
0
]);
i
++
)
sizeof
(
oidInfoConstructors
[
0
]);
i
++
)
{
{
...
@@ -1264,8 +1264,6 @@ static void free_oid_info(void)
...
@@ -1264,8 +1264,6 @@ static void free_oid_info(void)
list_remove
(
&
info
->
entry
);
list_remove
(
&
info
->
entry
);
CryptMemFree
(
info
);
CryptMemFree
(
info
);
}
}
oidInfoCS
.
DebugInfo
->
Spare
[
0
]
=
0
;
DeleteCriticalSection
(
&
oidInfoCS
);
}
}
/***********************************************************************
/***********************************************************************
...
...
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