Fix declarations.
This commit is contained in:
parent
0220d7ac89
commit
f674f1f71b
|
@ -974,7 +974,7 @@ static void destroy_key_container(OBJECTHDR *pObjectHdr)
|
||||||
* Success: Handle to the new key container.
|
* Success: Handle to the new key container.
|
||||||
* Failure: INVALID_HANDLE_VALUE
|
* Failure: INVALID_HANDLE_VALUE
|
||||||
*/
|
*/
|
||||||
static HCRYPTPROV new_key_container(PCHAR pszContainerName, DWORD dwFlags, PVTableProvStruc pVTable)
|
static HCRYPTPROV new_key_container(PCCH pszContainerName, DWORD dwFlags, PVTableProvStruc pVTable)
|
||||||
{
|
{
|
||||||
KEYCONTAINER *pKeyContainer;
|
KEYCONTAINER *pKeyContainer;
|
||||||
HCRYPTPROV hKeyContainer;
|
HCRYPTPROV hKeyContainer;
|
||||||
|
|
|
@ -1091,7 +1091,7 @@ static void test_verify_signature() {
|
||||||
if (!result) return;
|
if (!result) return;
|
||||||
}
|
}
|
||||||
|
|
||||||
void test_rsa_encrypt()
|
static void test_rsa_encrypt(void)
|
||||||
{
|
{
|
||||||
HCRYPTKEY hRSAKey;
|
HCRYPTKEY hRSAKey;
|
||||||
BYTE abData[2048] = "Wine rocks!";
|
BYTE abData[2048] = "Wine rocks!";
|
||||||
|
@ -1125,7 +1125,7 @@ void test_rsa_encrypt()
|
||||||
CryptDestroyKey(hRSAKey);
|
CryptDestroyKey(hRSAKey);
|
||||||
}
|
}
|
||||||
|
|
||||||
void test_schannel_provider()
|
static void test_schannel_provider(void)
|
||||||
{
|
{
|
||||||
HCRYPTPROV hProv;
|
HCRYPTPROV hProv;
|
||||||
HCRYPTKEY hRSAKey, hMasterSecret, hServerWriteKey, hServerWriteMACKey;
|
HCRYPTKEY hRSAKey, hMasterSecret, hServerWriteKey, hServerWriteMACKey;
|
||||||
|
@ -1372,7 +1372,7 @@ void test_schannel_provider()
|
||||||
CryptReleaseContext(hProv, 0);
|
CryptReleaseContext(hProv, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
void test_enum_container()
|
static void test_enum_container(void)
|
||||||
{
|
{
|
||||||
BYTE abContainerName[256];
|
BYTE abContainerName[256];
|
||||||
DWORD dwBufferLen;
|
DWORD dwBufferLen;
|
||||||
|
|
|
@ -547,12 +547,12 @@ static void test_instances(void)
|
||||||
check_thread_instance( "EDIT", (HINSTANCE)0x12345678, (HINSTANCE)0x12345678, (HINSTANCE)0xdeadbeef );
|
check_thread_instance( "EDIT", (HINSTANCE)0x12345678, (HINSTANCE)0x12345678, (HINSTANCE)0xdeadbeef );
|
||||||
}
|
}
|
||||||
|
|
||||||
LRESULT WINAPI TestDlgProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
|
static LRESULT WINAPI TestDlgProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
|
||||||
{
|
{
|
||||||
return DefWindowProc(hWnd, uMsg, wParam, lParam);
|
return DefWindowProc(hWnd, uMsg, wParam, lParam);
|
||||||
}
|
}
|
||||||
|
|
||||||
BOOL RegisterTestDialog(HINSTANCE hInstance)
|
static BOOL RegisterTestDialog(HINSTANCE hInstance)
|
||||||
{
|
{
|
||||||
WNDCLASSEX wcx;
|
WNDCLASSEX wcx;
|
||||||
ATOM atom = 0;
|
ATOM atom = 0;
|
||||||
|
@ -582,7 +582,7 @@ BOOL RegisterTestDialog(HINSTANCE hInstance)
|
||||||
|
|
||||||
/* test registering a dialog box created by using the CLASS directive in a
|
/* test registering a dialog box created by using the CLASS directive in a
|
||||||
resource file, then test creating the dialog using CreateDialogParam. */
|
resource file, then test creating the dialog using CreateDialogParam. */
|
||||||
void WINAPI CreateDialogParamTest(HINSTANCE hInstance)
|
static void WINAPI CreateDialogParamTest(HINSTANCE hInstance)
|
||||||
{
|
{
|
||||||
HWND hWndMain;
|
HWND hWndMain;
|
||||||
|
|
||||||
|
|
|
@ -42,7 +42,7 @@ static char szEditTest2Name[] = "Edit Test 2 window class";
|
||||||
static HINSTANCE hinst;
|
static HINSTANCE hinst;
|
||||||
static HWND hwndET2;
|
static HWND hwndET2;
|
||||||
|
|
||||||
HWND create_editcontrol (DWORD style, DWORD exstyle)
|
static HWND create_editcontrol (DWORD style, DWORD exstyle)
|
||||||
{
|
{
|
||||||
HWND handle;
|
HWND handle;
|
||||||
|
|
||||||
|
|
|
@ -37,7 +37,7 @@ static const char *strings[4] = {
|
||||||
"Fourth added which is very long because at some time we only had a 256 byte character buffer and that was overflowing in one of those applications that had a common dialog file open box and tried to add a 300 characters long custom filter string which of course the code did not like and crashed. Just make sure this string is longer than 256 characters."
|
"Fourth added which is very long because at some time we only had a 256 byte character buffer and that was overflowing in one of those applications that had a common dialog file open box and tried to add a 300 characters long custom filter string which of course the code did not like and crashed. Just make sure this string is longer than 256 characters."
|
||||||
};
|
};
|
||||||
|
|
||||||
HWND
|
static HWND
|
||||||
create_listbox (DWORD add_style)
|
create_listbox (DWORD add_style)
|
||||||
{
|
{
|
||||||
HWND handle=CreateWindow ("LISTBOX", "TestList",
|
HWND handle=CreateWindow ("LISTBOX", "TestList",
|
||||||
|
@ -75,7 +75,7 @@ struct listbox_test {
|
||||||
struct listbox_stat sel, sel_todo;
|
struct listbox_stat sel, sel_todo;
|
||||||
};
|
};
|
||||||
|
|
||||||
void
|
static void
|
||||||
listbox_query (HWND handle, struct listbox_stat *results)
|
listbox_query (HWND handle, struct listbox_stat *results)
|
||||||
{
|
{
|
||||||
results->selected = SendMessage (handle, LB_GETCURSEL, 0, 0);
|
results->selected = SendMessage (handle, LB_GETCURSEL, 0, 0);
|
||||||
|
@ -84,7 +84,7 @@ listbox_query (HWND handle, struct listbox_stat *results)
|
||||||
results->selcount = SendMessage (handle, LB_GETSELCOUNT, 0, 0);
|
results->selcount = SendMessage (handle, LB_GETSELCOUNT, 0, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
static void
|
||||||
buttonpress (HWND handle, WORD x, WORD y)
|
buttonpress (HWND handle, WORD x, WORD y)
|
||||||
{
|
{
|
||||||
LPARAM lp=x+(y<<16);
|
LPARAM lp=x+(y<<16);
|
||||||
|
@ -95,7 +95,7 @@ buttonpress (HWND handle, WORD x, WORD y)
|
||||||
REDRAW;
|
REDRAW;
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
static void
|
||||||
keypress (HWND handle, WPARAM keycode, BYTE scancode, BOOL extended)
|
keypress (HWND handle, WPARAM keycode, BYTE scancode, BOOL extended)
|
||||||
{
|
{
|
||||||
LPARAM lp=1+(scancode<<16)+(extended?KEYEVENTF_EXTENDEDKEY:0);
|
LPARAM lp=1+(scancode<<16)+(extended?KEYEVENTF_EXTENDEDKEY:0);
|
||||||
|
@ -121,7 +121,7 @@ keypress (HWND handle, WPARAM keycode, BYTE scancode, BOOL extended)
|
||||||
listbox_todo_field_ok(t, s, caret, got); \
|
listbox_todo_field_ok(t, s, caret, got); \
|
||||||
listbox_todo_field_ok(t, s, selcount, got)
|
listbox_todo_field_ok(t, s, selcount, got)
|
||||||
|
|
||||||
void
|
static void
|
||||||
check (const struct listbox_test test)
|
check (const struct listbox_test test)
|
||||||
{
|
{
|
||||||
struct listbox_stat answer;
|
struct listbox_stat answer;
|
||||||
|
@ -172,7 +172,7 @@ check (const struct listbox_test test)
|
||||||
DestroyWindow (hLB);
|
DestroyWindow (hLB);
|
||||||
}
|
}
|
||||||
|
|
||||||
void check_item_height()
|
static void check_item_height(void)
|
||||||
{
|
{
|
||||||
HWND hLB;
|
HWND hLB;
|
||||||
HDC hdc;
|
HDC hdc;
|
||||||
|
|
|
@ -160,7 +160,7 @@ static void test_change_message( int action, int optional )
|
||||||
change_last_param = 0;
|
change_last_param = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static BOOL test_error_msg ( int rc, char *name )
|
static BOOL test_error_msg ( int rc, const char *name )
|
||||||
{
|
{
|
||||||
DWORD last_error = GetLastError();
|
DWORD last_error = GetLastError();
|
||||||
|
|
||||||
|
|
|
@ -2627,7 +2627,7 @@ static void test_window_styles()
|
||||||
check_window_style(0, WS_EX_APPWINDOW, WS_CLIPSIBLINGS|WS_CAPTION, WS_EX_APPWINDOW|WS_EX_WINDOWEDGE);
|
check_window_style(0, WS_EX_APPWINDOW, WS_CLIPSIBLINGS|WS_CAPTION, WS_EX_APPWINDOW|WS_EX_WINDOWEDGE);
|
||||||
}
|
}
|
||||||
|
|
||||||
void test_scrollvalidate( HWND parent)
|
static void test_scrollvalidate( HWND parent)
|
||||||
{
|
{
|
||||||
HDC hdc;
|
HDC hdc;
|
||||||
HRGN hrgn=CreateRectRgn(0,0,0,0);
|
HRGN hrgn=CreateRectRgn(0,0,0,0);
|
||||||
|
@ -2758,7 +2758,7 @@ void test_scrollvalidate( HWND parent)
|
||||||
|
|
||||||
/* couple of tests of return values of scrollbar functions
|
/* couple of tests of return values of scrollbar functions
|
||||||
* called on a scrollbarless window */
|
* called on a scrollbarless window */
|
||||||
void test_scroll()
|
static void test_scroll(void)
|
||||||
{
|
{
|
||||||
BOOL ret;
|
BOOL ret;
|
||||||
INT min, max;
|
INT min, max;
|
||||||
|
@ -2792,7 +2792,7 @@ void test_scroll()
|
||||||
DestroyWindow( hwnd);
|
DestroyWindow( hwnd);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void test_params()
|
static void test_params(void)
|
||||||
{
|
{
|
||||||
INT rc;
|
INT rc;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue