Piotr Caban : msvcp90: Don't define empty structure.
Alexandre Julliard
julliard at winehq.org
Tue Nov 15 13:17:34 CST 2011
Module: wine
Branch: master
Commit: 9b60ef7e12ceef342a4da99705f956f4f5fd4b05
URL: http://source.winehq.org/git/wine.git/?a=commit;h=9b60ef7e12ceef342a4da99705f956f4f5fd4b05
Author: Piotr Caban <piotr at codeweavers.com>
Date: Tue Nov 15 14:33:00 2011 +0100
msvcp90: Don't define empty structure.
---
dlls/msvcp90/string.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/dlls/msvcp90/string.c b/dlls/msvcp90/string.c
index 2dd9f52..6460f02 100644
--- a/dlls/msvcp90/string.c
+++ b/dlls/msvcp90/string.c
@@ -49,6 +49,7 @@ typedef struct {
/* allocator class */
typedef struct {
+ char empty_struct;
} allocator;
/* char_traits<char> */
@@ -652,7 +653,7 @@ MSVCP_size_t __cdecl MSVCP_basic_string_char_Pdif(String_iterator_char i1, Strin
DEFINE_THISCALL_WRAPPER_RETPTR(basic_string_char_get_allocator, 4)
allocator __thiscall basic_string_char_get_allocator(const basic_string_char *this)
{
- allocator ret;
+ allocator ret = {0};
TRACE("%p\n", this);
return ret;
}
@@ -2316,7 +2317,7 @@ MSVCP_size_t __cdecl MSVCP_basic_string_wchar_Pdif(String_iterator_wchar i1, Str
DEFINE_THISCALL_WRAPPER(basic_string_wchar_get_allocator, 4)
allocator __thiscall basic_string_wchar_get_allocator(const basic_string_wchar *this)
{
- allocator ret;
+ allocator ret = {0};
TRACE("%p\n", this);
return ret;
}
More information about the wine-cvs
mailing list