Eric Pouech : dbghelp: Set correct basic types definition.
Alexandre Julliard
julliard at winehq.org
Fri May 13 15:45:13 CDT 2022
Module: wine
Branch: master
Commit: 5aa9340c3d12ebf42cf4b9f8a170c55e00c48338
URL: https://source.winehq.org/git/wine.git/?a=commit;h=5aa9340c3d12ebf42cf4b9f8a170c55e00c48338
Author: Eric Pouech <eric.pouech at gmail.com>
Date: Tue May 10 17:11:08 2022 +0200
dbghelp: Set correct basic types definition.
Signed-off-by: Eric Pouech <eric.pouech at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/dbghelp/msc.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/dlls/dbghelp/msc.c b/dlls/dbghelp/msc.c
index 64d520c2b37..5b45c474160 100644
--- a/dlls/dbghelp/msc.c
+++ b/dlls/dbghelp/msc.c
@@ -158,13 +158,13 @@ static void codeview_init_basic_types(struct module* module)
cv_basic_types[T_NOTYPE] = NULL;
cv_basic_types[T_ABS] = NULL;
cv_basic_types[T_VOID] = &symt_get_basic(btVoid, 0)->symt; /* void */
- cv_basic_types[T_CHAR] = &symt_get_basic(btChar, 1)->symt; /* char */
+ cv_basic_types[T_CHAR] = &symt_get_basic(btInt, 1)->symt; /* signed char (and char in C) */
cv_basic_types[T_SHORT] = &symt_get_basic(btInt, 2)->symt; /* short int */
- cv_basic_types[T_LONG] = &symt_get_basic(btInt, 4)->symt; /* long int */
+ cv_basic_types[T_LONG] = &symt_get_basic(btLong, 4)->symt; /* long int */
cv_basic_types[T_QUAD] = &symt_get_basic(btInt, 8)->symt; /* long long int */
cv_basic_types[T_UCHAR] = &symt_get_basic(btUInt, 1)->symt; /* unsigned char */
cv_basic_types[T_USHORT] = &symt_get_basic(btUInt, 2)->symt; /* unsigned short */
- cv_basic_types[T_ULONG] = &symt_get_basic(btUInt, 4)->symt; /* unsigned long */
+ cv_basic_types[T_ULONG] = &symt_get_basic(btULong, 4)->symt; /* unsigned long */
cv_basic_types[T_UQUAD] = &symt_get_basic(btUInt, 8)->symt; /* unsigned long long */
cv_basic_types[T_BOOL08] = &symt_get_basic(btBool, 1)->symt; /* BOOL08 */
cv_basic_types[T_BOOL16] = &symt_get_basic(btBool, 2)->symt; /* BOOL16 */
@@ -173,7 +173,7 @@ static void codeview_init_basic_types(struct module* module)
cv_basic_types[T_REAL32] = &symt_get_basic(btFloat, 4)->symt; /* float */
cv_basic_types[T_REAL64] = &symt_get_basic(btFloat, 8)->symt; /* double */
cv_basic_types[T_REAL80] = &symt_get_basic(btFloat, 10)->symt; /* long double */
- cv_basic_types[T_RCHAR] = &symt_get_basic(btInt, 1)->symt; /* signed char */
+ cv_basic_types[T_RCHAR] = &symt_get_basic(btChar, 1)->symt; /* "real" char (char in C++) */
cv_basic_types[T_WCHAR] = &symt_get_basic(btWChar, 2)->symt; /* char8_t */
cv_basic_types[T_CHAR16] = &symt_get_basic(btChar16, 2)->symt; /* char16_t */
cv_basic_types[T_CHAR32] = &symt_get_basic(btChar32, 4)->symt; /* char32_t */
More information about the wine-cvs
mailing list