Author: khornicek Date: Wed Jun 17 15:08:00 2009 New Revision: 41433
URL: http://svn.reactos.org/svn/reactos?rev=41433&view=rev Log: - correct fix, also free the allocated buffer
Modified: trunk/reactos/base/services/tftpd/tftpd.cpp
Modified: trunk/reactos/base/services/tftpd/tftpd.cpp URL: http://svn.reactos.org/svn/reactos/trunk/reactos/base/services/tftpd/tftpd.c... ============================================================================== --- trunk/reactos/base/services/tftpd/tftpd.cpp [iso-8859-1] (original) +++ trunk/reactos/base/services/tftpd/tftpd.cpp [iso-8859-1] Wed Jun 17 15:08:00 2009 @@ -307,8 +307,11 @@ (LPTSTR) &lpMsgBuf, 0, NULL );
- printf("Error: %p\nPress Enter..\n", lpMsgBuf); + _tprintf(_T("Error: %s\nPress Enter..\n"), (LPTSTR)lpMsgBuf); getchar(); + + if(lpMsgBuf) + LocalFree(lpMsgBuf); } }