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
9975dcd1
Commit
9975dcd1
authored
Jan 15, 2009
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Jan 15, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi/tests: Remove superfluous pointer casts.
parent
24e58162
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
10 additions
and
10 deletions
+10
-10
automation.c
dlls/msi/tests/automation.c
+2
-2
install.c
dlls/msi/tests/install.c
+1
-1
msi.c
dlls/msi/tests/msi.c
+3
-3
package.c
dlls/msi/tests/package.c
+2
-2
source.c
dlls/msi/tests/source.c
+2
-2
No files found.
dlls/msi/tests/automation.c
View file @
9975dcd1
...
...
@@ -594,7 +594,7 @@ static void test_dispatch(void)
ok
(
hr
==
DISP_E_MEMBERNOTFOUND
,
"IDispatch::Invoke returned 0x%08x
\n
"
,
hr
);
/* Test getting ID of a function name that does exist */
name
=
(
WCHAR
*
)
szOpenPackage
;
name
=
szOpenPackage
;
hr
=
IDispatch_GetIDsOfNames
(
pInstaller
,
&
IID_NULL
,
&
name
,
1
,
LOCALE_USER_DEFAULT
,
&
dispid
);
ok
(
hr
==
S_OK
,
"IDispatch::GetIDsOfNames returned 0x%08x
\n
"
,
hr
);
...
...
@@ -638,7 +638,7 @@ static void test_dispatch(void)
ok
(
hr
==
DISP_E_MEMBERNOTFOUND
,
"IDispatch::Invoke returned 0x%08x
\n
"
,
hr
);
/* Test invoking a read-only property as DISPATCH_PROPERTYPUT or as a DISPATCH_METHOD */
name
=
(
WCHAR
*
)
szProductState
;
name
=
szProductState
;
hr
=
IDispatch_GetIDsOfNames
(
pInstaller
,
&
IID_NULL
,
&
name
,
1
,
LOCALE_USER_DEFAULT
,
&
dispid
);
ok
(
hr
==
S_OK
,
"IDispatch::GetIDsOfNames returned 0x%08x
\n
"
,
hr
);
...
...
dlls/msi/tests/install.c
View file @
9975dcd1
...
...
@@ -1362,7 +1362,7 @@ static void get_user_sid(LPSTR *usersid)
OpenProcessToken
(
GetCurrentProcess
(),
TOKEN_QUERY
,
&
token
);
size
=
sizeof
(
buf
);
GetTokenInformation
(
token
,
TokenUser
,
(
void
*
)
buf
,
size
,
&
size
);
GetTokenInformation
(
token
,
TokenUser
,
buf
,
size
,
&
size
);
user
=
(
PTOKEN_USER
)
buf
;
pConvertSidToStringSidA
(
user
->
User
.
Sid
,
usersid
);
}
...
...
dlls/msi/tests/msi.c
View file @
9975dcd1
...
...
@@ -505,7 +505,7 @@ static void create_test_guid(LPSTR prodcode, LPSTR squashed)
hr
=
CoCreateGuid
(
&
guid
);
ok
(
hr
==
S_OK
,
"Expected S_OK, got %d
\n
"
,
hr
);
size
=
StringFromGUID2
(
&
guid
,
(
LPOLESTR
)
guidW
,
MAX_PATH
);
size
=
StringFromGUID2
(
&
guid
,
guidW
,
MAX_PATH
);
ok
(
size
==
39
,
"Expected 39, got %d
\n
"
,
hr
);
WideCharToMultiByte
(
CP_ACP
,
0
,
guidW
,
size
,
prodcode
,
MAX_PATH
,
NULL
,
NULL
);
...
...
@@ -522,7 +522,7 @@ static void get_user_sid(LPSTR *usersid)
OpenProcessToken
(
GetCurrentProcess
(),
TOKEN_QUERY
,
&
token
);
size
=
sizeof
(
buf
);
GetTokenInformation
(
token
,
TokenUser
,
(
void
*
)
buf
,
size
,
&
size
);
GetTokenInformation
(
token
,
TokenUser
,
buf
,
size
,
&
size
);
user
=
(
PTOKEN_USER
)
buf
;
pConvertSidToStringSidA
(
user
->
User
.
Sid
,
usersid
);
}
...
...
@@ -794,7 +794,7 @@ static void compose_base85_guid(LPSTR component, LPSTR comp_base85, LPSTR squash
hr
=
CoCreateGuid
(
&
guid
);
ok
(
hr
==
S_OK
,
"Expected S_OK, got %d
\n
"
,
hr
);
size
=
StringFromGUID2
(
&
guid
,
(
LPOLESTR
)
guidW
,
MAX_PATH
);
size
=
StringFromGUID2
(
&
guid
,
guidW
,
MAX_PATH
);
ok
(
size
==
39
,
"Expected 39, got %d
\n
"
,
hr
);
WideCharToMultiByte
(
CP_ACP
,
0
,
guidW
,
size
,
component
,
MAX_PATH
,
NULL
,
NULL
);
...
...
dlls/msi/tests/package.c
View file @
9975dcd1
...
...
@@ -48,7 +48,7 @@ static void get_user_sid(LPSTR *usersid)
OpenProcessToken
(
GetCurrentProcess
(),
TOKEN_QUERY
,
&
token
);
size
=
sizeof
(
buf
);
GetTokenInformation
(
token
,
TokenUser
,
(
void
*
)
buf
,
size
,
&
size
);
GetTokenInformation
(
token
,
TokenUser
,
buf
,
size
,
&
size
);
user
=
(
PTOKEN_USER
)
buf
;
pConvertSidToStringSidA
(
user
->
User
.
Sid
,
usersid
);
}
...
...
@@ -160,7 +160,7 @@ static void create_test_guid(LPSTR prodcode, LPSTR squashed)
hr
=
CoCreateGuid
(
&
guid
);
ok
(
hr
==
S_OK
,
"Expected S_OK, got %d
\n
"
,
hr
);
size
=
StringFromGUID2
(
&
guid
,
(
LPOLESTR
)
guidW
,
MAX_PATH
);
size
=
StringFromGUID2
(
&
guid
,
guidW
,
MAX_PATH
);
ok
(
size
==
39
,
"Expected 39, got %d
\n
"
,
hr
);
WideCharToMultiByte
(
CP_ACP
,
0
,
guidW
,
size
,
prodcode
,
MAX_PATH
,
NULL
,
NULL
);
...
...
dlls/msi/tests/source.c
View file @
9975dcd1
...
...
@@ -114,7 +114,7 @@ static void create_test_guid(LPSTR prodcode, LPSTR squashed)
hr
=
CoCreateGuid
(
&
guid
);
ok
(
hr
==
S_OK
,
"Expected S_OK, got %d
\n
"
,
hr
);
size
=
StringFromGUID2
(
&
guid
,
(
LPOLESTR
)
guidW
,
MAX_PATH
);
size
=
StringFromGUID2
(
&
guid
,
guidW
,
MAX_PATH
);
ok
(
size
==
39
,
"Expected 39, got %d
\n
"
,
hr
);
WideCharToMultiByte
(
CP_ACP
,
0
,
guidW
,
size
,
prodcode
,
MAX_PATH
,
NULL
,
NULL
);
...
...
@@ -136,7 +136,7 @@ static int get_user_sid(LPSTR *usersid)
if
(
!
rc
&&
GetLastError
()
==
ERROR_CALL_NOT_IMPLEMENTED
)
return
0
;
size
=
sizeof
(
buf
);
GetTokenInformation
(
token
,
TokenUser
,
(
void
*
)
buf
,
size
,
&
size
);
GetTokenInformation
(
token
,
TokenUser
,
buf
,
size
,
&
size
);
user
=
(
PTOKEN_USER
)
buf
;
pConvertSidToStringSidA
(
user
->
User
.
Sid
,
usersid
);
return
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