commitmonitor Code
Monitor your SVN repositories and notifies you on new commits
Brought to you by:
steveking
changed | /trunk/src/AppUtils.cpp |
--- a/trunk/src/AppUtils.cpp +++ b/trunk/src/AppUtils.cpp @@ -1,6 +1,6 @@ // CommitMonitor - simple checker for new commits in svn repositories -// Copyright (C) 2007-2010, 2012 - Stefan Kueng +// Copyright (C) 2007-2010, 2012-2013 - Stefan Kueng // This program is free software; you can redistribute it and/or // modify it under the terms of the GNU General Public License @@ -466,8 +466,8 @@ (LPTSTR)strLangProductVersion, (LPVOID *)&lpVersion, &nInfoSize); - - sVersion = (LPCTSTR)lpVersion; + if (nInfoSize && lpVersion) + sVersion = (LPCTSTR)lpVersion; free(pBuffer); } }