Fix a couple of compiler warnings

This commit is contained in:
Kovid Goyal 2021-12-24 10:35:16 +05:30
parent 485badb13a
commit 2d0429ebce
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -173,7 +173,7 @@ output_callback(void *ctx, const void *buf, size_t size)
DWORD written = 0;
if (size > 0) {
if (!WriteFile(ds->out, buf, size, &written, NULL)) {
if (!WriteFile(ds->out, buf, (DWORD)size, &written, NULL)) {
show_last_error(L"Failed to write uncompressed data to temp file");
output_error_shown = 1;
return 0;
@ -515,7 +515,7 @@ void makedirs(LPWSTR path) {
int WINAPI wWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, PWSTR pCmdLine, int nCmdShow)
{
(void)hPrevInstance; (void)pCmdLine; (void)nCmdShow;
(void)hPrevInstance; (void)pCmdLine; (void)nCmdShow; (void)hInstance;
LPVOID cdata = NULL;
DWORD csz = 0;
int ret = 1, argc;