mirror of
https://github.com/SChernykh/p2pool.git
synced 2024-11-16 15:57:39 +00:00
Fixed cppcheck error
This commit is contained in:
parent
f4ed9e9840
commit
bbddf40590
1 changed files with 4 additions and 3 deletions
|
@ -86,8 +86,9 @@ struct BlockCache::Impl : public nocopy_nomove
|
||||||
#elif defined(_WIN32)
|
#elif defined(_WIN32)
|
||||||
|
|
||||||
Impl()
|
Impl()
|
||||||
|
: m_file(CreateFile(cache_name, GENERIC_ALL, FILE_SHARE_READ, NULL, OPEN_ALWAYS, FILE_ATTRIBUTE_HIDDEN, NULL))
|
||||||
|
, m_map(0)
|
||||||
{
|
{
|
||||||
m_file = CreateFile(cache_name, GENERIC_ALL, FILE_SHARE_READ, NULL, OPEN_ALWAYS, FILE_ATTRIBUTE_HIDDEN, NULL);
|
|
||||||
if (m_file == INVALID_HANDLE_VALUE) {
|
if (m_file == INVALID_HANDLE_VALUE) {
|
||||||
LOGERR(1, "couldn't open " << cache_name << ", error " << static_cast<uint32_t>(GetLastError()));
|
LOGERR(1, "couldn't open " << cache_name << ", error " << static_cast<uint32_t>(GetLastError()));
|
||||||
return;
|
return;
|
||||||
|
@ -140,8 +141,8 @@ struct BlockCache::Impl : public nocopy_nomove
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
HANDLE m_file = INVALID_HANDLE_VALUE;
|
HANDLE m_file;
|
||||||
HANDLE m_map = 0;
|
HANDLE m_map;
|
||||||
|
|
||||||
#else
|
#else
|
||||||
// Not implemented on other platforms
|
// Not implemented on other platforms
|
||||||
|
|
Loading…
Reference in a new issue