Skip to content

Commit fd2b4e7

Browse files
Removed Useless and Misleading Comments
1 parent 0b26063 commit fd2b4e7

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

hwid_checker/hwid_checker.cpp

-16
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,6 @@ auto main()
7878
RawSMBIOSData* smbios_data {nullptr};
7979
BYTE* smbios_data_buffer; //[0x10000] = { 0 }; //0.065536 megabytes
8080
smbios_data_buffer = new BYTE[0x10000]; //0.065536 megabytes fails
81-
//smbios_data_buffer[0x10000] = { 0 };
8281

8382
// HW_PROFILE_INFO hw_prof_info won't be needed
8483

@@ -121,25 +120,11 @@ auto main()
121120

122121
cout << "\tget buffer size is: " << smbios_buffersize << "\n";
123122

124-
//
125-
// Allocates a block of unmovable memory from the heap
126-
//
127-
128123
smbios_data =
129124
reinterpret_cast<RawSMBIOSData*> (
130-
//HeapAlloc(GetProcessHeap(), 0, smbios_buffersize)
131125
smbios_data_buffer
132126
);
133127

134-
/*
135-
136-
if (!GetCurrentHwProfile(&hw_prof_info)) {
137-
cout << "Error encounters 'GetCurrentHwProfile': "
138-
<< GetLastError() << "\n";
139-
_getch();
140-
}
141-
142-
*/
143128

144129
if (smbios_data->Length != smbios_buffersize - 8)
145130
{
@@ -220,6 +205,5 @@ auto main()
220205

221206
_getch();
222207
delete [] smbios_data_buffer;
223-
//HeapFree(GetProcessHeap, 0, smbios_data);
224208
return {};
225209
}

0 commit comments

Comments
 (0)