Fixed POSIX support for NazaraCore (Close #15)
Former-commit-id: 7fee4f65f1306698a8e399a7d4b0593b68929d33
This commit is contained in:
parent
241e8fe9d9
commit
dbbbde0575
|
|
@ -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())
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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));
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue