X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=windows%2Fwinsftp.c;h=c786f7a65d686d65d165391674e878ed42fd7e91;hb=1de7240eb88fa24a8532ded116b4ec72dd213008;hp=60551c99c295d4dafb70fb64e385513d2deeb369;hpb=e22a72c66a2d876f2ebe4bd6384b246af92cda4d;p=PuTTY.git diff --git a/windows/winsftp.c b/windows/winsftp.c index 60551c99..c786f7a6 100644 --- a/windows/winsftp.c +++ b/windows/winsftp.c @@ -8,6 +8,7 @@ #include "psftp.h" #include "ssh.h" #include "int64.h" +#include "winsecur.h" char *get_ttymode(void *frontend, const char *mode) { return NULL; } @@ -243,7 +244,7 @@ int seek_file(WFile *f, uint64 offset, int whence) uint64 get_file_posn(WFile *f) { uint64 ret; - LONG lo, hi; + LONG lo, hi = 0; lo = SetFilePointer(f->h, 0L, &hi, FILE_CURRENT); ret.lo = lo;