FIX: Using EXTERNDEF w/ a label May Work Incorrectly (85227)
The information in this article applies to:
- Microsoft Macro Assembler (MASM) 6.0
- Microsoft Macro Assembler (MASM) 6.0a
- Microsoft Macro Assembler (MASM) 6.0b
This article was previously published under Q85227 SYMPTOMS
In the Microsoft Macro Assembler (MASM) initializing a data structure
with the offset of a label declared with EXTERNDEF or PROTO can cause
incorrect results.
RESOLUTION
Use EXTERN to perform the same task as the EXTERNDEF; this method will
work properly. Also, instead of using OFFSET to initialize a WORD
field in the structure, use the label to initialize a NEAR PTR field.
STATUS
Microsoft has confirmed this to be a problem in MASM versions 6.0,
6.0a, and 6.0b. This problem was corrected in MASM for MS-DOS version
6.1.
Modification Type: | Major | Last Reviewed: | 10/20/2003 |
---|
Keywords: | kbfix KB85227 |
---|
|