mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix a couple of compiler warnings
This commit is contained in:
parent
485badb13a
commit
2d0429ebce
@ -173,7 +173,7 @@ output_callback(void *ctx, const void *buf, size_t size)
|
|||||||
DWORD written = 0;
|
DWORD written = 0;
|
||||||
|
|
||||||
if (size > 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");
|
show_last_error(L"Failed to write uncompressed data to temp file");
|
||||||
output_error_shown = 1;
|
output_error_shown = 1;
|
||||||
return 0;
|
return 0;
|
||||||
@ -515,7 +515,7 @@ void makedirs(LPWSTR path) {
|
|||||||
|
|
||||||
int WINAPI wWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, PWSTR pCmdLine, int nCmdShow)
|
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;
|
LPVOID cdata = NULL;
|
||||||
DWORD csz = 0;
|
DWORD csz = 0;
|
||||||
int ret = 1, argc;
|
int ret = 1, argc;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user