]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/sockets/client.cpp
Artwork replacement (c) Julian Smart
[wxWidgets.git] / samples / sockets / client.cpp
index c7c4e9da75be22adbb7680a878f1a95c38cb75a6..7e47be6c1788d0b784092a338b066a8b1644d6b2 100644 (file)
@@ -290,7 +290,7 @@ void MyFrame::OnOpenConnection(wxCommandEvent& WXUNUSED(event))
   //
   // Connect(addr, false) will issue a nonblocking connection request
   // and return immediately. If the return value is true, then the
-  // connection has been already succesfully established. If it is
+  // connection has been already successfully established. If it is
   // false, you must wait for the request to complete, either with
   // WaitOnConnect() or by watching wxSOCKET_CONNECTION / LOST
   // events (please read the documentation).
@@ -585,7 +585,7 @@ void MyFrame::OnTestURL(wxCommandEvent& WXUNUSED(event))
   wxYield();
 
   // Get the data
-  wxFile fileTest(wxT("test.url"));
+  wxFile fileTest(wxT("test.url"), wxFile::write);
   wxFileOutputStream sout(fileTest);
   if (!sout.Ok())
   {