From 7768450e74da5cc6b88a662c55310c01938724c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tam=C3=A1s=20B=C3=A1lint=20Misius?= Date: Mon, 19 Dec 2022 20:51:54 +0100 Subject: [PATCH] Fix document icons on windows I was wrong in dd7178dbc8d00c7eea4e92d7a3c4d335402cd9f2, we do need resource.h after all. --- src/client/Client.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/client/Client.cpp b/src/client/Client.cpp index ed4da1469..74090d50e 100644 --- a/src/client/Client.cpp +++ b/src/client/Client.cpp @@ -32,6 +32,7 @@ # include # include # include +# include "resource.h" #else # include # include @@ -1573,6 +1574,10 @@ bool Client::DoInstallation() CoInitializeEx(NULL, COINIT_MULTITHREADED); auto exe = Platform::ExecutableName(); +#ifndef IDI_DOC_ICON + // make this fail so I don't remove #include "resource.h" again and get away with it +# error where muh IDI_DOC_ICON D: +#endif auto icon = exe + ",-" MTOS(IDI_DOC_ICON); auto path = Platform::GetCwd(); auto open = ByteString::Build("\"", exe, "\" ddir \"", path, "\" \"file://%1\"");