Fixed bug in entity output hooks (bug 3988, r=fyren).
Fixed bug in entity output hooks (
bug 3988, r=fyren).
1.1 --- a/extensions/sdktools/msvc9/sdktools.vcproj Mon Oct 26 23:59:59 2009 -0700
1.2 +++ b/extensions/sdktools/msvc9/sdktools.vcproj Tue Oct 27 00:03:59 2009 -0700
1.3 @@ -884,6 +884,7 @@
1.4 <Tool
1.5 Name="VCResourceCompilerTool"
1.6 PreprocessorDefinitions="BINARY_NAME=\"$(TargetFileName)\""
1.7 + AdditionalIncludeDirectories="..\..\..\public"
1.8 />
1.9 <Tool
1.10 Name="VCPreLinkEventTool"
2.1 --- a/extensions/sdktools/output.cpp Mon Oct 26 23:59:59 2009 -0700
2.2 +++ b/extensions/sdktools/output.cpp Tue Oct 27 00:03:59 2009 -0700
2.3 @@ -207,7 +207,7 @@
2.4
2.5 bool fastLookup = false;
2.6
2.7 - // Fast lookup failed - check the slow way for hooks that havn't fired yet
2.8 + // Fast lookup failed - check the slow way for hooks that haven't fired yet
2.9 if ((fastLookup = EntityOutputs->Retrieve(sOutput, (void **)&pOutputName)) == false)
2.10 {
2.11 const char *classname = GetEntityClassname(pCaller);
2.12 @@ -450,5 +450,5 @@
2.13 offset = pDesc->fieldOffset[TD_OFFSET_NORMAL];
2.14 }
2.15
2.16 - return (const char *)(((unsigned char *)pEntity) + offset);
2.17 + return *(const char **)(((unsigned char *)pEntity) + offset);
2.18 }