]> granicus.if.org Git - curl/commit
Windows native IDN fixes.
authorGuenter Knauf <lists@gknw.net>
Tue, 19 Apr 2011 15:13:09 +0000 (17:13 +0200)
committerGuenter Knauf <lists@gknw.net>
Tue, 19 Apr 2011 15:13:09 +0000 (17:13 +0200)
commit519bec7c916d2062249838d42a20ed7fb6ed9119
tree799cbe2388698328f00452cd1518adc0bdd3db18
parent24e5a40156b0dda012d3ff940a49d9fef4524bdc
Windows native IDN fixes.

changed windows.h include to system header;
changed obsolete 2nd check for str_w to str_utf8 in order to catch
malloc() failure and avoid a free(NULL);
changed calls to GetLastError() to void to kill unsused var compiler
warnings;
moved one call to GetLastError() into else case so that its only
called when WideCharToMultiByte() really fails.
lib/idn_win32.c