Prototype Affinity setting from code.

Seems to work, but needs an .ini setting.
Fix the crash bug?

Seems like the error return is actually false.
Possible fix for launch crashes.

CreateSwapChain seemed to be returning some sort of bogus error, malformed.  If I simply ignore that error and return S_OK, I no longer get a crash.
Fix CreateSwapChain error check.

When creating the real CreatSwapChain the code would look for only S_OK, but there are legitimate >0 return result as DXGISTATUS.

Changed to check for !FAILED(HR) instead, which will allow the status results through, and thus not return NULL pointer for the ppSwapChain.
Fix all error handling in CreateSwapChain calls.

Multiple instances of checking for S_OK, when it's possible to get a non-zero status result back.  Changed to check for SUCCEEDED instead.

In d3d11, CreateDeviceAndSwapChain, there was a similar check, modified to only exit on FAILED, allowing status results to continue.

Also noticed an error check bug where copy/paste of wrapper needed to be wrapper2, so error logging would have been missed.
Merge branch 'master' for error handling fixes.