summaryrefslogtreecommitdiff
path: root/protocols/Tox/src/tox_profile.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/Tox/src/tox_profile.cpp')
-rw-r--r--protocols/Tox/src/tox_profile.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/protocols/Tox/src/tox_profile.cpp b/protocols/Tox/src/tox_profile.cpp
index de1a844234..6fe48686b6 100644
--- a/protocols/Tox/src/tox_profile.cpp
+++ b/protocols/Tox/src/tox_profile.cpp
@@ -80,6 +80,8 @@ void CToxProto::SaveToxProfile()
tox_save(tox, data);
}
+ SetFilePointer(hProfile, 0, 0, FILE_BEGIN);
+ SetEndOfFile(hProfile);
DWORD written = 0;
if (!WriteFile(hProfile, data, size, &written, NULL) || size != written)
{