Skip to content

Commit 88fb032

Browse files
authored
Merge pull request #2011 from gorogoro123/feature/remove_static_OFNHookProcMain
static変数削除 (OFNHookProcMain関数)
2 parents 376ba87 + cc6b5e7 commit 88fb032

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

sakura_core/dlg/CDlgOpenFile_CommonFileDialog.cpp

+1-5
Original file line numberDiff line numberDiff line change
@@ -149,19 +149,16 @@ LRESULT APIENTRY OFNHookProcMain( HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lP
149149
CDlgOpenFileData* pData = (CDlgOpenFileData*)::GetProp( hwnd, s_pszOpenFileDataName );
150150
WORD wNotifyCode;
151151
WORD wID;
152-
static DLLSHAREDATA* pShareData;
153152
switch( uMsg ){
154153
case WM_MOVE:
155154
/* 「開く」ダイアログのサイズと位置 */
156-
pShareData = &GetDllShareData();
157-
::GetWindowRect( hwnd, &pShareData->m_Common.m_sOthers.m_rcOpenDialog );
155+
::GetWindowRect( hwnd, &GetDllShareData().m_Common.m_sOthers.m_rcOpenDialog );
158156
// MYTRACE( L"WM_MOVE 1\n" );
159157
break;
160158
case WM_COMMAND:
161159
wNotifyCode = HIWORD(wParam); // notification code
162160
wID = LOWORD(wParam); // item, control, or accelerator identifier
163161
switch( wNotifyCode ){
164-
// break;
165162
/* ボタン/チェックボックスがクリックされた */
166163
case BN_CLICKED:
167164
switch( wID ){
@@ -184,7 +181,6 @@ LRESULT APIENTRY OFNHookProcMain( HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lP
184181
// MYTRACE( L"pofn->hdr.code=%xh(%d)\n", pofn->hdr.code, pofn->hdr.code );
185182
break;
186183
}
187-
// return ::CallWindowProc( (int (__stdcall *)( void ))(WNDPROC)m_wpOpenDialogProc, hwnd, uMsg, wParam, lParam );
188184

189185
return ::CallWindowProc( pData->m_wpOpenDialogProc, hwnd, uMsg, wParam, lParam );
190186
}

0 commit comments

Comments
 (0)