X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/blobdiff_plain/688861a828dce616dbc0b67397558b2ecaaa8a75..fc9b052a2fc832ea8bc3efa9c79eba0f961830b2:/windows/winstore.c diff --git a/windows/winstore.c b/windows/winstore.c index 76c73d09..66c7c759 100644 --- a/windows/winstore.c +++ b/windows/winstore.c @@ -456,7 +456,10 @@ enum { DEL, OPEN_R, OPEN_W }; static int try_random_seed(char const *path, int action, HANDLE *ret) { if (action == DEL) { - remove(path); + if (!DeleteFile(path) && GetLastError() != ERROR_FILE_NOT_FOUND) { + nonfatal("Unable to delete '%s': %s", path, + win_strerror(GetLastError())); + } *ret = INVALID_HANDLE_VALUE; return FALSE; /* so we'll do the next ones too */ }