Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
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
Hide 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(
CLSID
*
id
/* [out] GUID converted from string */
)
{
BYTE
*
s
=
(
BYTE
*
)
idstr
;
BYTE
*
p
;
int
i
;
BYTE
table
[
256
];
...
...
@@ -490,41 +489,20 @@ HRESULT WINAPI CLSIDFromString16(
/* in form {XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX} */
p
=
(
BYTE
*
)
id
;
s
++
;
/* skip leading brace */
for
(
i
=
0
;
i
<
4
;
i
++
)
{
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 - */
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
]]);
id
->
Data2
=
table
[
s
[
10
]]
<<
12
|
table
[
s
[
11
]]
<<
8
|
table
[
s
[
12
]]
<<
4
|
table
[
s
[
13
]];
id
->
Data3
=
table
[
s
[
15
]]
<<
12
|
table
[
s
[
16
]]
<<
8
|
table
[
s
[
17
]]
<<
4
|
table
[
s
[
18
]];
/* these are just sequential bytes */
for
(
i
=
0
;
i
<
2
;
i
++
)
{
*
p
++
=
table
[
*
s
]
<<
4
|
table
[
*
(
s
+
1
)];
s
+=
2
;
}
s
++
;
/* skip - */
for
(
i
=
0
;
i
<
6
;
i
++
)
{
*
p
++
=
table
[
*
s
]
<<
4
|
table
[
*
(
s
+
1
)];
s
+=
2
;
}
id
->
Data4
[
0
]
=
table
[
s
[
20
]]
<<
4
|
table
[
s
[
21
]];
id
->
Data4
[
1
]
=
table
[
s
[
22
]]
<<
4
|
table
[
s
[
23
]];
id
->
Data4
[
2
]
=
table
[
s
[
25
]]
<<
4
|
table
[
s
[
26
]];
id
->
Data4
[
3
]
=
table
[
s
[
27
]]
<<
4
|
table
[
s
[
28
]];
id
->
Data4
[
4
]
=
table
[
s
[
29
]]
<<
4
|
table
[
s
[
30
]];
id
->
Data4
[
5
]
=
table
[
s
[
31
]]
<<
4
|
table
[
s
[
32
]];
id
->
Data4
[
6
]
=
table
[
s
[
33
]]
<<
4
|
table
[
s
[
34
]];
id
->
Data4
[
7
]
=
table
[
s
[
35
]]
<<
4
|
table
[
s
[
36
]];
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