https://git.reactos.org/?p=reactos.git;a=commitdiff;h=f31f9facc925621150739…
commit f31f9facc92562115073917fdc5432d2abb8e8ea
Author: Whindmar Saksit <whindsaks(a)proton.me>
AuthorDate: Sat Dec 2 12:38:09 2023 +0100
Commit: GitHub <noreply(a)github.com>
CommitDate: Sat Dec 2 12:38:09 2023 +0100
[URL] Add icon resource for .url files (#6081)
Otherwise, the registration for .url files and the http/https protocols point to a
missing icon in url.dll.
---
dll/win32/url/CMakeLists.txt | 10 +++++++++-
dll/win32/url/res/102.ico | Bin 0 -> 22486 bytes
dll/win32/url/url.rc | 1 +
3 files changed, 10 insertions(+), 1 deletion(-)
diff --git a/dll/win32/url/CMakeLists.txt b/dll/win32/url/CMakeLists.txt
index 6ccecd52884..834b7ba87df 100644
--- a/dll/win32/url/CMakeLists.txt
+++ b/dll/win32/url/CMakeLists.txt
@@ -8,7 +8,15 @@ list(APPEND SOURCE
${CMAKE_CURRENT_BINARY_DIR}/url_stubs.c
${CMAKE_CURRENT_BINARY_DIR}/url.def)
-add_library(url MODULE ${SOURCE})
+list(APPEND url_rc_deps
+ ${CMAKE_CURRENT_SOURCE_DIR}/res/102.ico)
+
+set_source_files_properties(url.rc PROPERTIES OBJECT_DEPENDS "${url_rc_deps}")
+
+add_library(url MODULE
+ ${SOURCE}
+ url.rc)
+
set_module_type(url win32dll)
target_link_libraries(url wine)
add_importlibs(url shell32 shlwapi msvcrt kernel32 ntdll)
diff --git a/dll/win32/url/res/102.ico b/dll/win32/url/res/102.ico
new file mode 100644
index 00000000000..d42b5f112ce
Binary files /dev/null and b/dll/win32/url/res/102.ico differ
diff --git a/dll/win32/url/url.rc b/dll/win32/url/url.rc
new file mode 100644
index 00000000000..e64407d5643
--- /dev/null
+++ b/dll/win32/url/url.rc
@@ -0,0 +1 @@
+102 ICON "res/102.ico"