This is the mail archive of the
cygwin-developers@sources.redhat.com
mailing list for the Cygwin project.
cygcheck patch
- To: cygwin-developers at sources dot redhat dot com
- Subject: cygcheck patch
- From: Matt <matt at use dot net>
- Date: Wed, 6 Dec 2000 16:48:28 -0800
I realised that one big patch like this might be frowned upon, I'll try
and break it up next time. This is my first time submitting a patch, so
please be gentle with criticism/comments :)
Changelog:
* utils/cygcheck.cc: moved keyeprint() declaration before other functions
so it could be used by all functions to report error messages
* utils/cygcheck.cc: all initial uses of pointers are now checked for
NULL. This includes pointers from malloc(), and pointers
passed into functions. If NULL pointers are encountered, keyeprint is
used to report them.
* utils/cygcheck.cc: Added error checking for calls to
GetVolumeInformation(), SetFilePointer(), GetSystemDirectory(),
ReadFile(),
CloseHandle(), GetFileInformationByHandle(), FileTimeToSystemTime(),
RegCloseKey(), GetVersionEx(),
and FreeLibrary()
* utils/cygcheck.cc: Added default case to switch(dtype) in dump_sysinfo()
* utils/cygcheck.cc: Corrected small memory leak in cygwin_info()
cygcheck.cc-patch.gz