[SERVMAN]
authorKamil Hornicek <kamil.hornicek@reactos.org>
Wed, 22 Oct 2014 19:28:33 +0000 (19:28 +0000)
committerKamil Hornicek <kamil.hornicek@reactos.org>
Wed, 22 Oct 2014 19:28:33 +0000 (19:28 +0000)
- better fix for CDI 513719, LVText might not be null terminated - spotted by Timo

svn path=/trunk/; revision=64904

reactos/base/applications/mscutils/servman/export.c

index 3df3c44..4abb279 100644 (file)
@@ -68,7 +68,7 @@ SaveServicesToFile(PMAIN_WND_INFO Info,
                                                    LVText,
                                                    i,
                                                    k);
-                if (_tcslen(LVText))
+                if (dwTextLength != 0)
                 {
                     WriteFile(hFile,
                               LVText,