diff options
Diffstat (limited to 'src/ildasm/dman.cpp')
-rw-r--r-- | src/ildasm/dman.cpp | 22 |
1 files changed, 1 insertions, 21 deletions
diff --git a/src/ildasm/dman.cpp b/src/ildasm/dman.cpp index d0b525556b..30724fc795 100644 --- a/src/ildasm/dman.cpp +++ b/src/ildasm/dman.cpp @@ -10,7 +10,6 @@ #include "debugmacros.h" #include "corpriv.h" #include "dasmenum.hpp" -#include "dasmgui.h" #include "formattype.h" #include "dis.h" @@ -727,7 +726,7 @@ static void DumpResourceFile(void *GUICookie, BYTE *pRes, DWORD dwOffset, LPCWST memcpy(&L,pParam->pRes+pParam->dwOffset,sizeof(DWORD)); sprintf_s(szString,SZSTRING_SIZE,COMMENT("%s// Offset: 0x%8.8X Length: 0x%8.8X"), g_szAsmCodeIndent,pParam->dwOffset,L); printLine(pParam->GUICookie,szString); - if ((!(g_Mode & MODE_GUI)) && (g_pFile != NULL)) // embedded resource -- dump as .resources file + if (g_pFile != NULL) // embedded resource -- dump as .resources file { FILE *pF = NULL; _wfopen_s(&pF, pParam->wzFileName, W("wb")); @@ -942,11 +941,6 @@ void DumpManifestResources(void* GUICookie) else nManRes=0; } -#ifndef FEATURE_CORECLR -// CLR internal hosting API -extern ICLRRuntimeHostInternal *g_pCLRRuntimeHostInternal; -#endif - IMetaDataAssemblyImport* GetAssemblyImport(void* GUICookie) { struct Param @@ -996,7 +990,6 @@ IMetaDataAssemblyImport* GetAssemblyImport(void* GUICookie) if(pdwSize && *pdwSize) { pbManifest += sizeof(DWORD); -#ifdef FEATURE_CORECLR if (SUCCEEDED(hr = getMetaDataInternalInterface( pbManifest, VAL32(*pdwSize), @@ -1008,19 +1001,6 @@ IMetaDataAssemblyImport* GetAssemblyImport(void* GUICookie) pParam->pImport, IID_IMetaDataAssemblyImport, (LPVOID *)&pParam->pAssemblyImport))) -#else - if (SUCCEEDED(hr = g_pCLRRuntimeHostInternal->GetMetaDataInternalInterface( - pbManifest, - VAL32(*pdwSize), - ofRead, - IID_IMDInternalImport, - (LPVOID *)&pParam->pImport))) - { - if (FAILED(hr = g_pCLRRuntimeHostInternal->GetMetaDataPublicInterfaceFromInternal( - pParam->pImport, - IID_IMetaDataAssemblyImport, - (LPVOID *)&pParam->pAssemblyImport))) -#endif { sprintf_s(szString,SZSTRING_SIZE,RstrUTF(IDS_E_MDAFROMMDI),hr); printLine(pParam->GUICookie,COMMENT(szString)); |