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
c8fb8c02
Commit
c8fb8c02
authored
Sep 19, 2007
by
James Hawkins
Committed by
Alexandre Julliard
Sep 20, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: Add a test that shows ddeml string handles use local atoms.
parent
8e90c609
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
0 deletions
+24
-0
dde.c
dlls/user32/tests/dde.c
+24
-0
No files found.
dlls/user32/tests/dde.c
View file @
c8fb8c02
...
@@ -302,6 +302,7 @@ static void test_DdeCreateStringHandleW(DWORD dde_inst, int codepage)
...
@@ -302,6 +302,7 @@ static void test_DdeCreateStringHandleW(DWORD dde_inst, int codepage)
HSZ
str_handle
;
HSZ
str_handle
;
WCHAR
bufW
[
256
];
WCHAR
bufW
[
256
];
char
buf
[
256
];
char
buf
[
256
];
ATOM
atom
;
int
ret
;
int
ret
;
str_handle
=
DdeCreateStringHandleW
(
dde_inst
,
dde_string
,
codepage
);
str_handle
=
DdeCreateStringHandleW
(
dde_inst
,
dde_string
,
codepage
);
...
@@ -350,6 +351,29 @@ static void test_DdeCreateStringHandleW(DWORD dde_inst, int codepage)
...
@@ -350,6 +351,29 @@ static void test_DdeCreateStringHandleW(DWORD dde_inst, int codepage)
ok
(
!
lstrcmpW
(
dde_string
,
(
LPCWSTR
)
buf
),
"DdeQueryStringW returned wrong string
\n
"
);
ok
(
!
lstrcmpW
(
dde_string
,
(
LPCWSTR
)
buf
),
"DdeQueryStringW returned wrong string
\n
"
);
}
}
if
(
codepage
==
CP_WINANSI
)
{
atom
=
FindAtomA
((
LPSTR
)
dde_string
);
ok
(
atom
!=
0
,
"Expected a valid atom
\n
"
);
SetLastError
(
0xdeadbeef
);
atom
=
GlobalFindAtomA
((
LPSTR
)
dde_string
);
ok
(
atom
==
0
,
"Expected 0, got %d
\n
"
,
atom
);
ok
(
GetLastError
()
==
ERROR_FILE_NOT_FOUND
,
"Expected ERROR_FILE_NOT_FOUND, got %d
\n
"
,
GetLastError
());
}
else
{
atom
=
FindAtomW
(
dde_string
);
ok
(
atom
!=
0
,
"Expected a valid atom
\n
"
);
SetLastError
(
0xdeadbeef
);
atom
=
GlobalFindAtomW
(
dde_string
);
ok
(
atom
==
0
,
"Expected 0, got %d
\n
"
,
atom
);
ok
(
GetLastError
()
==
ERROR_FILE_NOT_FOUND
,
"Expected ERROR_FILE_NOT_FOUND, got %d
\n
"
,
GetLastError
());
}
ok
(
DdeFreeStringHandle
(
dde_inst
,
str_handle
),
"DdeFreeStringHandle failed
\n
"
);
ok
(
DdeFreeStringHandle
(
dde_inst
,
str_handle
),
"DdeFreeStringHandle failed
\n
"
);
}
}
...
...
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