FIX: DWORD Local Variables Use Wrong Offset in MASM (68945)
The information in this article applies to:
- Microsoft Macro Assembler (MASM) 5.1
This article was previously published under Q68945 SYMPTOMS
When using the LOCAL directive in the Microsoft Macro Assembler (MASM)
version 5.1 to declare stack space for a DWORD variable, the offset that is
generated for the variable is [BP-2]. This may result in the saved value of
the BP register to be overwritten when a value is stored in the DWORD local
variable.
STATUS
Microsoft has confirmed this to be a problem in MASM version 5.1. This
problem was corrected in version 5.1a.
Modification Type: | Major | Last Reviewed: | 10/17/2003 |
---|
Keywords: | kbfix KB68945 |
---|
|