X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/blobdiff_plain/a9c2408c1036afad3aaa0ab9a1ab1c5ba3555b0d..1af5ad557f347d224f8b1e639137c3d47d770059:/windows/winsftp.c diff --git a/windows/winsftp.c b/windows/winsftp.c index 94d04a75..4a64c195 100644 --- a/windows/winsftp.c +++ b/windows/winsftp.c @@ -6,6 +6,7 @@ #include "putty.h" #include "psftp.h" +#include "ssh.h" #include "int64.h" char *get_ttymode(void *frontend, const char *mode) { return NULL; } @@ -108,7 +109,8 @@ RFile *open_existing_file(char *name, uint64 *size, int read_from_file(RFile *f, void *buffer, int length) { - int ret, read; + int ret; + DWORD read; ret = ReadFile(f->h, buffer, length, &read, NULL); if (!ret) return -1; /* error */ @@ -163,7 +165,8 @@ WFile *open_existing_wfile(char *name, uint64 *size) int write_to_file(WFile *f, void *buffer, int length) { - int ret, written; + int ret; + DWORD written; ret = WriteFile(f->h, buffer, length, &written, NULL); if (!ret) return -1; /* error */