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
f2e48c25
Commit
f2e48c25
authored
Feb 27, 2016
by
Sebastian Lackner
Committed by
Alexandre Julliard
Feb 29, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oleaut32: Set DebugInfo for static CRITICAL_SECTION structure.
Signed-off-by:
Sebastian Lackner
<
sebastian@fds-team.de
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
870628fd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
4 deletions
+12
-4
variant.c
dlls/oleaut32/variant.c
+12
-4
No files found.
dlls/oleaut32/variant.c
View file @
f2e48c25
...
...
@@ -45,6 +45,15 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
variant
);
static
CRITICAL_SECTION
cache_cs
;
static
CRITICAL_SECTION_DEBUG
critsect_debug
=
{
0
,
0
,
&
cache_cs
,
{
&
critsect_debug
.
ProcessLocksList
,
&
critsect_debug
.
ProcessLocksList
},
0
,
0
,
{
(
DWORD_PTR
)(
__FILE__
": cache_cs"
)
}
};
static
CRITICAL_SECTION
cache_cs
=
{
&
critsect_debug
,
-
1
,
0
,
0
,
0
,
0
};
/* Convert a variant from one type to another */
static
inline
HRESULT
VARIANT_Coerce
(
VARIANTARG
*
pd
,
LCID
lcid
,
USHORT
wFlags
,
VARIANTARG
*
ps
,
VARTYPE
vt
)
...
...
@@ -1490,7 +1499,6 @@ HRESULT WINAPI VarUdateFromDate(DATE dateIn, ULONG dwFlags, UDATE *lpUdate)
static
void
VARIANT_GetLocalisedNumberChars
(
VARIANT_NUMBER_CHARS
*
lpChars
,
LCID
lcid
,
DWORD
dwFlags
)
{
static
const
VARIANT_NUMBER_CHARS
defaultChars
=
{
'-'
,
'+'
,
'.'
,
','
,
'$'
,
0
,
'.'
,
','
};
static
CRITICAL_SECTION
csLastChars
=
{
NULL
,
-
1
,
0
,
0
,
0
,
0
};
static
VARIANT_NUMBER_CHARS
lastChars
;
static
LCID
lastLcid
=
-
1
;
static
DWORD
lastFlags
=
0
;
...
...
@@ -1498,14 +1506,14 @@ static void VARIANT_GetLocalisedNumberChars(VARIANT_NUMBER_CHARS *lpChars, LCID
WCHAR
buff
[
4
];
/* To make caching thread-safe, a critical section is needed */
EnterCriticalSection
(
&
c
sLastChar
s
);
EnterCriticalSection
(
&
c
ache_c
s
);
/* Asking for default locale entries is very expensive: It is a registry
server call. So cache one locally, as Microsoft does it too */
if
(
lcid
==
lastLcid
&&
dwFlags
==
lastFlags
)
{
memcpy
(
lpChars
,
&
lastChars
,
sizeof
(
defaultChars
));
LeaveCriticalSection
(
&
c
sLastChar
s
);
LeaveCriticalSection
(
&
c
ache_c
s
);
return
;
}
...
...
@@ -1532,7 +1540,7 @@ static void VARIANT_GetLocalisedNumberChars(VARIANT_NUMBER_CHARS *lpChars, LCID
memcpy
(
&
lastChars
,
lpChars
,
sizeof
(
defaultChars
));
lastLcid
=
lcid
;
lastFlags
=
dwFlags
;
LeaveCriticalSection
(
&
c
sLastChar
s
);
LeaveCriticalSection
(
&
c
ache_c
s
);
}
/* Number Parsing States */
...
...
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