Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(98)

Unified Diff: runtime/bin/socket_base_win.cc

Issue 2803793002: Removed duplicate variable definitions in socket_unsupport and socket_base_unsupported. (Closed)
Patch Set: Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | runtime/bin/socket_unsupported.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/socket_base_win.cc
diff --git a/runtime/bin/socket_base_win.cc b/runtime/bin/socket_base_win.cc
index 27448a3838637563d83ec396466255c6f7f2bfc3..c96025350e7f76d603cd29ca35829d7d762a394f 100644
--- a/runtime/bin/socket_base_win.cc
+++ b/runtime/bin/socket_base_win.cc
@@ -174,7 +174,8 @@ intptr_t SocketBase::GetStdioHandle(intptr_t num) {
if (handle == INVALID_HANDLE_VALUE) {
return -1;
}
- StdHandle* std_handle = new StdHandle(handle);
+ StdHandle* std_handle = StdHandle::Stdin(handle);
+ std_handle->Retain();
std_handle->MarkDoesNotSupportOverlappedIO();
std_handle->EnsureInitialized(EventHandler::delegate());
return reinterpret_cast<intptr_t>(std_handle);
« no previous file with comments | « no previous file | runtime/bin/socket_unsupported.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698