Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
34ab21d1
Commit
34ab21d1
authored
Dec 07, 2007
by
Rob Shearman
Committed by
Alexandre Julliard
Dec 07, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ole32: Register the window used in the marshal tests only once.
Destroy the windows that have been created when they are no longer needed.
parent
cf48f090
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
8 deletions
+9
-8
marshal.c
dlls/ole32/tests/marshal.c
+9
-8
No files found.
dlls/ole32/tests/marshal.c
View file @
34ab21d1
...
...
@@ -1831,15 +1831,19 @@ static LRESULT CALLBACK window_proc(HWND hwnd, UINT msg, WPARAM wparam, LPARAM l
}
}
static
void
test_message_reentrancy
(
void
)
static
void
register_test_window
(
void
)
{
WNDCLASS
wndclass
;
MSG
msg
;
memset
(
&
wndclass
,
0
,
sizeof
(
wndclass
));
wndclass
.
lpfnWndProc
=
window_proc
;
wndclass
.
lpszClassName
=
"WineCOMTest"
;
RegisterClass
(
&
wndclass
);
}
static
void
test_message_reentrancy
(
void
)
{
MSG
msg
;
hwnd_app
=
CreateWindow
(
"WineCOMTest"
,
NULL
,
0
,
CW_USEDEFAULT
,
CW_USEDEFAULT
,
CW_USEDEFAULT
,
CW_USEDEFAULT
,
NULL
,
NULL
,
NULL
,
0
);
ok
(
hwnd_app
!=
NULL
,
"Window creation failed
\n
"
);
...
...
@@ -1852,6 +1856,7 @@ static void test_message_reentrancy(void)
TranslateMessage
(
&
msg
);
DispatchMessage
(
&
msg
);
}
DestroyWindow
(
hwnd_app
);
}
static
HRESULT
WINAPI
TestMsg_IClassFactory_CreateInstance
(
...
...
@@ -1917,6 +1922,7 @@ static void test_call_from_message(void)
TranslateMessage
(
&
msg
);
DispatchMessage
(
&
msg
);
}
DestroyWindow
(
hwnd_app
);
}
static
void
test_WM_QUIT_handling
(
void
)
...
...
@@ -2873,7 +2879,6 @@ static void test_channel_hook(void)
START_TEST
(
marshal
)
{
WNDCLASS
wndclass
;
HMODULE
hOle32
=
GetModuleHandle
(
"ole32"
);
int
argc
;
char
**
argv
;
...
...
@@ -2890,11 +2895,7 @@ START_TEST(marshal)
return
;
}
/* register a window class used in several tests */
memset
(
&
wndclass
,
0
,
sizeof
(
wndclass
));
wndclass
.
lpfnWndProc
=
window_proc
;
wndclass
.
lpszClassName
=
"WineCOMTest"
;
RegisterClass
(
&
wndclass
);
register_test_window
();
test_cocreateinstance_proxy
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment