Removed C99-ism.
Added zeroing of DEVMODE.