Skip to content

Commit fdd1f77

Browse files
authored
Handle out of memory case (#193)
1 parent 0d744fb commit fdd1f77

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Source/GmmLib/GlobalInfo/GmmInfo.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1005,6 +1005,10 @@ GMM_CLIENT ClientType)
10051005
this->GtSysInfo = *pGtSysInfo;
10061006

10071007
this->pPlatformInfo = CreatePlatformInfo(Platform, false);
1008+
if(this->pPlatformInfo == NULL)
1009+
{
1010+
return GMM_ERROR;
1011+
}
10081012

10091013
OverrideSkuWa();
10101014

0 commit comments

Comments
 (0)