File tree 1 file changed +0
-16
lines changed
1 file changed +0
-16
lines changed Original file line number Diff line number Diff line change @@ -78,7 +78,6 @@ auto main()
78
78
RawSMBIOSData* smbios_data {nullptr };
79
79
BYTE* smbios_data_buffer; // [0x10000] = { 0 }; //0.065536 megabytes
80
80
smbios_data_buffer = new BYTE[0x10000 ]; // 0.065536 megabytes fails
81
- // smbios_data_buffer[0x10000] = { 0 };
82
81
83
82
// HW_PROFILE_INFO hw_prof_info won't be needed
84
83
@@ -121,25 +120,11 @@ auto main()
121
120
122
121
cout << " \t get buffer size is: " << smbios_buffersize << " \n " ;
123
122
124
- //
125
- // Allocates a block of unmovable memory from the heap
126
- //
127
-
128
123
smbios_data =
129
124
reinterpret_cast <RawSMBIOSData*> (
130
- // HeapAlloc(GetProcessHeap(), 0, smbios_buffersize)
131
125
smbios_data_buffer
132
126
);
133
127
134
- /*
135
-
136
- if (!GetCurrentHwProfile(&hw_prof_info)) {
137
- cout << "Error encounters 'GetCurrentHwProfile': "
138
- << GetLastError() << "\n";
139
- _getch();
140
- }
141
-
142
- */
143
128
144
129
if (smbios_data->Length != smbios_buffersize - 8 )
145
130
{
@@ -220,6 +205,5 @@ auto main()
220
205
221
206
_getch ();
222
207
delete [] smbios_data_buffer;
223
- // HeapFree(GetProcessHeap, 0, smbios_data);
224
208
return {};
225
209
}
You can’t perform that action at this time.
0 commit comments