[smuxi: 1/9] Frontend-STFL: always call FromUnixWideCharacters.
- From: Mirco M. M. Bauer <mmmbauer src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [smuxi: 1/9] Frontend-STFL: always call FromUnixWideCharacters.
- Date: Tue, 14 Jul 2015 15:36:31 +0000 (UTC)
commit d68bdd41faa603c08af834f77fe0f3fbfdecdd50
Author: Ondřej Hošek <ondra hosek gmail com>
Date: Mon Jul 6 16:12:07 2015 +0200
Frontend-STFL: always call FromUnixWideCharacters.
Remove code duplication by always using FromUnixWideCharacters whenever a
wchar_t* IntPtr must be unmarshaled to a string.
src/Frontend-STFL/STFL/StflApi.cs | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/Frontend-STFL/STFL/StflApi.cs b/src/Frontend-STFL/STFL/StflApi.cs
index 59369b4..7fdc60a 100644
--- a/src/Frontend-STFL/STFL/StflApi.cs
+++ b/src/Frontend-STFL/STFL/StflApi.cs
@@ -96,7 +96,7 @@ namespace Stfl
if (res == IntPtr.Zero) {
return null;
}
- return UnixMarshal.PtrToString(res, Encoding.UTF32);
+ return FromUnixWideCharacters(res);
}
[DllImport("stfl")]
@@ -127,7 +127,7 @@ namespace Stfl
if (res == IntPtr.Zero) {
return null;
}
- return UnixMarshal.PtrToString(res, Encoding.UTF32);
+ return FromUnixWideCharacters(res);
}
[DllImport("stfl")]
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]