Fix declarations.

This commit is contained in:
Mike McCormack 2005-06-15 10:20:53 +00:00 committed by Alexandre Julliard
parent 0220d7ac89
commit f674f1f71b
7 changed files with 18 additions and 18 deletions

View File

@ -974,7 +974,7 @@ static void destroy_key_container(OBJECTHDR *pObjectHdr)
* Success: Handle to the new key container.
* 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;
HCRYPTPROV hKeyContainer;

View File

@ -1091,7 +1091,7 @@ static void test_verify_signature() {
if (!result) return;
}
void test_rsa_encrypt()
static void test_rsa_encrypt(void)
{
HCRYPTKEY hRSAKey;
BYTE abData[2048] = "Wine rocks!";
@ -1125,7 +1125,7 @@ void test_rsa_encrypt()
CryptDestroyKey(hRSAKey);
}
void test_schannel_provider()
static void test_schannel_provider(void)
{
HCRYPTPROV hProv;
HCRYPTKEY hRSAKey, hMasterSecret, hServerWriteKey, hServerWriteMACKey;
@ -1372,7 +1372,7 @@ void test_schannel_provider()
CryptReleaseContext(hProv, 0);
}
void test_enum_container()
static void test_enum_container(void)
{
BYTE abContainerName[256];
DWORD dwBufferLen;

View File

@ -547,12 +547,12 @@ static void test_instances(void)
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);
}
BOOL RegisterTestDialog(HINSTANCE hInstance)
static BOOL RegisterTestDialog(HINSTANCE hInstance)
{
WNDCLASSEX wcx;
ATOM atom = 0;
@ -582,7 +582,7 @@ BOOL RegisterTestDialog(HINSTANCE hInstance)
/* test registering a dialog box created by using the CLASS directive in a
resource file, then test creating the dialog using CreateDialogParam. */
void WINAPI CreateDialogParamTest(HINSTANCE hInstance)
static void WINAPI CreateDialogParamTest(HINSTANCE hInstance)
{
HWND hWndMain;

View File

@ -42,7 +42,7 @@ static char szEditTest2Name[] = "Edit Test 2 window class";
static HINSTANCE hinst;
static HWND hwndET2;
HWND create_editcontrol (DWORD style, DWORD exstyle)
static HWND create_editcontrol (DWORD style, DWORD exstyle)
{
HWND handle;

View File

@ -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."
};
HWND
static HWND
create_listbox (DWORD add_style)
{
HWND handle=CreateWindow ("LISTBOX", "TestList",
@ -75,7 +75,7 @@ struct listbox_test {
struct listbox_stat sel, sel_todo;
};
void
static void
listbox_query (HWND handle, struct listbox_stat *results)
{
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);
}
void
static void
buttonpress (HWND handle, WORD x, WORD y)
{
LPARAM lp=x+(y<<16);
@ -95,7 +95,7 @@ buttonpress (HWND handle, WORD x, WORD y)
REDRAW;
}
void
static void
keypress (HWND handle, WPARAM keycode, BYTE scancode, BOOL extended)
{
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, selcount, got)
void
static void
check (const struct listbox_test test)
{
struct listbox_stat answer;
@ -172,7 +172,7 @@ check (const struct listbox_test test)
DestroyWindow (hLB);
}
void check_item_height()
static void check_item_height(void)
{
HWND hLB;
HDC hdc;

View File

@ -160,7 +160,7 @@ static void test_change_message( int action, int optional )
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();

View File

@ -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);
}
void test_scrollvalidate( HWND parent)
static void test_scrollvalidate( HWND parent)
{
HDC hdc;
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
* called on a scrollbarless window */
void test_scroll()
static void test_scroll(void)
{
BOOL ret;
INT min, max;
@ -2792,7 +2792,7 @@ void test_scroll()
DestroyWindow( hwnd);
}
static void test_params()
static void test_params(void)
{
INT rc;