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
bf501534
Commit
bf501534
authored
Jun 21, 2002
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed CLSIDFromString endianness assumptions (reported by Gregg Mattinson).
parent
7f1e74a9
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
34 deletions
+12
-34
compobj.c
dlls/ole32/compobj.c
+12
-34
No files found.
dlls/ole32/compobj.c
View file @
bf501534
...
@@ -450,7 +450,6 @@ HRESULT WINAPI CLSIDFromString16(
...
@@ -450,7 +450,6 @@ HRESULT WINAPI CLSIDFromString16(
CLSID
*
id
/* [out] GUID converted from string */
CLSID
*
id
/* [out] GUID converted from string */
)
{
)
{
BYTE
*
s
=
(
BYTE
*
)
idstr
;
BYTE
*
s
=
(
BYTE
*
)
idstr
;
BYTE
*
p
;
int
i
;
int
i
;
BYTE
table
[
256
];
BYTE
table
[
256
];
...
@@ -490,41 +489,20 @@ HRESULT WINAPI CLSIDFromString16(
...
@@ -490,41 +489,20 @@ HRESULT WINAPI CLSIDFromString16(
/* in form {XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX} */
/* in form {XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX} */
p
=
(
BYTE
*
)
id
;
id
->
Data1
=
(
table
[
s
[
1
]]
<<
28
|
table
[
s
[
2
]]
<<
24
|
table
[
s
[
3
]]
<<
20
|
table
[
s
[
4
]]
<<
16
|
table
[
s
[
5
]]
<<
12
|
table
[
s
[
6
]]
<<
8
|
table
[
s
[
7
]]
<<
4
|
table
[
s
[
8
]]);
s
++
;
/* skip leading brace */
id
->
Data2
=
table
[
s
[
10
]]
<<
12
|
table
[
s
[
11
]]
<<
8
|
table
[
s
[
12
]]
<<
4
|
table
[
s
[
13
]];
for
(
i
=
0
;
i
<
4
;
i
++
)
{
id
->
Data3
=
table
[
s
[
15
]]
<<
12
|
table
[
s
[
16
]]
<<
8
|
table
[
s
[
17
]]
<<
4
|
table
[
s
[
18
]];
p
[
3
-
i
]
=
table
[
*
s
]
<<
4
|
table
[
*
(
s
+
1
)];
s
+=
2
;
}
p
+=
4
;
s
++
;
/* skip - */
for
(
i
=
0
;
i
<
2
;
i
++
)
{
p
[
1
-
i
]
=
table
[
*
s
]
<<
4
|
table
[
*
(
s
+
1
)];
s
+=
2
;
}
p
+=
2
;
s
++
;
/* skip - */
for
(
i
=
0
;
i
<
2
;
i
++
)
{
p
[
1
-
i
]
=
table
[
*
s
]
<<
4
|
table
[
*
(
s
+
1
)];
s
+=
2
;
}
p
+=
2
;
s
++
;
/* skip - */
/* these are just sequential bytes */
/* these are just sequential bytes */
for
(
i
=
0
;
i
<
2
;
i
++
)
{
id
->
Data4
[
0
]
=
table
[
s
[
20
]]
<<
4
|
table
[
s
[
21
]];
*
p
++
=
table
[
*
s
]
<<
4
|
table
[
*
(
s
+
1
)];
id
->
Data4
[
1
]
=
table
[
s
[
22
]]
<<
4
|
table
[
s
[
23
]];
s
+=
2
;
id
->
Data4
[
2
]
=
table
[
s
[
25
]]
<<
4
|
table
[
s
[
26
]];
}
id
->
Data4
[
3
]
=
table
[
s
[
27
]]
<<
4
|
table
[
s
[
28
]];
s
++
;
/* skip - */
id
->
Data4
[
4
]
=
table
[
s
[
29
]]
<<
4
|
table
[
s
[
30
]];
id
->
Data4
[
5
]
=
table
[
s
[
31
]]
<<
4
|
table
[
s
[
32
]];
for
(
i
=
0
;
i
<
6
;
i
++
)
{
id
->
Data4
[
6
]
=
table
[
s
[
33
]]
<<
4
|
table
[
s
[
34
]];
*
p
++
=
table
[
*
s
]
<<
4
|
table
[
*
(
s
+
1
)];
id
->
Data4
[
7
]
=
table
[
s
[
35
]]
<<
4
|
table
[
s
[
36
]];
s
+=
2
;
}
return
S_OK
;
return
S_OK
;
}
}
...
...
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