mirror of
https://github.com/reactos/reactos.git
synced 2025-01-02 12:32:47 +00:00
Support alternate name for hooked function
svn path=/branches/xmlbuildsystem/; revision=15437
This commit is contained in:
parent
19e160bf46
commit
8a4a3a4cb1
2 changed files with 4 additions and 4 deletions
|
@ -72,13 +72,13 @@ StubbedSymbol::ProcessXML ()
|
|||
}
|
||||
symbol = node.value;
|
||||
|
||||
strippedName = StripSymbol ( symbol );
|
||||
|
||||
const XMLAttribute* att = node.GetAttribute ( "newname", false );
|
||||
if ( att != NULL )
|
||||
newname = att->value;
|
||||
else
|
||||
newname = symbol;
|
||||
|
||||
strippedName = StripSymbol ( symbol );
|
||||
newname = strippedName;
|
||||
}
|
||||
|
||||
string
|
||||
|
|
|
@ -63,7 +63,7 @@ TestSupportCode::WriteStubbedSymbolToHooksFile ( char* buffer,
|
|||
buffer = buffer + sprintf ( buffer,
|
||||
" {\"%s\", \"%s\", NULL, NULL, NULL},\n",
|
||||
component.name.c_str (),
|
||||
symbol.strippedName.c_str () );
|
||||
symbol.newname.c_str () );
|
||||
return buffer;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue