Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
5eb648c8
Commit
5eb648c8
authored
Oct 23, 2013
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Oct 23, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32/tests: Fix clipboard tests compilation with __WINESRC__ defined.
parent
74f20546
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
clipboard.c
dlls/user32/tests/clipboard.c
+9
-9
No files found.
dlls/user32/tests/clipboard.c
View file @
5eb648c8
...
...
@@ -282,7 +282,7 @@ static LRESULT CALLBACK clipboard_wnd_proc(HWND hwnd, UINT msg, WPARAM wp, LPARA
break
;
}
return
DefWindowProc
(
hwnd
,
msg
,
wp
,
lp
);
return
DefWindowProc
A
(
hwnd
,
msg
,
wp
,
lp
);
}
static
DWORD
WINAPI
clipboard_thread
(
void
*
param
)
...
...
@@ -307,14 +307,14 @@ static DWORD WINAPI clipboard_thread(void *param)
ok
(
r
,
"CloseClipboard failed: %d
\n
"
,
GetLastError
());
LeaveCriticalSection
(
&
clipboard_cs
);
r
=
PostMessage
(
win
,
WM_USER
,
0
,
0
);
r
=
PostMessage
A
(
win
,
WM_USER
,
0
,
0
);
ok
(
r
,
"PostMessage failed: %d
\n
"
,
GetLastError
());
return
0
;
}
static
void
test_messages
(
void
)
{
WNDCLASS
cls
;
WNDCLASS
A
cls
;
HWND
win
;
MSG
msg
;
HANDLE
thread
;
...
...
@@ -324,25 +324,25 @@ static void test_messages(void)
memset
(
&
cls
,
0
,
sizeof
(
cls
));
cls
.
lpfnWndProc
=
clipboard_wnd_proc
;
cls
.
hInstance
=
GetModuleHandle
(
0
);
cls
.
hInstance
=
GetModuleHandle
A
(
NULL
);
cls
.
lpszClassName
=
"clipboard_test"
;
RegisterClass
(
&
cls
);
RegisterClass
A
(
&
cls
);
win
=
CreateWindow
(
"clipboard_test"
,
NULL
,
0
,
0
,
0
,
0
,
0
,
NULL
,
0
,
NULL
,
0
);
win
=
CreateWindow
A
(
"clipboard_test"
,
NULL
,
0
,
0
,
0
,
0
,
0
,
NULL
,
0
,
NULL
,
0
);
ok
(
win
!=
NULL
,
"CreateWindow failed: %d
\n
"
,
GetLastError
());
thread
=
CreateThread
(
NULL
,
0
,
clipboard_thread
,
(
void
*
)
win
,
0
,
&
tid
);
ok
(
thread
!=
NULL
,
"CreateThread failed: %d
\n
"
,
GetLastError
());
while
(
GetMessage
(
&
msg
,
NULL
,
0
,
0
))
{
while
(
GetMessage
A
(
&
msg
,
NULL
,
0
,
0
))
{
TranslateMessage
(
&
msg
);
DispatchMessage
(
&
msg
);
DispatchMessage
A
(
&
msg
);
}
ok
(
WaitForSingleObject
(
thread
,
INFINITE
)
==
WAIT_OBJECT_0
,
"WaitForSingleObject failed
\n
"
);
CloseHandle
(
thread
);
UnregisterClass
(
"clipboard_test"
,
GetModuleHandle
(
0
));
UnregisterClass
A
(
"clipboard_test"
,
GetModuleHandleA
(
NULL
));
DeleteCriticalSection
(
&
clipboard_cs
);
}
...
...
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