[ros-diffs] [gedmurphy] 71: fix writing to file
gedmurphy at svn.reactos.org
gedmurphy at svn.reactos.org
Wed Feb 1 23:07:11 CET 2006
fix writing to file
Modified: trunk/reactos/base/system/servman/export.c
_____
Modified: trunk/reactos/base/system/servman/export.c
--- trunk/reactos/base/system/servman/export.c 2006-02-01 19:41:17 UTC
(rev 70)
+++ trunk/reactos/base/system/servman/export.c 2006-02-01 22:07:06 UTC
(rev 71)
@@ -53,11 +53,11 @@
dwTextLength = GetTextFromListView(LVText, i, k);
if (LVText != NULL)
{
- WriteFile(hFile, LVText, dwTextLength, &dwWritten,
NULL);
- WriteFile(hFile, &tab, 1, &dwWritten, NULL);
+ WriteFile(hFile, LVText, sizeof(TCHAR) *
dwTextLength, &dwWritten, NULL);
+ WriteFile(hFile, &tab, sizeof(TCHAR), &dwWritten,
NULL);
}
}
- WriteFile(hFile, &newl, 1, &dwWritten, NULL);
+ WriteFile(hFile, &newl, sizeof(TCHAR), &dwWritten,
NULL);
}
CloseHandle(hFile);
bSuccess = TRUE;
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.reactos.org/pipermail/ros-diffs/attachments/20060201/fdef2ce0/attachment-0002.html
More information about the Ros-diffs
mailing list