Fix memory trashing bug.

This occurred because a global with structure type was declared without the structure definition in scope. ORCA/C allows this, and just treats the struct variable as having size 0. As a result, it effectively shares the storage of whatever comes after it in the OMF file, leading to memory trashing.
This commit is contained in:
Stephen Heumann
2017-04-02 00:55:27 -05:00
parent 9720f37531
commit 1bd953dd40
2 changed files with 4 additions and 0 deletions

View File

@@ -1,3 +1,5 @@
#pragma noroot
#include "atipmapping.h"
struct ATIPMapping atipMapping;