comparison C++/Socket.cpp @ 260:2096edb63a4f

Socket: fix Windows
author David Demelier <markand@malikania.fr>
date Sun, 05 Oct 2014 13:13:08 +0200
parents 0b3fcc5ed8eb
children 05f0a3e09cbf
comparison
equal deleted inserted replaced
259:0b3fcc5ed8eb 260:2096edb63a4f
81 MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT), 81 MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT),
82 (LPSTR)&str, 0, NULL); 82 (LPSTR)&str, 0, NULL);
83 83
84 84
85 if (str) { 85 if (str) {
86 errmsg = string(str); 86 errmsg = std::string(str);
87 LocalFree(str); 87 LocalFree(str);
88 } 88 }
89 89
90 return errmsg; 90 return errmsg;
91 } 91 }