Skip to content
This repository was archived by the owner on Jan 4, 2025. It is now read-only.

Commit b94ca49

Browse files
committed
update nuget packages
1 parent b2309c9 commit b94ca49

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

TFMain/Hooking.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ void Hooking::WalkIAT(PVOID baseAddress, std::string_view dllName, std::function
101101
}
102102
else
103103
{
104-
functionName = MAKEINTRESOURCEA(IMAGE_ORDINAL(thunk->u1.Ordinal));
104+
functionName = MAKEINTRESOURCEA(IMAGE_ORDINAL(nameThunk->u1.Ordinal));
105105
}
106106

107107
result = callback(functionAddress, functionName, importedByName);
@@ -175,7 +175,7 @@ void Hooking::WalkDeleyloadIAT(PVOID baseAddress, string_view dllName, function<
175175
}
176176
else
177177
{
178-
functionName = MAKEINTRESOURCEA(IMAGE_ORDINAL(thunk->u1.Ordinal));
178+
functionName = MAKEINTRESOURCEA(IMAGE_ORDINAL(nameThunk->u1.Ordinal));
179179
}
180180

181181
result = callback(moduleHandle, functionAddress, functionName, importedByName);

TFMain/TFMain.vcxproj

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3-
<Import Project="..\packages\VC-LTL.5.0.8\build\native\VC-LTL.props" Condition="Exists('..\packages\VC-LTL.5.0.8\build\native\VC-LTL.props')" />
3+
<Import Project="..\packages\VC-LTL.5.0.9\build\native\VC-LTL.props" Condition="Exists('..\packages\VC-LTL.5.0.9\build\native\VC-LTL.props')" />
44
<Import Project="..\packages\YY.NuGet.Import.Helper.1.0.0.4\build\native\YY.NuGet.Import.Helper.props" Condition="Exists('..\packages\YY.NuGet.Import.Helper.1.0.0.4\build\native\YY.NuGet.Import.Helper.props')" />
55
<ItemGroup Label="ProjectConfigurations">
66
<ProjectConfiguration Include="Debug|Win32">
@@ -260,17 +260,17 @@
260260
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
261261
<ImportGroup Label="ExtensionTargets">
262262
<Import Project="..\packages\YY.NuGet.Import.Helper.1.0.0.4\build\native\YY.NuGet.Import.Helper.targets" Condition="Exists('..\packages\YY.NuGet.Import.Helper.1.0.0.4\build\native\YY.NuGet.Import.Helper.targets')" />
263-
<Import Project="..\packages\Microsoft.Windows.ImplementationLibrary.1.0.230629.1\build\native\Microsoft.Windows.ImplementationLibrary.targets" Condition="Exists('..\packages\Microsoft.Windows.ImplementationLibrary.1.0.230629.1\build\native\Microsoft.Windows.ImplementationLibrary.targets')" />
264263
<Import Project="..\packages\Detours.4.0.1\build\native\Detours.targets" Condition="Exists('..\packages\Detours.4.0.1\build\native\Detours.targets')" />
264+
<Import Project="..\packages\Microsoft.Windows.ImplementationLibrary.1.0.231216.1\build\native\Microsoft.Windows.ImplementationLibrary.targets" Condition="Exists('..\packages\Microsoft.Windows.ImplementationLibrary.1.0.231216.1\build\native\Microsoft.Windows.ImplementationLibrary.targets')" />
265265
</ImportGroup>
266266
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
267267
<PropertyGroup>
268268
<ErrorText>这台计算机上缺少此项目引用的 NuGet 程序包。使用“NuGet 程序包还原”可下载这些程序包。有关更多信息,请参见 http://go.microsoft.com/fwlink/?LinkID=322105。缺少的文件是 {0}。</ErrorText>
269269
</PropertyGroup>
270270
<Error Condition="!Exists('..\packages\YY.NuGet.Import.Helper.1.0.0.4\build\native\YY.NuGet.Import.Helper.props')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\YY.NuGet.Import.Helper.1.0.0.4\build\native\YY.NuGet.Import.Helper.props'))" />
271271
<Error Condition="!Exists('..\packages\YY.NuGet.Import.Helper.1.0.0.4\build\native\YY.NuGet.Import.Helper.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\YY.NuGet.Import.Helper.1.0.0.4\build\native\YY.NuGet.Import.Helper.targets'))" />
272-
<Error Condition="!Exists('..\packages\VC-LTL.5.0.8\build\native\VC-LTL.props')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\VC-LTL.5.0.8\build\native\VC-LTL.props'))" />
273-
<Error Condition="!Exists('..\packages\Microsoft.Windows.ImplementationLibrary.1.0.230629.1\build\native\Microsoft.Windows.ImplementationLibrary.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\Microsoft.Windows.ImplementationLibrary.1.0.230629.1\build\native\Microsoft.Windows.ImplementationLibrary.targets'))" />
274272
<Error Condition="!Exists('..\packages\Detours.4.0.1\build\native\Detours.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\Detours.4.0.1\build\native\Detours.targets'))" />
273+
<Error Condition="!Exists('..\packages\Microsoft.Windows.ImplementationLibrary.1.0.231216.1\build\native\Microsoft.Windows.ImplementationLibrary.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\Microsoft.Windows.ImplementationLibrary.1.0.231216.1\build\native\Microsoft.Windows.ImplementationLibrary.targets'))" />
274+
<Error Condition="!Exists('..\packages\VC-LTL.5.0.9\build\native\VC-LTL.props')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\VC-LTL.5.0.9\build\native\VC-LTL.props'))" />
275275
</Target>
276276
</Project>

TFMain/packages.config

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<packages>
33
<package id="Detours" version="4.0.1" targetFramework="native" developmentDependency="true" />
4-
<package id="Microsoft.Windows.ImplementationLibrary" version="1.0.230629.1" targetFramework="native" />
5-
<package id="VC-LTL" version="5.0.8" targetFramework="native" />
4+
<package id="Microsoft.Windows.ImplementationLibrary" version="1.0.231216.1" targetFramework="native" />
5+
<package id="VC-LTL" version="5.0.9" targetFramework="native" />
66
<package id="YY.NuGet.Import.Helper" version="1.0.0.4" targetFramework="native" />
77
</packages>

0 commit comments

Comments
 (0)