Added some reg temp file clutter check (more than 100 temp files in

~/.wine).
oldstable
Andreas Mohr 2000-05-09 22:31:43 +00:00 committed by Alexandre Julliard
parent 3cec2ce3d3
commit 6297451d73
1 changed files with 4 additions and 0 deletions

View File

@ -1062,6 +1062,10 @@ LONG WINAPI RegSaveKeyA( HKEY hkey, LPCSTR file, LPSECURITY_ATTRIBUTES sa )
CREATE_NEW, FILE_ATTRIBUTE_NORMAL, -1 );
if (handle != INVALID_HANDLE_VALUE) break;
if ((ret = GetLastError()) != ERROR_ALREADY_EXISTS) goto done;
/* Something gone haywire ? Please report if this happens abnormally */
if (count >= 100)
MESSAGE("Wow, we are already fiddling with a temp file %s with an ordinal as high as %d !\nYou might want to delete all corresponding temp files in that directory.\n", buffer, count);
}
req->hkey = hkey;