diff options
author | Tobias Weimer <wishmaster51@googlemail.com> | 2015-10-16 17:43:50 +0000 |
---|---|---|
committer | Tobias Weimer <wishmaster51@googlemail.com> | 2015-10-16 17:43:50 +0000 |
commit | 201d4c2175aab1032564893022e618098e81225d (patch) | |
tree | fbf86274830a233c1dd3d493a7c18c3178823f71 /protocols/SkypeWeb/src/skype_avatars.cpp | |
parent | 59cc9dc475c94284bd3f8f1fc14bfcc7f9da1d1e (diff) |
SkypeWeb:
- Minor fixes
git-svn-id: http://svn.miranda-ng.org/main/trunk@15567 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/SkypeWeb/src/skype_avatars.cpp')
-rw-r--r-- | protocols/SkypeWeb/src/skype_avatars.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/protocols/SkypeWeb/src/skype_avatars.cpp b/protocols/SkypeWeb/src/skype_avatars.cpp index 7622ad09e4..7fe125dab6 100644 --- a/protocols/SkypeWeb/src/skype_avatars.cpp +++ b/protocols/SkypeWeb/src/skype_avatars.cpp @@ -186,14 +186,12 @@ INT_PTR CSkypeProto::SvcSetMyAvatar(WPARAM, LPARAM lParam) if (data != NULL && fread(data, sizeof(BYTE), length, hFile) == length)
{
- FI_INTERFACE *fii = NULL;
const char *szMime = "image/jpeg";
- if (CallService(MS_IMG_GETINTERFACE, FI_IF_VERSION, (LPARAM)&fii) == S_OK && fii)
- {
+ if (fii)
szMime = fii->FI_GetFIFMimeType(fii->FI_GetFIFFromFilenameU(path));
- }
PushRequest(new SetAvatarRequest(data, length, szMime, li), &CSkypeProto::OnSentAvatar);
+ fclose(hFile);
return 0;
}
}
|