--- 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;