mirror of
https://github.com/reactos/reactos.git
synced 2024-12-30 19:14:31 +00:00
[SHELL32_APITEST] SHLimitInputEdit: Fix C4509 warning (#2321)
CORE-11701
This commit is contained in:
parent
85a854f6b5
commit
ed3c50f748
1 changed files with 19 additions and 10 deletions
|
@ -238,6 +238,24 @@ PropEnumProc(
|
|||
return TRUE;
|
||||
}
|
||||
|
||||
static void
|
||||
DoNullFolderTest(HWND hEdt1)
|
||||
{
|
||||
HRESULT hr;
|
||||
|
||||
_SEH2_TRY
|
||||
{
|
||||
hr = SHLimitInputEdit(hEdt1, NULL);
|
||||
}
|
||||
_SEH2_EXCEPT(EXCEPTION_EXECUTE_HANDLER)
|
||||
{
|
||||
hr = 0xDEAD;
|
||||
}
|
||||
_SEH2_END;
|
||||
|
||||
ok_int(hr, 0xDEAD);
|
||||
}
|
||||
|
||||
static INT_PTR CALLBACK
|
||||
DialogProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
|
||||
{
|
||||
|
@ -249,16 +267,7 @@ DialogProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
|
|||
HRESULT hr;
|
||||
WCHAR szText[64];
|
||||
|
||||
_SEH2_TRY
|
||||
{
|
||||
hr = SHLimitInputEdit(hEdt1, NULL);
|
||||
}
|
||||
_SEH2_EXCEPT(EXCEPTION_EXECUTE_HANDLER)
|
||||
{
|
||||
hr = 0xDEAD;
|
||||
}
|
||||
_SEH2_END;
|
||||
ok_int(hr, 0xDEAD);
|
||||
DoNullFolderTest(hEdt1);
|
||||
|
||||
{
|
||||
CShellFolder sf(123, FALSE);
|
||||
|
|
Loading…
Reference in a new issue