• R/O
  • SSH
  • HTTPS

tortoisesvn: Commit


Commit MetaInfo

Revision29437 (tree)
Time2022-08-03 03:32:23
Authorstefankueng

Log Message

manually load the scilexer.dll on startup

Change Summary

Incremental Difference

--- trunk/src/TortoiseUDiff/TortoiseUDiff.cpp (revision 29436)
+++ trunk/src/TortoiseUDiff/TortoiseUDiff.cpp (revision 29437)
@@ -1,6 +1,6 @@
11 // TortoiseSVN - a Windows shell extension for easy version control
22
3-// Copyright (C) 2003-2008, 2010-2012, 2014-2015, 2020-2021 - TortoiseSVN
3+// Copyright (C) 2003-2008, 2010-2012, 2014-2015, 2020-2022 - TortoiseSVN
44 // Copyright (C) 2011-2016 - TortoiseGit
55
66 // This program is free software; you can redistribute it and/or
@@ -27,6 +27,7 @@
2727 #include "../Utils/CrashReport.h"
2828 #include "ResString.h"
2929 #include "registry.h"
30+#include "SmartHandle.h"
3031
3132 #include <commctrl.h>
3233 #pragma comment(lib, "comctl32.lib")
@@ -60,6 +61,10 @@
6061 ULONG_PTR gdiplusToken;
6162 Gdiplus::GdiplusStartup(&gdiplusToken, &gdiplusStartupInput, nullptr);
6263
64+ CAutoLibrary hSciLexerDll = ::LoadLibrary(L"SciLexer.DLL");
65+ if (hSciLexerDll == nullptr)
66+ return FALSE;
67+
6368 CLangDll langDll;
6469 hResource = langDll.Init(L"TortoiseUDiff", langId);
6570 if (!hResource)
Show on old repository browser