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
d785aa64
Commit
d785aa64
authored
Apr 18, 1999
by
Michael Veksler
Committed by
Alexandre Julliard
Apr 18, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Simplify propertyNameCmp() and fix a warning in the way by removing
CRTDLL__wcsupr() calls.
parent
364c1241
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
10 deletions
+2
-10
storage32.c
ole/storage32.c
+2
-10
No files found.
ole/storage32.c
View file @
d785aa64
...
...
@@ -1130,22 +1130,14 @@ static LONG propertyNameCmp(
OLECHAR
*
newProperty
,
OLECHAR
*
currentProperty
)
{
LONG
sizeOfNew
=
(
lstrlenW
(
newProperty
)
+
1
)
*
sizeof
(
WCHAR
);
LONG
sizeOfCur
=
(
lstrlenW
(
currentProperty
)
+
1
)
*
sizeof
(
WCHAR
);
LONG
diff
=
sizeOfNew
-
sizeOfCur
;
LONG
diff
=
lstrlenW
(
newProperty
)
-
lstrlenW
(
currentProperty
);
if
(
diff
==
0
)
{
/*
* We compare the string themselves only when they are of the same lenght
*/
WCHAR
wsnew
[
PROPERTY_NAME_MAX_LEN
];
WCHAR
wscur
[
PROPERTY_NAME_MAX_LEN
];
diff
=
lstrcmpW
(
(
LPCWSTR
)
CRTDLL__wcsupr
(
lstrcpynW
(
wsnew
,
newProperty
,
sizeOfNew
)),
(
LPCWSTR
)
CRTDLL__wcsupr
(
lstrcpynW
(
wscur
,
currentProperty
,
sizeOfCur
)));
diff
=
lstrcmpiW
(
newProperty
,
currentProperty
);
}
return
diff
;
...
...
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