Skip to content

Commit

Permalink
accept *.jpeg
Browse files Browse the repository at this point in the history
  • Loading branch information
katahiromz committed Jan 13, 2024
1 parent 397ae5a commit 95194b8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -858,7 +858,8 @@ BOOL XgIsImageFile(LPCWSTR pszFileName) noexcept
lstrcmpiW(pchDotExt, L".emf") == 0 ||
lstrcmpiW(pchDotExt, L".gif") == 0 ||
lstrcmpiW(pchDotExt, L".png") == 0 ||
lstrcmpiW(pchDotExt, L".jpg") == 0)
lstrcmpiW(pchDotExt, L".jpg") == 0 ||
lstrcmpiW(pchDotExt, L".jpeg") == 0)
{
return TRUE;
}
Expand Down
2 changes: 1 addition & 1 deletion XG_PictureBoxDialog.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ class XG_PictureBoxDialog : public XG_Dialog
{
WCHAR szFile[MAX_PATH] = L"";
OPENFILENAMEW ofn = { sizeof(ofn), hwnd };
ofn.lpstrFilter = L"Picture Files\0*.bmp;*.emf;*.png;*.jpg;*.gif\0";
ofn.lpstrFilter = L"Picture Files\0*.bmp;*.emf;*.png;*.jpg;*.jpeg;*.gif\0";
ofn.lpstrFile = szFile;
ofn.nMaxFile = _countof(szFile);
ofn.lpstrTitle = L"Choose Picture File";
Expand Down

0 comments on commit 95194b8

Please sign in to comment.