(back) ported win32 32bit compatibility along with lots of fixes

This commit is contained in:
scip
2014-03-15 17:26:42 +01:00
parent 080456219a
commit a1cfe16c3c
19 changed files with 135 additions and 50 deletions

5
tests/cpptest.cpp Normal file → Executable file
View File

@@ -60,8 +60,9 @@ void test0() {
DECRYPTED = _openrd("testcppdecrypted");
char *got = (char *)ucmalloc(10);
size_t h;
h = fread(got, 1, 6, DECRYPTED);
if(fread(got, 1, 6, DECRYPTED) < 6) {
throw pcp::exception("read error, could not read decrypted content");
}
if(strncmp(got, "HALLO", 5) != 0) {
throw pcp::exception();
}