Revision: 16544
          http://sourceforge.net/p/edk2/code/16544
Author:   ydong10
Date:     2014-12-22 02:21:53 +0000 (Mon, 22 Dec 2014)
Log Message:
-----------
Fixed VfrCompile crash on efivarstore statement.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Aaron Pop <[email protected]>
Reviewed-by: Eric Dong <[email protected]>

Modified Paths:
--------------
    trunk/edk2/BaseTools/Source/C/VfrCompile/VfrSyntax.g

Modified: trunk/edk2/BaseTools/Source/C/VfrCompile/VfrSyntax.g
===================================================================
--- trunk/edk2/BaseTools/Source/C/VfrCompile/VfrSyntax.g        2014-12-19 
19:13:44 UTC (rev 16543)
+++ trunk/edk2/BaseTools/Source/C/VfrCompile/VfrSyntax.g        2014-12-22 
02:21:53 UTC (rev 16544)
@@ -987,13 +987,13 @@
                                                          
_PCATCH(gCVfrVarDataTypeDB.GetDataTypeSize(TypeName, &Size), LineNum);
                                                        } else {
                                                         
_PCATCH(mCVfrDataStorage.DeclareBufferVarStore (
-                                                                               
   TN->getText(),
+                                                                               
   StoreName,
                                                                                
   &Guid,
                                                                                
   &gCVfrVarDataTypeDB,
                                                                                
   TypeName,
                                                                                
   VarStoreId
                                                                                
   ), LineNum);                                                      
-                                                         
_PCATCH(mCVfrDataStorage.GetVarStoreId(TN->getText(), &VarStoreId, &Guid), VN);
+                                                         
_PCATCH(mCVfrDataStorage.GetVarStoreId(StoreName, &VarStoreId, &Guid), VN);
                                                          
_PCATCH(gCVfrVarDataTypeDB.GetDataTypeSize(TypeName, &Size), N->getLine());
                                                        }
                                                        VSEObj.SetGuid (&Guid); 
                                                      


------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
_______________________________________________
edk2-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-commits

Reply via email to