mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-29 12:23:30 +00:00
Support alternate name for hooked function
svn path=/branches/xmlbuildsystem/; revision=15437
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user