mcuee / libusbk

libusbk official github repo
79 stars 37 forks source link

fix _tWinMain return #18

Closed leo-3D closed 4 years ago

leo-3D commented 4 years ago

fix _tWinMain return also fixed output to console and StdOut and suppressed warning

_tWinMain was missing return statement and executable returned random error code (713 happened to be in EAX) Also it was also writing output to console only. Added writing to StdOut if it is open (good for pipe-ing) Also OutputDebugStringW was polluting now only in _DEBUG And suppressed warning for deprecated Win32 API (irrelevant)