mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-11-21 13:22:23 -08:00
manifest generation fix
This commit is contained in:
1 parent
d1171dcabb
commit
a11e2bf57b
1 file changed
+15
-28
+15
-28
@@ -212,45 +212,32 @@ lnk_make_linker_manifest(Arena *arena,
|
|||||||
String8List srl = {0};
|
String8List srl = {0};
|
||||||
str8_serial_begin(scratch.arena, &srl);
|
str8_serial_begin(scratch.arena, &srl);
|
||||||
str8_serial_push_string(scratch.arena, &srl, str8_lit(
|
str8_serial_push_string(scratch.arena, &srl, str8_lit(
|
||||||
"<?xml version=\"1.0\" standalone=\"yes\"?>\n"
|
"<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\r\n"
|
||||||
"<assembly xmlns=\"urn:schemas-microsoft-com:asm.v1\"\n"
|
"<assembly xmlns=\"urn:schemas-microsoft-com:asm.v1\" manifestVersion=\"1.0\">\r\n"));
|
||||||
" manifestVersion=\"1.0\">\n"));
|
|
||||||
if (manifest_uac) {
|
if (manifest_uac) {
|
||||||
#if 1
|
|
||||||
String8 uac = push_str8f(scratch.arena,
|
String8 uac = push_str8f(scratch.arena,
|
||||||
" <trustInfo>\n"
|
" <trustInfo xmlns=\"urn:schemas-microsoft-com:asm.v3\">\r\n"
|
||||||
" <security>\n"
|
" <security>\r\n"
|
||||||
" <requestedPrivileges>\n"
|
" <requestedPrivileges>\r\n"
|
||||||
" <requestedExecutionLevel level=%S uiAccess=%S/>\n"
|
" <requestedExecutionLevel level=%S uiAccess=%S></requestedExecutionLevel>\r\n"
|
||||||
" </requestedPrivileges>\n"
|
" </requestedPrivileges>\r\n"
|
||||||
" </security>\n"
|
" </security>\r\n"
|
||||||
" </trustInfo>\n",
|
" </trustInfo>\r\n",
|
||||||
manifest_level,
|
manifest_level,
|
||||||
manifest_ui_access);
|
manifest_ui_access);
|
||||||
#else
|
|
||||||
String8 uac = push_str8f(scratch.arena,
|
|
||||||
"<ms_asmv2:trustInfo xmlns:ms_asmv2="urn:schemas-microsoft-com:asm.v2" xmlns="urn:schemas-microsoft-com:asm.v3">\n"
|
|
||||||
"<ms_asmv2:security>"
|
|
||||||
"<ms_asmv2:requestedPrivileges>"
|
|
||||||
"<ms_asmv2:requestedExecutionLevel level=%S uiAccess=%S>"
|
|
||||||
"</ms_asmv2:requestedExecutionLevel>"
|
|
||||||
"</ms_asmv2:requestedPrivileges>"
|
|
||||||
"</ms_asmv2:security>"
|
|
||||||
"</ms_asmv2:trustInfo>", manifest_level, manifest_ui_access);
|
|
||||||
#endif
|
|
||||||
str8_serial_push_string(scratch.arena, &srl, uac);
|
str8_serial_push_string(scratch.arena, &srl, uac);
|
||||||
}
|
}
|
||||||
for (String8Node *node = manifest_dependency_list.first; node != 0; node = node->next) {
|
for (String8Node *node = manifest_dependency_list.first; node != 0; node = node->next) {
|
||||||
String8 dep = push_str8f(scratch.arena,
|
String8 dep = push_str8f(scratch.arena,
|
||||||
" <dependency>\n"
|
" <dependency>\r\n"
|
||||||
" <dependentAssembly>\n"
|
" <dependentAssembly>\r\n"
|
||||||
" <assemblyIdentity %S/>\n"
|
" <assemblyIdentity %S></assemblyIdentity>\r\n"
|
||||||
" </dependentAssembly>\n"
|
" </dependentAssembly>\r\n"
|
||||||
" </dependency>\n",
|
" </dependency>\r\n",
|
||||||
node->string);
|
node->string);
|
||||||
str8_serial_push_string(scratch.arena, &srl, dep);
|
str8_serial_push_string(scratch.arena, &srl, dep);
|
||||||
}
|
}
|
||||||
str8_serial_push_string(scratch.arena, &srl, str8_lit("</assembly>\n"));
|
str8_serial_push_string(scratch.arena, &srl, str8_lit("</assembly>\r\n"));
|
||||||
|
|
||||||
String8 result = str8_list_join(arena, &srl, 0);
|
String8 result = str8_list_join(arena, &srl, 0);
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user