mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-25 23:55:38 +00:00
(Windows) Fixed a compiler error and two warnings.
This commit is contained in:
parent
4533409c65
commit
89c845b4d5
|
@ -269,7 +269,7 @@ MDResolveHandle::MDResolveHandle(const ScraperSearchResult& result,
|
||||||
|
|
||||||
FIMEMORY* memoryStream = FreeImage_OpenMemory(
|
FIMEMORY* memoryStream = FreeImage_OpenMemory(
|
||||||
reinterpret_cast<BYTE*>(&mResult.thumbnailImageData.at(0)),
|
reinterpret_cast<BYTE*>(&mResult.thumbnailImageData.at(0)),
|
||||||
mResult.thumbnailImageData.size());
|
static_cast<DWORD>(mResult.thumbnailImageData.size()));
|
||||||
|
|
||||||
FREE_IMAGE_FORMAT imageFormat = FreeImage_GetFileTypeFromMemory(memoryStream, 0);
|
FREE_IMAGE_FORMAT imageFormat = FreeImage_GetFileTypeFromMemory(memoryStream, 0);
|
||||||
FreeImage_CloseMemory(memoryStream);
|
FreeImage_CloseMemory(memoryStream);
|
||||||
|
@ -429,7 +429,8 @@ void MediaDownloadHandle::update()
|
||||||
std::string imageData = mReq->getContent();
|
std::string imageData = mReq->getContent();
|
||||||
|
|
||||||
FIMEMORY* memoryStream = FreeImage_OpenMemory(
|
FIMEMORY* memoryStream = FreeImage_OpenMemory(
|
||||||
reinterpret_cast<BYTE*>(&imageData.at(0)), imageData.size());
|
reinterpret_cast<BYTE*>(&imageData.at(0)),
|
||||||
|
static_cast<DWORD>(imageData.size()));
|
||||||
|
|
||||||
imageFormat = FreeImage_GetFileTypeFromMemory(memoryStream, 0);
|
imageFormat = FreeImage_GetFileTypeFromMemory(memoryStream, 0);
|
||||||
FreeImage_CloseMemory(memoryStream);
|
FreeImage_CloseMemory(memoryStream);
|
||||||
|
|
|
@ -177,7 +177,7 @@ namespace Utils
|
||||||
const char* f = format.c_str();
|
const char* f = format.c_str();
|
||||||
tm timeStruct;
|
tm timeStruct;
|
||||||
#if defined(_WIN64)
|
#if defined(_WIN64)
|
||||||
localtime_s(&timeStruct, &_time);
|
localtime_s(&timeStruct, &time);
|
||||||
#else
|
#else
|
||||||
localtime_r(&time, &timeStruct);
|
localtime_r(&time, &timeStruct);
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue