The MASM Forum

Projects => Rarely Used Projects => GoAsm => Topic started by: shankle on July 15, 2013, 10:01:52 PM

Title: not caught by compiler
Post by: shankle on July 15, 2013, 10:01:52 PM
WJR might or might not want to add something to catch this.....
 I coded this in error - invoke SetFilePointer, [hFile], [NULL],[NULL],File_Begin
GoAsm did not flag it as an error. Had to find it the hard way....
Obviously should be - invoke SetFilePointer, [hFile],NULL,NULL,File_Begin
Thought you might want to know
Title: Re: not caught by compiler
Post by: satpro on July 16, 2013, 10:33:00 PM
Hi Shankle,

Doesn't "NULL" just translate to a "zero" when compiling?  I would think that GoAsm was just following your instruction to invoke with two params containing the contents of address $0000000, and that it's not a bug at all, but just a crashed program?

Part of the joy of assembly... :biggrin: