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
c165fd74
Commit
c165fd74
authored
Jul 27, 2010
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Jul 28, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oleaut32: Use IsEqualGUID instead of memcmp to compare GUIDs.
parent
48586540
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
typelib2.c
dlls/oleaut32/typelib2.c
+3
-3
No files found.
dlls/oleaut32/typelib2.c
View file @
c165fd74
...
@@ -317,7 +317,7 @@ static int ctl2_find_guid(
...
@@ -317,7 +317,7 @@ static int ctl2_find_guid(
while
(
offset
!=
-
1
)
{
while
(
offset
!=
-
1
)
{
guidentry
=
(
MSFT_GuidEntry
*
)
&
This
->
typelib_segment_data
[
MSFT_SEG_GUID
][
offset
];
guidentry
=
(
MSFT_GuidEntry
*
)
&
This
->
typelib_segment_data
[
MSFT_SEG_GUID
][
offset
];
if
(
!
memcmp
(
guidentry
,
guid
,
sizeof
(
GUID
)
))
return
offset
;
if
(
IsEqualGUID
(
guidentry
,
guid
))
return
offset
;
offset
=
guidentry
->
next_hash
;
offset
=
guidentry
->
next_hash
;
}
}
...
@@ -1695,7 +1695,7 @@ static HRESULT WINAPI ICreateTypeInfo2_fnAddRefTypeInfo(
...
@@ -1695,7 +1695,7 @@ static HRESULT WINAPI ICreateTypeInfo2_fnAddRefTypeInfo(
impinfo
.
oGuid
=
guid_offset
;
impinfo
.
oGuid
=
guid_offset
;
*
phRefType
=
ctl2_alloc_importinfo
(
This
->
typelib
,
&
impinfo
)
+
1
;
*
phRefType
=
ctl2_alloc_importinfo
(
This
->
typelib
,
&
impinfo
)
+
1
;
if
(
!
memcmp
(
&
guid
.
guid
,
&
IID_IDispatch
,
sizeof
(
GUID
)
))
if
(
IsEqualGUID
(
&
guid
.
guid
,
&
IID_IDispatch
))
This
->
typelib
->
typelib_header
.
dispatchpos
=
*
phRefType
;
This
->
typelib
->
typelib_header
.
dispatchpos
=
*
phRefType
;
}
}
...
@@ -2469,7 +2469,7 @@ static HRESULT WINAPI ICreateTypeInfo2_fnLayOut(
...
@@ -2469,7 +2469,7 @@ static HRESULT WINAPI ICreateTypeInfo2_fnLayOut(
return
hres
;
return
hres
;
}
}
if
(
!
memcmp
(
&
typeattr
->
guid
,
&
IID_IDispatch
,
sizeof
(
IDispatch
)
))
if
(
IsEqualGUID
(
&
typeattr
->
guid
,
&
IID_IDispatch
))
This
->
typeinfo
->
flags
|=
TYPEFLAG_FDISPATCHABLE
;
This
->
typeinfo
->
flags
|=
TYPEFLAG_FDISPATCHABLE
;
This
->
typeinfo
->
datatype2
+=
(
typeattr
->
cFuncs
<<
16
)
+
1
;
This
->
typeinfo
->
datatype2
+=
(
typeattr
->
cFuncs
<<
16
)
+
1
;
...
...
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