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
bd43bb53
Commit
bd43bb53
authored
Sep 19, 2022
by
Piotr Caban
Committed by
Alexandre Julliard
Sep 19, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcp90: Fix indentation in concurrent_vector_alloc_segment function.
parent
6d2a9af4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
34 additions
and
30 deletions
+34
-30
details.c
dlls/concrt140/details.c
+17
-15
details.c
dlls/msvcp90/details.c
+17
-15
No files found.
dlls/concrt140/details.c
View file @
bd43bb53
...
...
@@ -479,24 +479,26 @@ static void concurrent_vector_alloc_segment(_Concurrent_vector_base_v4 *this,
spin_wait
(
&
spin
);
if
(
!
InterlockedCompareExchangeSizeT
((
this
->
segment
+
seg
),
SEGMENT_ALLOC_MARKER
,
0
))
__TRY
{
if
(
seg
==
0
)
this
->
segment
[
seg
]
=
this
->
allocator
(
this
,
element_size
*
(
1
<<
this
->
first_block
));
else
if
(
seg
<
this
->
first_block
)
this
->
segment
[
seg
]
=
(
BYTE
**
)
this
->
segment
[
0
]
__TRY
{
if
(
seg
==
0
)
this
->
segment
[
seg
]
=
this
->
allocator
(
this
,
element_size
*
(
1
<<
this
->
first_block
));
else
if
(
seg
<
this
->
first_block
)
this
->
segment
[
seg
]
=
(
BYTE
**
)
this
->
segment
[
0
]
+
element_size
*
(
1
<<
seg
);
else
this
->
segment
[
seg
]
=
this
->
allocator
(
this
,
element_size
*
(
1
<<
seg
));
else
this
->
segment
[
seg
]
=
this
->
allocator
(
this
,
element_size
*
(
1
<<
seg
));
}
__EXCEPT_ALL
{
this
->
segment
[
seg
]
=
NULL
;
_CxxThrowException
(
NULL
,
NULL
);
}
__ENDTRY
if
(
!
this
->
segment
[
seg
])
_vector_base_v4__Internal_throw_exception
(
this
,
2
);
}
__EXCEPT_ALL
{
this
->
segment
[
seg
]
=
NULL
;
_CxxThrowException
(
NULL
,
NULL
);
}
__ENDTRY
if
(
!
this
->
segment
[
seg
])
_vector_base_v4__Internal_throw_exception
(
this
,
2
);
}
}
...
...
dlls/msvcp90/details.c
View file @
bd43bb53
...
...
@@ -493,24 +493,26 @@ static void concurrent_vector_alloc_segment(_Concurrent_vector_base_v4 *this,
spin_wait
(
&
spin
);
if
(
!
InterlockedCompareExchangeSizeT
((
this
->
segment
+
seg
),
SEGMENT_ALLOC_MARKER
,
0
))
__TRY
{
if
(
seg
==
0
)
this
->
segment
[
seg
]
=
this
->
allocator
(
this
,
element_size
*
(
1
<<
this
->
first_block
));
else
if
(
seg
<
this
->
first_block
)
this
->
segment
[
seg
]
=
(
BYTE
**
)
this
->
segment
[
0
]
__TRY
{
if
(
seg
==
0
)
this
->
segment
[
seg
]
=
this
->
allocator
(
this
,
element_size
*
(
1
<<
this
->
first_block
));
else
if
(
seg
<
this
->
first_block
)
this
->
segment
[
seg
]
=
(
BYTE
**
)
this
->
segment
[
0
]
+
element_size
*
(
1
<<
seg
);
else
this
->
segment
[
seg
]
=
this
->
allocator
(
this
,
element_size
*
(
1
<<
seg
));
else
this
->
segment
[
seg
]
=
this
->
allocator
(
this
,
element_size
*
(
1
<<
seg
));
}
__EXCEPT_ALL
{
this
->
segment
[
seg
]
=
NULL
;
_CxxThrowException
(
NULL
,
NULL
);
}
__ENDTRY
if
(
!
this
->
segment
[
seg
])
_vector_base_v4__Internal_throw_exception
(
this
,
2
);
}
__EXCEPT_ALL
{
this
->
segment
[
seg
]
=
NULL
;
_CxxThrowException
(
NULL
,
NULL
);
}
__ENDTRY
if
(
!
this
->
segment
[
seg
])
_vector_base_v4__Internal_throw_exception
(
this
,
2
);
}
}
...
...
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