Piotr Caban : msvcp90: Fix stringbuf and strstreambuf seekpos implementation.

Alexandre Julliard julliard at wine.codeweavers.com
Fri Jul 31 17:25:55 CDT 2015


Module: wine
Branch: master
Commit: b3fe96a0a9748c71a24fe0393fd964f0fb2f4ff4
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=b3fe96a0a9748c71a24fe0393fd964f0fb2f4ff4

Author: Piotr Caban <piotr at codeweavers.com>
Date:   Fri Jul 31 18:36:05 2015 +0200

msvcp90: Fix stringbuf and strstreambuf seekpos implementation.

---

 dlls/msvcp60/ios.c | 6 +++---
 dlls/msvcp90/ios.c | 6 +++---
 2 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/dlls/msvcp60/ios.c b/dlls/msvcp60/ios.c
index ff3ddd9..f5dabbf 100644
--- a/dlls/msvcp60/ios.c
+++ b/dlls/msvcp60/ios.c
@@ -4214,7 +4214,7 @@ fpos_int* __thiscall basic_stringbuf_char_seekpos(basic_stringbuf_char *this,
         return ret;
     }
 
-    return basic_stringbuf_char_seekoff(this, ret, pos.off, SEEKDIR_beg, mode);
+    return basic_stringbuf_char_seekoff(this, ret, pos.pos+pos.off, SEEKDIR_beg, mode);
 }
 
 /* ?str@?$basic_stringbuf at DU?$char_traits at D@std@@V?$allocator at D@2@@std@@QAEXABV?$basic_string at DU?$char_traits at D@std@@V?$allocator at D@2@@2@@Z */
@@ -4635,7 +4635,7 @@ fpos_int* __thiscall basic_stringbuf_wchar_seekpos(basic_stringbuf_wchar *this,
         return ret;
     }
 
-    return basic_stringbuf_wchar_seekoff(this, ret, pos.off, SEEKDIR_beg, mode);
+    return basic_stringbuf_wchar_seekoff(this, ret, pos.pos+pos.off, SEEKDIR_beg, mode);
 }
 
 /* ?str@?$basic_stringbuf at _WU?$char_traits at _W@std@@V?$allocator at _W@2@@std@@QAEXABV?$basic_string at _WU?$char_traits at _W@std@@V?$allocator at _W@2@@2@@Z */
@@ -13382,7 +13382,7 @@ fpos_int* __thiscall strstreambuf_seekpos(strstreambuf *this, fpos_int *ret, fpo
         return ret;
     }
 
-    return strstreambuf_seekoff(this, ret, pos.off, SEEKDIR_beg, mode);
+    return strstreambuf_seekoff(this, ret, pos.pos+pos.off, SEEKDIR_beg, mode);
 }
 
 /* ?underflow at strstreambuf@std@@MAEHXZ */
diff --git a/dlls/msvcp90/ios.c b/dlls/msvcp90/ios.c
index 53c1089..c3477a4 100644
--- a/dlls/msvcp90/ios.c
+++ b/dlls/msvcp90/ios.c
@@ -4350,7 +4350,7 @@ fpos_int* __thiscall basic_stringbuf_char_seekpos(basic_stringbuf_char *this,
         return ret;
     }
 
-    return basic_stringbuf_char_seekoff(this, ret, pos.off, SEEKDIR_beg, mode);
+    return basic_stringbuf_char_seekoff(this, ret, pos.pos+pos.off, SEEKDIR_beg, mode);
 }
 
 /* ?str@?$basic_stringbuf at DU?$char_traits at D@std@@V?$allocator at D@2@@std@@QAEXABV?$basic_string at DU?$char_traits at D@std@@V?$allocator at D@2@@2@@Z */
@@ -4771,7 +4771,7 @@ fpos_int* __thiscall basic_stringbuf_wchar_seekpos(basic_stringbuf_wchar *this,
         return ret;
     }
 
-    return basic_stringbuf_wchar_seekoff(this, ret, pos.off, SEEKDIR_beg, mode);
+    return basic_stringbuf_wchar_seekoff(this, ret, pos.pos+pos.off, SEEKDIR_beg, mode);
 }
 
 /* ?str@?$basic_stringbuf at _WU?$char_traits at _W@std@@V?$allocator at _W@2@@std@@QAEXABV?$basic_string at _WU?$char_traits at _W@std@@V?$allocator at _W@2@@2@@Z */
@@ -13954,7 +13954,7 @@ fpos_int* __thiscall strstreambuf_seekpos(strstreambuf *this, fpos_int *ret, fpo
         return ret;
     }
 
-    return strstreambuf_seekoff(this, ret, pos.off, SEEKDIR_beg, mode);
+    return strstreambuf_seekoff(this, ret, pos.pos+pos.off, SEEKDIR_beg, mode);
 }
 
 /* ?underflow at strstreambuf@std@@MAEHXZ */




More information about the wine-cvs mailing list