[RAPPS] Must apply settings changes when a new download folder is created (#7792)

This commit is contained in:
Whindmar Saksit 2025-03-19 12:24:52 +01:00 committed by GitHub
parent dba4efbcae
commit d769f5675d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 29 additions and 23 deletions

View file

@ -12,6 +12,18 @@
static HANDLE hLog = NULL;
UINT
ErrorBox(HWND hOwner, UINT Error)
{
if (!Error)
Error = ERROR_INTERNAL_ERROR; // Note: geninst.cpp depends on this
WCHAR buf[400];
UINT fmf = FORMAT_MESSAGE_IGNORE_INSERTS | FORMAT_MESSAGE_FROM_SYSTEM;
FormatMessageW(fmf, NULL, Error, 0, buf, _countof(buf), NULL);
MessageBoxW(hOwner, buf, 0, MB_OK | MB_ICONSTOP);
return Error;
}
VOID
CopyTextToClipboard(LPCWSTR lpszText)
{