Fixed POSIX support for NazaraCore (Close #15)

Former-commit-id: 7fee4f65f1306698a8e399a7d4b0593b68929d33
This commit is contained in:
Lynix 2013-08-11 15:53:53 +02:00
parent 241e8fe9d9
commit dbbbde0575
3 changed files with 2 additions and 7 deletions

View File

@ -224,7 +224,7 @@ bool NzDirectory::Copy(const NzString& sourcePath, const NzString& destPath)
return false;
}
while (dir.NextResult(true));
while (dir.NextResult(true))
{
if (dir.IsResultDirectory())
{

View File

@ -1031,9 +1031,6 @@ void SHA512_End(SHA_CTX* context, nzUInt8* digest)
std::memcpy(d, context->s512.state, SHA512_DIGEST_LENGTH);
#endif
}
/* Zero out state data */
std::memset(context, 0, sizeof(SHA_CTX));
}
@ -1071,7 +1068,4 @@ void SHA384_End(SHA_CTX* context, nzUInt8* digest)
std::memcpy(d, context->s512.state, SHA384_DIGEST_LENGTH);
#endif
}
/* Zero out state data */
std::memset(context, 0, sizeof(SHA_CTX));
}

View File

@ -174,6 +174,7 @@ bool NzFileImpl::Copy(const NzString& sourcePath, const NzString& targetPath)
close(fd1);
close(fd2);
return true;
}
bool NzFileImpl::Delete(const NzString& filePath)