Skip to content
Browse files

2004-05-28 Zoltan Varga <vargaz@freemail.hu>

	* setenv.cs: Fix this after marshalling changes.

svn path=/trunk/mono/; revision=28340
  • Loading branch information...
1 parent f9bd23c commit e283a05ca536858cc5c181764e71675340fc7051 @vargaz vargaz committed May 28, 2004
Showing with 6 additions and 2 deletions.
  1. +4 −0 mono/tests/ChangeLog
  2. +2 −2 mono/tests/setenv.cs
View
4 mono/tests/ChangeLog
@@ -1,3 +1,7 @@
+2004-05-28 Zoltan Varga <vargaz@freemail.hu>
+
+ * setenv.cs: Fix this after marshalling changes.
+
2004-05-26 Zoltan Varga <vargaz@freemail.hu>
* pinvoke3.cs libtest.c: Add tests for fnptr->delegate marshalling.
View
4 mono/tests/setenv.cs
@@ -7,15 +7,15 @@ public class Test {
[DllImport("libc")]
static extern int setenv(string name, string value, int overwrite);
[DllImport("libc")]
- static extern string getenv(string name);
+ static extern IntPtr getenv(string name);
static int Main() {
try {
string name = "mono_test";
string value = "val";
setenv (name, value, 1);
- string ret = getenv (name);
+ string ret = Marshal.PtrToStringAnsi (getenv (name));
if (ret != value)
return 1;

0 comments on commit e283a05

Please sign in to comment.
Something went wrong with that request. Please try again.