Skip to content

Commit 04a5653

Browse files
committed
Temporary workaround for winsiderss/systeminformer#2455
1 parent 6ba8f16 commit 04a5653

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

generate_docs.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -339,6 +339,21 @@ def split_header_to_chunks(path: Path) -> List[Chunk]:
339339
code = path.read_text()
340340
original_newline_count = code.count('\n')
341341

342+
# Temporary workaround for:
343+
# https://github.com/winsiderss/systeminformer/pull/2455
344+
if path.name == 'ntrtl.h':
345+
code = code.replace("""#if (PHNT_VERSION >= PHNT_WINDOWS_VISTA)
346+
347+
// rev
348+
#define BOUNDARY_DESCRIPTOR_ADD_APPCONTAINER_SID 0x0001
349+
350+
// begin_private""", """// begin_private
351+
352+
#if (PHNT_VERSION >= PHNT_WINDOWS_VISTA)
353+
354+
// rev
355+
#define BOUNDARY_DESCRIPTOR_ADD_APPCONTAINER_SID 0x0001""")
356+
342357
# Tabs to spaces, only at the beginning of the line.
343358
code = re.sub(r'^\t+', lambda x: 4 * ' ' * len(x.group(0)), code, flags=re.MULTILINE)
344359

0 commit comments

Comments
 (0)