fixed custom icons bug

git-svn-id: https://svn.code.sf.net/p/keepassx/code/trunk@90 b624d157-de02-0410-bad0-e51aec6abb33
master
tarek_saidi 19 years ago
parent 2e7c1f3073
commit e0a8391899
  1. 8
      changelog
  2. 2
      src/PwManager.cpp

@ -1,3 +1,11 @@
---------------
0.2.2
---------------
-fixed crash when parsing config file under Win32
-fixed loss of entry icons when saving a database which
was not created with KeePassX (no KPX_CUSTOM_ICONS metastream)
--------------- ---------------
0.2.1 0.2.1
--------------- ---------------

@ -651,6 +651,7 @@ bool CGroup::ReadGroupField(quint16 FieldType, quint32 FieldSize, quint8 *pData)
break; break;
case 0x0007: case 0x0007:
memcpyFromLEnd32(&ImageID, (char*)pData); memcpyFromLEnd32(&ImageID, (char*)pData);
OldImgID=ImageID;
break; break;
case 0x0008: case 0x0008:
memcpyFromLEnd16(&Level, (char*)pData); memcpyFromLEnd16(&Level, (char*)pData);
@ -691,6 +692,7 @@ switch(FieldType)
break; break;
case 0x0003: case 0x0003:
memcpyFromLEnd32(&ImageID, (char*)pData); memcpyFromLEnd32(&ImageID, (char*)pData);
OldImgID=ImageID;
break; break;
case 0x0004: case 0x0004:
Title=QString::fromUtf8((char*)pData); Title=QString::fromUtf8((char*)pData);