mirror of
https://github.com/autc04/Retro68.git
synced 2024-12-27 23:31:44 +00:00
fix test case ZeroInitialized: need InitWindows before GetNextEvent
This commit is contained in:
parent
799bf4c4ac
commit
16b73a78be
@ -1,5 +1,7 @@
|
||||
#include "Test.h"
|
||||
#include <Events.h>
|
||||
#include <Quickdraw.h>
|
||||
#include <Windows.h>
|
||||
|
||||
int zeroInitedArray[32768];
|
||||
int commonSymbol;
|
||||
@ -28,7 +30,15 @@ int main()
|
||||
}
|
||||
zeroInitedArray[i] = 42;
|
||||
}
|
||||
|
||||
// Initialize some of the Macintosh Toolbox
|
||||
// and maybe trigger a context switch, so we can be sure
|
||||
// our global variables were put in the right placce.
|
||||
InitGraf(&qd.thePort);
|
||||
InitFonts();
|
||||
InitWindows();
|
||||
GetNextEvent(everyEvent, &e);
|
||||
|
||||
for(i = 0; i < 32768; i++)
|
||||
{
|
||||
if(zeroInitedArray[i] != 42)
|
||||
|
Loading…
Reference in New Issue
Block a user