https://git.reactos.org/?p=reactos.git;a=commitdiff;h=28e277b65f236393cc84e…
commit 28e277b65f236393cc84e3a8795a9e9e0846b811
Author: Bișoc George <fraizeraust99(a)gmail.com>
AuthorDate: Thu Apr 9 19:06:00 2020 +0200
Commit: GitHub <noreply(a)github.com>
CommitDate: Thu Apr 9 19:06:00 2020 +0200
[MSGINA] Redraw only the animation bar scroll (#2518)
Invalidating and updating the whole window is a waste of computation resources and may cause certain controls notably the text string control to flicker. So instead, just invalidate the specific portion of the client area which is the animation bar.
---
dll/win32/msgina/gui.c | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/dll/win32/msgina/gui.c b/dll/win32/msgina/gui.c
index e9cba9580ea..6301a19d955 100644
--- a/dll/win32/msgina/gui.c
+++ b/dll/win32/msgina/gui.c
@@ -36,6 +36,7 @@ typedef struct _DLG_DATA
PGINA_CONTEXT pgContext;
HBITMAP hLogoBitmap;
HBITMAP hBarBitmap;
+ HWND hWndBarCtrl;
DWORD BarCounter;
DWORD LogoWidth;
DWORD LogoHeight;
@@ -197,6 +198,9 @@ StatusDialogProc(
{
ERR("SetTimer(IDT_BAR) failed: %d\n", GetLastError());
}
+
+ /* Get the animation bar control */
+ pDlgData->hWndBarCtrl = GetDlgItem(hwndDlg, IDC_BAR);
}
return TRUE;
}
@@ -210,8 +214,8 @@ StatusDialogProc(
* We can divide 413 by 7 without remainder
*/
pDlgData->BarCounter = (pDlgData->BarCounter + 7) % pDlgData->BarWidth;
- InvalidateRect(hwndDlg, NULL, FALSE);
- UpdateWindow(hwndDlg);
+ InvalidateRect(pDlgData->hWndBarCtrl, NULL, FALSE);
+ UpdateWindow(pDlgData->hWndBarCtrl);
}
return TRUE;
}
https://git.reactos.org/?p=reactos.git;a=commitdiff;h=3c48ec99924b5f4b5a58d…
commit 3c48ec99924b5f4b5a58d862a7bd7e6e6f9b9362
Author: William Kent <wjk011(a)gmail.com>
AuthorDate: Thu Apr 9 10:11:31 2020 -0400
Commit: GitHub <noreply(a)github.com>
CommitDate: Thu Apr 9 16:11:31 2020 +0200
[DRWTSN32] Recognize EXCEPTION_WINE_STUB (#2514)
DrWtsn32.exe recognizes several standard exception codes, and prints their names in the crash log. However, EXCEPTION_WINE_STUB is not in this list, and as such it is treated as an unknown error and printed as "--". Having this error code given a name at the start of the crash dump is useful, as it allows me to identify calls to unimplemented issues more readily.
---
base/applications/drwtsn32/sysinfo.cpp | 2 ++
1 file changed, 2 insertions(+)
diff --git a/base/applications/drwtsn32/sysinfo.cpp b/base/applications/drwtsn32/sysinfo.cpp
index 84bc023a538..63576dccd08 100644
--- a/base/applications/drwtsn32/sysinfo.cpp
+++ b/base/applications/drwtsn32/sysinfo.cpp
@@ -9,6 +9,7 @@
#include <udmihelp.h>
#include <winreg.h>
#include <reactos/buildno.h>
+#include <reactos/stubs.h>
static const char* Exception2Str(DWORD code)
{
@@ -36,6 +37,7 @@ static const char* Exception2Str(DWORD code)
case EXCEPTION_INVALID_DISPOSITION: return "EXCEPTION_INVALID_DISPOSITION";
case EXCEPTION_GUARD_PAGE: return "EXCEPTION_GUARD_PAGE";
case EXCEPTION_INVALID_HANDLE: return "EXCEPTION_INVALID_HANDLE";
+ case EXCEPTION_WINE_STUB: return "EXCEPTION_WINE_STUB";
}
return "--";