Merge pull request #1202 from RadWolfie/eeprom-hotfix

Hotfix EEPROM
This commit is contained in:
RadWolfie 2018-05-24 20:48:23 -05:00 committed by GitHub
commit aaf6579c45
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -464,7 +464,7 @@ INT_PTR CALLBACK DlgEepromConfigProc(HWND hWndDlg, UINT uMsg, WPARAM wParam, LPA
{
if (g_bHasChanges) {
WriteEepromInMemory(hWndDlg);
std::basic_ofstream<uint8_t> EepromFile(szFilePath_EEPROM_bin, std::ios::out);
std::basic_ofstream<uint8_t> EepromFile(szFilePath_EEPROM_bin, std::ios::binary);
if (EepromFile.is_open()) {
EepromFile.write(reinterpret_cast<uint8_t*>(pEEPROM_GUI), EEPROM_SIZE);
EepromFile.close();