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
00703d0c
Commit
00703d0c
authored
Apr 17, 2009
by
Detlef Riekenberg
Committed by
Alexandre Julliard
Apr 20, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oleaut32/tests: Replace lstrcpyW and lstrcatW with memcpy to fix failures on win95.
parent
2ea6b36e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
vartest.c
dlls/oleaut32/tests/vartest.c
+5
-4
No files found.
dlls/oleaut32/tests/vartest.c
View file @
00703d0c
...
...
@@ -106,15 +106,16 @@ static void init(void)
res
=
VarBstrFromBool
(
VARIANT_TRUE
,
LANG_USER_DEFAULT
,
VAR_LOCALBOOL
,
&
bstr
);
ok
(
SUCCEEDED
(
res
)
&&
(
lstrlenW
(
bstr
)
>
0
),
"Expected localized string for 'True'
\n
"
);
lstrcpyW
(
sz12_true
,
sz12
);
if
(
bstr
)
lstrcatW
(
sz12_true
,
bstr
);
/* lstrcpyW / lstrcatW do not work on win95 */
memcpy
(
sz12_true
,
sz12
,
sizeof
(
sz12
));
if
(
bstr
)
memcpy
(
&
sz12_true
[
2
],
bstr
,
SysStringByteLen
(
bstr
)
+
sizeof
(
WCHAR
));
SysFreeString
(
bstr
);
res
=
VarBstrFromBool
(
VARIANT_FALSE
,
LANG_USER_DEFAULT
,
VAR_LOCALBOOL
,
&
bstr
);
ok
(
SUCCEEDED
(
res
)
&&
(
lstrlenW
(
bstr
)
>
0
),
"Expected localized string for 'False'
\n
"
);
lstrcpyW
(
sz12_false
,
sz12
);
if
(
bstr
)
lstrcatW
(
sz12_false
,
bstr
);
memcpy
(
sz12_false
,
sz12
,
sizeof
(
sz12
)
);
if
(
bstr
)
memcpy
(
&
sz12_false
[
2
],
bstr
,
SysStringByteLen
(
bstr
)
+
sizeof
(
WCHAR
)
);
SysFreeString
(
bstr
);
hOleaut32
=
GetModuleHandle
(
"oleaut32.dll"
);
...
...
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