Fix for a crash which happened because:
commit7b056231cea8f81f3d6c5014ad39a06a020fc31a
authormazze <mazze@fb15a70f-31f2-0310-bbcc-cdcc74a49acc>
Thu, 26 Jan 2012 20:43:43 +0000 (26 20:43 +0000)
committermazze <mazze@fb15a70f-31f2-0310-bbcc-cdcc74a49acc>
Thu, 26 Jan 2012 20:43:43 +0000 (26 20:43 +0000)
treeef20d41af33374802d4497ef4e892f32bc63312e
parent6b32d37bb00a4d8ec871170c9532f05d878b5c64
Fix for a crash which happened because:

Scalos patches in EMU mode the functions
AddAppIconA()
AddAppMenuItemA()
AddAppWindowA()
RemoveAppIcon()
RemoveAppMenuItem()
RemoveAppWindow()

The first 3 functions return a Scalos specific structure [1] which was NOT compatible with AROS.
Scalos calls unpatched AddAppWindowDropZoneA() which causes crashes because of different
offsets of the structure elements.

This fix:
- changes the AROS specific AppXXX structures so that the elements till the object pointer have
  the same offsets
- adds a APTR Dummy[3] at a place where Scalos has some private fields to avoid interference.

[1] struct AppObject in
    https://sourceforge.net/p/scalos/code/904/tree/trunk/main/scalos_structures.h

git-svn-id: https://svn.aros.org/svn/aros/trunk/AROS@43725 fb15a70f-31f2-0310-bbcc-cdcc74a49acc
workbench/libs/workbench/workbench_intern.h