secureswitools/swisistools/source/rscparser/barsreadimpl.cpp
changeset 33 8110bf1194d1
parent 25 98b66e4fb0be
equal deleted inserted replaced
29:26b6f0522fd8 33:8110bf1194d1
   249 			{
   249 			{
   250 			// The resource compiler puts out a padding byte (arbitrarily 0xab)
   250 			// The resource compiler puts out a padding byte (arbitrarily 0xab)
   251 			// to ensure the alignment of Unicode strings within each resource.
   251 			// to ensure the alignment of Unicode strings within each resource.
   252 				if(*currentPtr!=0xab)
   252 				if(*currentPtr!=0xab)
   253 				{
   253 				{
   254 					std::string errMsg= "Failed : Trying to access invalid registrationFile";
   254 					std::string errMsg= "Failed : Improper alignment of Unicode strings (0xab) within each resource.";
   255 					throw CResourceFileException(errMsg);
   255 					throw CResourceFileException(errMsg);
   256 				}
   256 				}
   257 			++currentPtr;
   257 			++currentPtr;
   258 			}
   258 			}
   259 		}
   259 		}