]> git.saurik.com Git - wxWidgets.git/commit
Fix _tputenv() return value test in wxSetEnv().
authorVadim Zeitlin <vadim@wxwidgets.org>
Thu, 27 Sep 2012 13:58:26 +0000 (13:58 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Thu, 27 Sep 2012 13:58:26 +0000 (13:58 +0000)
commitd993c262a153f0035370122337838a3d747acc51
tree05b1007ed7c78187dda59ae720dad8dfd0983877
parent6c51ca3750d48a276ae05aaa8b0a62e653dc277d
Fix _tputenv() return value test in wxSetEnv().

_tputenv() returns -1, not 0, on error, as all the other CRT functions, so the
test added by r72496 resulted in wxSetEnv() and wxUnsetEnv() always failing
when using MSVC.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72564 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
src/msw/utils.cpp