summaryrefslogtreecommitdiff
path: root/plugins/CrashDumper/src/crshdmp.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/CrashDumper/src/crshdmp.cpp')
-rw-r--r--plugins/CrashDumper/src/crshdmp.cpp46
1 files changed, 22 insertions, 24 deletions
diff --git a/plugins/CrashDumper/src/crshdmp.cpp b/plugins/CrashDumper/src/crshdmp.cpp
index 7d2af2bc90..d01e364ee3 100644
--- a/plugins/CrashDumper/src/crshdmp.cpp
+++ b/plugins/CrashDumper/src/crshdmp.cpp
@@ -202,30 +202,28 @@ int OptionsInit(WPARAM wParam, LPARAM)
static int ToolbarModulesLoaded(WPARAM, LPARAM)
{
- TTBButton tbb = {0};
- tbb.cbSize = sizeof(TTBButton);
-
- tbb.pszService = MS_CRASHDUMPER_STORETOCLIP;
- tbb.name = tbb.pszTooltipUp = LPGEN("Version Information To Clipboard");
- tbb.hIconHandleUp = GetIconHandle(IDI_VITOCLIP);
- tbb.dwFlags = TTBBF_VISIBLE;
- TopToolbar_AddButton(&tbb);
-
- tbb.pszService = MS_CRASHDUMPER_STORETOFILE;
- tbb.name = tbb.pszTooltipUp = LPGEN("Version Information To File");
- tbb.hIconHandleUp = GetIconHandle(IDI_VITOFILE);
- tbb.dwFlags = 0;
- TopToolbar_AddButton(&tbb);
-
- tbb.pszService = MS_CRASHDUMPER_VIEWINFO;
- tbb.name = tbb.pszTooltipUp = LPGEN("Show Version Information");
- tbb.hIconHandleUp = GetIconHandle(IDI_VISHOW);
- TopToolbar_AddButton(&tbb);
-
- tbb.pszService = MS_CRASHDUMPER_UPLOAD;
- tbb.name = tbb.pszTooltipUp = LPGEN("Upload Version Information");
- tbb.hIconHandleUp = GetIconHandle(IDI_VIUPLOAD);
- TopToolbar_AddButton(&tbb);
+ TTBButton ttb = { sizeof(ttb) };
+ ttb.pszService = MS_CRASHDUMPER_STORETOCLIP;
+ ttb.name = ttb.pszTooltipUp = LPGEN("Version Information To Clipboard");
+ ttb.hIconHandleUp = GetIconHandle(IDI_VITOCLIP);
+ ttb.dwFlags = TTBBF_VISIBLE;
+ TopToolbar_AddButton(&ttb);
+
+ ttb.pszService = MS_CRASHDUMPER_STORETOFILE;
+ ttb.name = ttb.pszTooltipUp = LPGEN("Version Information To File");
+ ttb.hIconHandleUp = GetIconHandle(IDI_VITOFILE);
+ ttb.dwFlags = 0;
+ TopToolbar_AddButton(&ttb);
+
+ ttb.pszService = MS_CRASHDUMPER_VIEWINFO;
+ ttb.name = ttb.pszTooltipUp = LPGEN("Show Version Information");
+ ttb.hIconHandleUp = GetIconHandle(IDI_VISHOW);
+ TopToolbar_AddButton(&ttb);
+
+ ttb.pszService = MS_CRASHDUMPER_UPLOAD;
+ ttb.name = ttb.pszTooltipUp = LPGEN("Upload Version Information");
+ ttb.hIconHandleUp = GetIconHandle(IDI_VIUPLOAD);
+ TopToolbar_AddButton(&ttb);
return 0;
}