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;
void platform_psftp_post_option_setup(void)
{
-#if !defined UNPROTECT && !defined NO_SECURITY
- /*
- * Protect our process.
- */
- {
- char *error = NULL;
- if (!setprocessacl(error)) {
- char *message = dupprintf("Could not restrict process ACL: %s",
- error);
- logevent(NULL, message);
- sfree(message);
- sfree(error);
- }
- }
-#endif
}
/* ----------------------------------------------------------------------
{
int ret;
+ dll_hijacking_protection();
+
ret = psftp_main(argc, argv);
return ret;