[ros-diffs] [khornicek] 41433: - correct fix, also free the allocated buffer

khornicek at svn.reactos.org khornicek at svn.reactos.org
Wed Jun 17 13:08:00 CEST 2009


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.cpp?rev=41433&r1=41432&r2=41433&view=diff
==============================================================================
--- 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);
     }
 }
 



More information about the Ros-diffs mailing list