cygcheck patch

Matt matt@use.net
Wed Dec 6 16:49:00 GMT 2000


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()

-------------- next part --------------
A non-text attachment was scrubbed...
Name: cygcheck.cc-patch.gz
Type: application/x-gzip
Size: 4194 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin-developers/attachments/20001206/ef7b4ae2/attachment.bin>


More information about the Cygwin-developers mailing list