0ed05f6458
Added check for if fgCreateWindow cannot allocate a window, it will produce an error.
Added check for if fgCreateWindow cannot allocate a window, it will produce an error.