[prev in list] [next in list] [prev in thread] [next in thread]
List: wine-devel
Subject: [PATCH 10/13 v2] msvcp90: Add implementation of _Concurrent_vector_Internal_swap.
From: Hua Meng <161220092 () smail ! nju ! edu ! cn>
Date: 2018-07-31 15:17:59
Message-ID: 26bacfdd-c730-1b6b-09fd-fb9dc9f3fc03 () smail ! nju ! edu ! cn+6C38575D95633DDB
[Download RAW message or body]
Signed-off-by: Hua meng <161220092@smail.nju.edu.cn>
---
dlls/msvcp90/misc.c | 14 ++++++++++++--
1 file changed, 12 insertions(+), 2 deletions(-)
diff --git a/dlls/msvcp90/misc.c b/dlls/msvcp90/misc.c
index 24488b41e0..d84af851c7 100644
--- a/dlls/msvcp90/misc.c
+++ b/dlls/msvcp90/misc.c
@@ -2184,9 +2184,19 @@ void __thiscall _Concurrent_vector_base_v4__Internal_resize(
/* ?_Internal_swap@_Concurrent_vector_base_v4@details@Concurrency@@IEAAXAEAV123@@Z */
DEFINE_THISCALL_WRAPPER(_Concurrent_vector_base_v4__Internal_swap, 8)
void __thiscall _Concurrent_vector_base_v4__Internal_swap(
- _Concurrent_vector_base_v4 *this, const _Concurrent_vector_base_v4 *v)
+ _Concurrent_vector_base_v4 *this, _Concurrent_vector_base_v4 *v)
{
- FIXME("(%p %p) stub\n", this, v);
+ _Concurrent_vector_base_v4 temp;
+
+ TRACE("(%p %p)\n", this, v);
+
+ temp = *this;
+ *this = *v;
+ *v = temp;
+ if(v->segment == this->storage)
+ v->segment = v->storage;
+ if(this->segment == v->storage)
+ this->segment = this->storage;
}
#endif
--
2.11.0
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic