formatting

This commit is contained in:
freedom
2023-07-22 00:33:16 -06:00
parent bb45f056ba
commit 34fae5033b
3 changed files with 40 additions and 12 deletions

View File

@@ -29,7 +29,8 @@ BOOL RunFileDlg(HWND hWndOwner,
{
HMODULE hLib = LoadLibrary(L"shell32.dll");
if (hLib) {
if (hLib)
{
FARPROC fLib = GetProcAddress(hLib, MAKEINTRESOURCEA(61));
if (fLib(hWndOwner, hIcon, lpszDir, lpszTitle, lpszDesc, dwFlags))
FreeLibrary(hLib);
@@ -49,7 +50,8 @@ BOOL ExitWindowsDialog(HWND hWndOwner)
{
HMODULE hLib = LoadLibrary(L"shell32.dll");
if (hLib) {
if (hLib)
{
FARPROC fLib = GetProcAddress(hLib, (LPCSTR)60);
if (fLib(hWndOwner))
FreeLibrary(hLib);