Commit 43403924 authored by Tarasenko Alexander's avatar Tarasenko Alexander

fixed dia 14 loader

parent fbb46489
......@@ -23,6 +23,8 @@ DEFINE_GUID(MSDIA11_CLASSGUID, 0x761d3bcd, 0x1304, 0x41d5, 0x94, 0xe8, 0xea, 0xc
DEFINE_GUID(MSDIA12_CLASSGUID, 0x3bfcea48, 0x620f, 0x4b6b, 0x81, 0xf7, 0xb9, 0xaf, 0x75, 0x45, 0x4c, 0x7d);
DEFINE_GUID(MSDIA14_CLASSGUID, 0xe6756135, 0x1e65, 0x4d17, 0x85, 0x76, 0x61, 0x07, 0x61, 0x39, 0x8c, 0x3c);
//////////////////////////////////////////////////////////////////////////////////
......@@ -55,6 +57,10 @@ static SymbolSessionPtr createSession(
if ( S_OK == hres )
break;
hres = dataSource.CoCreateInstance(__uuidof(DiaSourceAlt), NULL, CLSCTX_INPROC_SERVER);
if (S_OK == hres)
break;
hres = dataSource.CoCreateInstance(MSDIA12_CLASSGUID, NULL, CLSCTX_INPROC_SERVER);
if (S_OK == hres)
break;
......@@ -81,6 +87,14 @@ static SymbolSessionPtr createSession(
size_t pos = fileName.find_last_of(L'\\');
fileName.replace(pos, fileName.length() - pos, L"\\msdia140.dll");
hres = NoRegCoCreate(fileName.c_str(), MSDIA14_CLASSGUID, __uuidof(IDiaDataSource), (void**)&dataSource);
if (S_OK == hres)
break;
pos = fileName.find_last_of(L'\\');
fileName.replace(pos, fileName.length() - pos, L"\\msdia120.dll");
hres = NoRegCoCreate(fileName.c_str(), MSDIA12_CLASSGUID, __uuidof(IDiaDataSource), (void**)&dataSource);
......
......@@ -228,9 +228,6 @@
<ProjectReference Include="..\..\source\kdlib.vcxproj">
<Project>{3e9c538f-f060-4e86-ab7d-d44439615b63}</Project>
</ProjectReference>
<ProjectReference Include="..\..\source\kdlib_vc120.vcxproj">
<Project>{3e9c538f-f060-4e86-ab7d-d44439615b63}</Project>
</ProjectReference>
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment