summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/mir_core/src/protos.cpp2
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;
}