From 061dccd27ffd85fd66f29dde32212400430c886d Mon Sep 17 00:00:00 2001 From: Julian Smart Date: Sun, 22 May 2005 14:52:06 +0000 Subject: [PATCH 1/1] Applied patch [ 1185150 ] Socket sample: writing to read-only file fails git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34258 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- samples/sockets/client.cpp | 2 +- samples/sockets/client.def | 8 -------- samples/sockets/server.def | 8 -------- 3 files changed, 1 insertion(+), 17 deletions(-) delete mode 100644 samples/sockets/client.def delete mode 100644 samples/sockets/server.def diff --git a/samples/sockets/client.cpp b/samples/sockets/client.cpp index c7c4e9da75..396d79a7d8 100644 --- a/samples/sockets/client.cpp +++ b/samples/sockets/client.cpp @@ -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()) { diff --git a/samples/sockets/client.def b/samples/sockets/client.def deleted file mode 100644 index 786b7d609a..0000000000 --- a/samples/sockets/client.def +++ /dev/null @@ -1,8 +0,0 @@ -NAME Client -DESCRIPTION 'Client' -EXETYPE WINDOWS -STUB 'WINSTUB.EXE' -CODE PRELOAD MOVEABLE DISCARDABLE -DATA PRELOAD MOVEABLE MULTIPLE -HEAPSIZE 1024 -STACKSIZE 8192 diff --git a/samples/sockets/server.def b/samples/sockets/server.def deleted file mode 100644 index 21027a5c01..0000000000 --- a/samples/sockets/server.def +++ /dev/null @@ -1,8 +0,0 @@ -NAME Server -DESCRIPTION 'Server' -EXETYPE WINDOWS -STUB 'WINSTUB.EXE' -CODE PRELOAD MOVEABLE DISCARDABLE -DATA PRELOAD MOVEABLE MULTIPLE -HEAPSIZE 4096 -STACKSIZE 8192 -- 2.47.2