summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2018-02-04 14:15:58 +0100
committeremkael <emkael@tlen.pl>2018-02-04 14:15:58 +0100
commit33cca3ec0de7e4c1bbbf35a63bb4853254d316b5 (patch)
tree7126b7e40cdfa48aff4ba60ac99b7e46ed71e348 /src
parent3bdfefa7c6ad6fd02de10cce3283dd0ee242742b (diff)
Proper decoding of BCalc errors (forcing ANSI)
Diffstat (limited to 'src')
-rw-r--r--src/DDTable.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/DDTable.cs b/src/DDTable.cs
index 95cf15e..c2ffcd1 100644
--- a/src/DDTable.cs
+++ b/src/DDTable.cs
@@ -67,7 +67,7 @@ namespace BCDD
{
BCalcWrapper.bcalcDDS_setPlayerOnLeadAndReset(solver, BCalcWrapper.bcalc_declarerToLeader(player));
result[player, denom] = 13 - BCalcWrapper.bcalcDDS_getTricksToTake(solver);
- String error = Marshal.PtrToStringAuto(BCalcWrapper.bcalcDDS_getLastError(solver));
+ String error = Marshal.PtrToStringAnsi(BCalcWrapper.bcalcDDS_getLastError(solver));
if (error != null)
{
throw new DDTableInvalidException("BCalc error: " + error);