ddraw/tests: LONG/ULONG and error checking fixes.