mireado
Committed by GitHub

Merge pull request #1 from IJEMIN/master

sysWow64 리다이렉트를 해제
1 -// ithsys.cc 1 +// ithsys.cc
2 // 8/21/2013 jichi 2 // 8/21/2013 jichi
3 // Branch: ITH_SYS/SYS.cpp, rev 126 3 // Branch: ITH_SYS/SYS.cpp, rev 126
4 // 4 //
...@@ -758,6 +758,12 @@ BOOL IthInitSystemService() ...@@ -758,6 +758,12 @@ BOOL IthInitSystemService()
758 return FALSE; 758 return FALSE;
759 DWORD base = (DWORD)peb->ReadOnlySharedMemoryBase; 759 DWORD base = (DWORD)peb->ReadOnlySharedMemoryBase;
760 DWORD end = base + info.RegionSize - 0x40; 760 DWORD end = base + info.RegionSize - 0x40;
761 +
762 + // I_Jemin 13/11/2016
763 + // Prevent redirecting SYSWOW64 to receive Shift-JIS
764 + PVOID OldValue;
765 + Wow64DisableWow64FsRedirection(&OldValue);
766 +
761 static WCHAR system32[] = L"system32"; 767 static WCHAR system32[] = L"system32";
762 for (;base < end; base += 2) 768 for (;base < end; base += 2)
763 if (::memcmp((PVOID)base, system32, 0x10) == 0) { 769 if (::memcmp((PVOID)base, system32, 0x10) == 0) {
...@@ -767,6 +773,11 @@ BOOL IthInitSystemService() ...@@ -767,6 +773,11 @@ BOOL IthInitSystemService()
767 while (*obj != L'\\') obj++; 773 while (*obj != L'\\') obj++;
768 break; 774 break;
769 } 775 }
776 +
777 + // Eguni 13/11/2016
778 + // Dispose redirection
779 + Wow64EnableWow64FsRedirection(FALSE);
780 +
770 if (base == end) 781 if (base == end)
771 return FALSE; 782 return FALSE;
772 } 783 }
......