Revision: 16711 http://sourceforge.net/p/edk2/code/16711 Author: vanjeff Date: 2015-02-03 08:35:42 +0000 (Tue, 03 Feb 2015) Log Message: ----------- Use better coding style.
(Sync patch r16540 from main trunk.) Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: "Yao, Jiewen" <jiewen....@intel.com> Reviewed-by: "Qiu, Shumin" <shumin....@intel.com> Revision Links: -------------- http://sourceforge.net/p/edk2/code/16540 Modified Paths: -------------- branches/UDK2014.SP1/SecurityPkg/Library/Tpm2CommandLib/Tpm2Session.c Modified: branches/UDK2014.SP1/SecurityPkg/Library/Tpm2CommandLib/Tpm2Session.c =================================================================== --- branches/UDK2014.SP1/SecurityPkg/Library/Tpm2CommandLib/Tpm2Session.c 2015-02-03 08:34:50 UTC (rev 16710) +++ branches/UDK2014.SP1/SecurityPkg/Library/Tpm2CommandLib/Tpm2Session.c 2015-02-03 08:35:42 UTC (rev 16711) @@ -99,7 +99,7 @@ Buffer += Salt->size; *(TPM_SE *)Buffer = SessionType; - Buffer += sizeof(UINT8); + Buffer++; WriteUnaligned16 ((UINT16 *)Buffer, SwapBytes16 (Symmetric->algorithm)); Buffer += sizeof(UINT16); ------------------------------------------------------------------------------ Dive into the World of Parallel Programming. The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ _______________________________________________ edk2-commits mailing list edk2-commits@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/edk2-commits