mpr: Check for out of memory condition.
This commit is contained in:
parent
8d1a85914a
commit
c04123fac9
|
@ -56,7 +56,8 @@ static LPSTR MPR_GetValueName( LPCSTR pbResource, WORD cbResource, BYTE nType )
|
||||||
DWORD i;
|
DWORD i;
|
||||||
|
|
||||||
name = HeapAlloc( GetProcessHeap(), 0, 6+cbResource*2 );
|
name = HeapAlloc( GetProcessHeap(), 0, 6+cbResource*2 );
|
||||||
if( name )
|
if( !name ) return NULL;
|
||||||
|
|
||||||
sprintf( name, "X-%02X-", nType );
|
sprintf( name, "X-%02X-", nType );
|
||||||
for(i=0; i<cbResource; i++)
|
for(i=0; i<cbResource; i++)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue