Hi,
there is a small bug in the ResText utility that prevents DLGTEMPLATE to
be converted correctly.
The definition of the DLGTEMPLATE structure (taken from the MSDN) is:
typedef struct {
DWORD style;
DWORD dwExtendedStyle;
WORD cdit;
short x;
short y;
short cx;
short cy;
} DLGTEMPLATE, *LPDLGTEMPLATE;
and the style parameter was already parsed in the
CountMemReplaceDialogResource. The original code tried to reparse the
style parameter after the dwExtendedStyle parameter.
I encountered the bug when I tried to modify a resource DLL that was
build with Visual Studio 6. But I do not expect that the definition of
the structure has changed in Visual Studio 7.1.
Best regards
Dirk
Index: C:/src/tortoiseSVN/src/ResText/ResModule.cpp
===================================================================
--- C:/src/tortoiseSVN/src/ResText/ResModule.cpp (revision 5619)
+++ C:/src/tortoiseSVN/src/ResText/ResModule.cpp (working copy)
@@ -959,15 +959,15 @@
{
newDialog[(*wordcount)++] = GET_WORD(res++); //exStyle
newDialog[(*wordcount)++] = GET_WORD(res++); //exStyle
- style = GET_DWORD(res);
- newDialog[(*wordcount)++] = GET_WORD(res++); //style
- newDialog[(*wordcount)++] = GET_WORD(res++); //style
+// style = GET_DWORD(res);
+// newDialog[(*wordcount)++] = GET_WORD(res++); //style
+// newDialog[(*wordcount)++] = GET_WORD(res++); //style
} // if (newDialog)
else
{
- res += 4;
- style = GET_DWORD(res);
- (*wordcount) += 4;
+ res += 2;
+// style = GET_DWORD(res);
+ (*wordcount) += 2;
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: users-help@tortoisesvn.tigris.org
Received on Fri Feb 3 20:35:26 2006