diff options
author | George Hazan <george.hazan@gmail.com> | 2015-01-30 20:58:31 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2015-01-30 20:58:31 +0000 |
commit | 96808cb66bd6e006e25367bc69815b6fe6d3cb28 (patch) | |
tree | f2d13afc41bd4140d60fe5c6b2410c7a7593fb24 /src/mir_core | |
parent | 4f275199a51a68f93bff688d76925b118413471b (diff) |
fix for the PNG image type detection
git-svn-id: http://svn.miranda-ng.org/main/trunk@11960 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src/mir_core')
-rw-r--r-- | src/mir_core/src/protos.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mir_core/src/protos.cpp b/src/mir_core/src/protos.cpp index df44bb5d6c..975786111f 100644 --- a/src/mir_core/src/protos.cpp +++ b/src/mir_core/src/protos.cpp @@ -220,7 +220,7 @@ MIR_CORE_DLL(int) ProtoGetAvatarFormat(const TCHAR *ptszFileName) MIR_CORE_DLL(int) ProtoGetBufferFormat(const void *pBuffer, const TCHAR **ptszExtension)
{
- if (!memcmp(pBuffer, "%PNG", 4)) {
+ if (!memcmp(pBuffer, "\x89PNG", 4)) {
if (ptszExtension) *ptszExtension = _T(".png");
return PA_FORMAT_PNG;
}
|