diff options
author | emkael <emkael@tlen.pl> | 2018-02-04 14:15:58 +0100 |
---|---|---|
committer | emkael <emkael@tlen.pl> | 2018-02-04 14:15:58 +0100 |
commit | 33cca3ec0de7e4c1bbbf35a63bb4853254d316b5 (patch) | |
tree | 7126b7e40cdfa48aff4ba60ac99b7e46ed71e348 | |
parent | 3bdfefa7c6ad6fd02de10cce3283dd0ee242742b (diff) |
Proper decoding of BCalc errors (forcing ANSI)
-rw-r--r-- | src/DDTable.cs | 2 |
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);
|