Skip to content

Commit

Permalink
SYMOPT_UNDNAME を弾くように変更 (こうしないと SymFromName() でシンボルを見つけられなくなる)
Browse files Browse the repository at this point in the history
テスト修正
  • Loading branch information
i-saint committed Sep 11, 2013
1 parent a475022 commit 4d2d9ea
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
1 change: 1 addition & 0 deletions DynamicPatcher.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ dpAPI bool dpInitialize(const dpConfig &conf)
if(!g_dpDefaultContext) {
DWORD opt = ::SymGetOptions();
opt |= SYMOPT_DEFERRED_LOADS | SYMOPT_LOAD_LINES;
opt &= ~SYMOPT_UNDNAME;
::SymSetOptions(opt);
::SymInitialize(::GetCurrentProcess(), NULL, TRUE);

Expand Down
5 changes: 1 addition & 4 deletions Test/Test_Simple/Test_Simple.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class dpPatch Test
Test() : m_end_flag(false) {}
virtual ~Test() {}

virtual void doSomething()
dpNoInline virtual void doSomething()
{
puts("Test::doSomething()");
printf("Test::s_value: %d\n", s_value);
Expand Down Expand Up @@ -75,9 +75,6 @@ int main(int argc, char *argv[])
dpAddMSBuildCommand("Test_Simple.vcxproj /target:ClCompile /m /p:Configuration="dpConfiguration";Platform="dpPlatform);
dpStartAutoBuild();

//dpLoad(dpObjDir"/*.obj");
dpLink();

printf("DynamicPatcher Test_Simple\n");
{
Test test;
Expand Down

0 comments on commit 4d2d9ea

Please sign in to comment.