Commit fecafa1c authored by kollo's avatar kollo

bugfix in xbvm (Alans Issue 2018-02-05) 2nd try

The issue was discovered on WINDOWS version with pull-down menues, which use callbacks, but also was present in linux.
parent bc9d6f61
......@@ -189,6 +189,8 @@ static int loadbcprg(char *filename) {
char *adr=bcpc.pointer=malloc(len+1);
bload(filename,bcpc.pointer,len);
bcpc.len=len;
programbufferlen=bcpc.len;
programbuffer=bcpc.pointer;
if(verbose) printf("%s loaded (%d Bytes)\n",filename,bcpc.len);
// memdump(bcpc.pointer,32);
......@@ -283,6 +285,9 @@ int main(int anzahl, char *argumente[]) {
#endif
}
bytecode_init(bcpc.pointer);
programbufferlen=bcpc.len;
programbuffer=bcpc.pointer;
doit(bcpc);
} else {
printf("ERROR: Something is wrong, no code!\n");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment