aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llappviewerwin32.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--linden/indra/newview/llappviewerwin32.cpp28
1 files changed, 4 insertions, 24 deletions
diff --git a/linden/indra/newview/llappviewerwin32.cpp b/linden/indra/newview/llappviewerwin32.cpp
index 2e74d0a..1d05a6e 100644
--- a/linden/indra/newview/llappviewerwin32.cpp
+++ b/linden/indra/newview/llappviewerwin32.cpp
@@ -78,7 +78,7 @@ extern "C" {
78#endif 78#endif
79#endif 79#endif
80 80
81const std::string LLAppViewerWin32::sWindowClass = "Imprudence"; 81const std::string LLAppViewerWin32::sWindowClass = "meta-impy";
82 82
83LONG WINAPI viewer_windows_exception_handler(struct _EXCEPTION_POINTERS *exception_infop) 83LONG WINAPI viewer_windows_exception_handler(struct _EXCEPTION_POINTERS *exception_infop)
84{ 84{
@@ -128,7 +128,7 @@ LONG WINAPI viewer_windows_exception_handler(struct _EXCEPTION_POINTERS *excepti
128// Create app mutex creates a unique global windows object. 128// Create app mutex creates a unique global windows object.
129// If the object can be created it returns true, otherwise 129// If the object can be created it returns true, otherwise
130// it returns false. The false result can be used to determine 130// it returns false. The false result can be used to determine
131// if another instance of a second life app (this vers. or later) 131// if another instance of a viewer app (this vers. or later)
132// is running. 132// is running.
133// *NOTE: Do not use this method to run a single instance of the app. 133// *NOTE: Do not use this method to run a single instance of the app.
134// This is intended to help debug problems with the cross-platform 134// This is intended to help debug problems with the cross-platform
@@ -601,27 +601,7 @@ std::string LLAppViewerWin32::generateSerialNumber()
601 char serial_md5[MD5HEX_STR_SIZE]; // Flawfinder: ignore 601 char serial_md5[MD5HEX_STR_SIZE]; // Flawfinder: ignore
602 serial_md5[0] = 0; 602 serial_md5[0] = 0;
603 603
604 DWORD serial = 0; 604 // Don't do anything, serious privacy breach to leak internal identifying numbers out to the 'net.
605 DWORD flags = 0; 605
606 BOOL success = GetVolumeInformation(
607 L"C:\\",
608 NULL, // volume name buffer
609 0, // volume name buffer size
610 &serial, // volume serial
611 NULL, // max component length
612 &flags, // file system flags
613 NULL, // file system name buffer
614 0); // file system name buffer size
615 if (success)
616 {
617 LLMD5 md5;
618 md5.update( (unsigned char*)&serial, sizeof(DWORD));
619 md5.finalize();
620 md5.hex_digest(serial_md5);
621 }
622 else
623 {
624 llwarns << "GetVolumeInformation failed" << llendl;
625 }
626 return serial_md5; 606 return serial_md5;
627} 607}