From e2b94e6cb9ac783b2814794b584ea982b2e099cc Mon Sep 17 00:00:00 2001
From: Michael Maltsev <4129781+m417z@users.noreply.github.com>
Date: Tue, 3 Sep 2024 14:31:31 +0300
Subject: [PATCH] Use a temporary self-hosted file which is missing on the
 symbol server

---
 scripts/02_download_binaries.py | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/scripts/02_download_binaries.py b/scripts/02_download_binaries.py
index 1a973d66d..279e23834 100644
--- a/scripts/02_download_binaries.py
+++ b/scripts/02_download_binaries.py
@@ -32,6 +32,11 @@ def get_modules_from_extracted_symbols(extracted_symbols: Path):
 
 
 def make_symbol_server_url(file_name, timestamp, size):
+    # Temporary self-hosted file which is missing on the symbol server:
+    # https://msdl.microsoft.com/download/symbols/taskbar.dll/083051263bb000/taskbar.dll
+    if (file_name, timestamp, size) == ('taskbar.dll', 0x08305126, 0x3bb000):
+        return f'https://ramensoftware.com/misc/_temp_bin/{file_name}/{timestamp:08X}{size:x}/{file_name}'
+
     return f'https://msdl.microsoft.com/download/symbols/{file_name}/{timestamp:08X}{size:x}/{file_name}'