Skip to content

Commit

Permalink
Fix bug for initially loaded patchset
Browse files Browse the repository at this point in the history
  • Loading branch information
leecher1337 committed Jun 14, 2023
1 parent 0fd17f8 commit 8ce568e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/esfmbank.c
Original file line number Diff line number Diff line change
Expand Up @@ -692,7 +692,9 @@ LRESULT CALLBACK MainDlgProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lPar
EnumMIDIDevices(hWnd);
if (GetFileAttributes("bnk_common.bin") != 0xFFFFFFFF)
{
LoadPatchSet(hWnd, "bnk_common.bin");
lstrcpy(szCurrentFileName, "bnk_common.bin");
LoadPatchSet(hWnd, szCurrentFileName);
EnableMenuItem(GetMenu(hWnd), IDM_SAVE, MF_ENABLED);
PatchSetToMask(hWnd, &m_patches.patches[0]);
}
return TRUE;
Expand Down

0 comments on commit 8ce568e

Please sign in to comment.