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
1d36b93f
Commit
1d36b93f
authored
Dec 26, 2013
by
Frédéric Delanoy
Committed by
Alexandre Julliard
Dec 27, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi/tests: Constify some character strings.
parent
fc5884c2
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
29 additions
and
29 deletions
+29
-29
action.c
dlls/msi/tests/action.c
+1
-1
automation.c
dlls/msi/tests/automation.c
+20
-20
install.c
dlls/msi/tests/install.c
+3
-3
msi.c
dlls/msi/tests/msi.c
+1
-1
package.c
dlls/msi/tests/package.c
+3
-3
patch.c
dlls/msi/tests/patch.c
+1
-1
No files found.
dlls/msi/tests/action.c
View file @
1d36b93f
...
...
@@ -5547,7 +5547,7 @@ error:
static
void
test_publish_components
(
void
)
{
static
char
keypath
[]
=
static
c
onst
c
har
keypath
[]
=
"Software
\\
Microsoft
\\
Installer
\\
Components
\\
0CBCFA296AC907244845745CEEB2F8AA"
;
UINT
r
;
...
...
dlls/msi/tests/automation.c
View file @
1d36b93f
...
...
@@ -452,7 +452,7 @@ static CHAR string1[MAX_PATH], string2[MAX_PATH];
ok(0, format, extra, string1, aString); \
/* exception checker */
static
WCHAR
szSource
[]
=
{
'M'
,
's'
,
'i'
,
' '
,
'A'
,
'P'
,
'I'
,
' '
,
'E'
,
'r'
,
'r'
,
'o'
,
'r'
,
0
};
static
const
WCHAR
szSource
[]
=
{
'M'
,
's'
,
'i'
,
' '
,
'A'
,
'P'
,
'I'
,
' '
,
'E'
,
'r'
,
'r'
,
'o'
,
'r'
,
0
};
#define ok_exception(hr, szDescription) \
if (hr == DISP_E_EXCEPTION) \
...
...
@@ -595,7 +595,7 @@ static void test_dispid(void)
static
void
test_dispatch
(
void
)
{
static
WCHAR
szOpenPackage
[]
=
{
'O'
,
'p'
,
'e'
,
'n'
,
'P'
,
'a'
,
'c'
,
'k'
,
'a'
,
'g'
,
'e'
,
0
};
static
WCHAR
szOpenPackageException
[]
=
{
'O'
,
'p'
,
'e'
,
'n'
,
'P'
,
'a'
,
'c'
,
'k'
,
'a'
,
'g'
,
'e'
,
','
,
'P'
,
'a'
,
'c'
,
'k'
,
'a'
,
'g'
,
'e'
,
'P'
,
'a'
,
't'
,
'h'
,
','
,
'O'
,
'p'
,
't'
,
'i'
,
'o'
,
'n'
,
's'
,
0
};
static
const
WCHAR
szOpenPackageException
[]
=
{
'O'
,
'p'
,
'e'
,
'n'
,
'P'
,
'a'
,
'c'
,
'k'
,
'a'
,
'g'
,
'e'
,
','
,
'P'
,
'a'
,
'c'
,
'k'
,
'a'
,
'g'
,
'e'
,
'P'
,
'a'
,
't'
,
'h'
,
','
,
'O'
,
'p'
,
't'
,
'i'
,
'o'
,
'n'
,
's'
,
0
};
static
WCHAR
szProductState
[]
=
{
'P'
,
'r'
,
'o'
,
'd'
,
'u'
,
'c'
,
't'
,
'S'
,
't'
,
'a'
,
't'
,
'e'
,
0
};
HRESULT
hr
;
DISPID
dispid
;
...
...
@@ -1688,11 +1688,11 @@ static void test_SummaryInfo(IDispatch *pSummaryInfo, const msi_summary_info *in
static
void
test_Database
(
IDispatch
*
pDatabase
,
BOOL
readonly
)
{
static
WCHAR
szSql
[]
=
{
'S'
,
'E'
,
'L'
,
'E'
,
'C'
,
'T'
,
' '
,
'`'
,
'F'
,
'e'
,
'a'
,
't'
,
'u'
,
'r'
,
'e'
,
'`'
,
' '
,
'F'
,
'R'
,
'O'
,
'M'
,
' '
,
'`'
,
'F'
,
'e'
,
'a'
,
't'
,
'u'
,
'r'
,
'e'
,
'`'
,
' '
,
'W'
,
'H'
,
'E'
,
'R'
,
'E'
,
' '
,
'`'
,
'F'
,
'e'
,
'a'
,
't'
,
'u'
,
'r'
,
'e'
,
'_'
,
'P'
,
'a'
,
'r'
,
'e'
,
'n'
,
't'
,
'`'
,
'='
,
'\''
,
'O'
,
'n'
,
'e'
,
'\''
,
0
};
static
WCHAR
szThree
[]
=
{
'T'
,
'h'
,
'r'
,
'e'
,
'e'
,
0
};
static
WCHAR
szTwo
[]
=
{
'T'
,
'w'
,
'o'
,
0
};
static
WCHAR
szStringDataField
[]
=
{
'S'
,
't'
,
'r'
,
'i'
,
'n'
,
'g'
,
'D'
,
'a'
,
't'
,
'a'
,
','
,
'F'
,
'i'
,
'e'
,
'l'
,
'd'
,
0
};
static
WCHAR
szModifyModeRecord
[]
=
{
'M'
,
'o'
,
'd'
,
'i'
,
'f'
,
'y'
,
','
,
'M'
,
'o'
,
'd'
,
'e'
,
','
,
'R'
,
'e'
,
'c'
,
'o'
,
'r'
,
'd'
,
0
};
static
const
WCHAR
szSql
[]
=
{
'S'
,
'E'
,
'L'
,
'E'
,
'C'
,
'T'
,
' '
,
'`'
,
'F'
,
'e'
,
'a'
,
't'
,
'u'
,
'r'
,
'e'
,
'`'
,
' '
,
'F'
,
'R'
,
'O'
,
'M'
,
' '
,
'`'
,
'F'
,
'e'
,
'a'
,
't'
,
'u'
,
'r'
,
'e'
,
'`'
,
' '
,
'W'
,
'H'
,
'E'
,
'R'
,
'E'
,
' '
,
'`'
,
'F'
,
'e'
,
'a'
,
't'
,
'u'
,
'r'
,
'e'
,
'_'
,
'P'
,
'a'
,
'r'
,
'e'
,
'n'
,
't'
,
'`'
,
'='
,
'\''
,
'O'
,
'n'
,
'e'
,
'\''
,
0
};
static
const
WCHAR
szThree
[]
=
{
'T'
,
'h'
,
'r'
,
'e'
,
'e'
,
0
};
static
const
WCHAR
szTwo
[]
=
{
'T'
,
'w'
,
'o'
,
0
};
static
const
WCHAR
szStringDataField
[]
=
{
'S'
,
't'
,
'r'
,
'i'
,
'n'
,
'g'
,
'D'
,
'a'
,
't'
,
'a'
,
','
,
'F'
,
'i'
,
'e'
,
'l'
,
'd'
,
0
};
static
const
WCHAR
szModifyModeRecord
[]
=
{
'M'
,
'o'
,
'd'
,
'i'
,
'f'
,
'y'
,
','
,
'M'
,
'o'
,
'd'
,
'e'
,
','
,
'R'
,
'e'
,
'c'
,
'o'
,
'r'
,
'd'
,
0
};
IDispatch
*
pView
=
NULL
,
*
pSummaryInfo
=
NULL
;
HRESULT
hr
;
...
...
@@ -1801,17 +1801,17 @@ static void test_Database(IDispatch *pDatabase, BOOL readonly)
static
void
test_Session
(
IDispatch
*
pSession
)
{
static
WCHAR
szProductName
[]
=
{
'P'
,
'r'
,
'o'
,
'd'
,
'u'
,
'c'
,
't'
,
'N'
,
'a'
,
'm'
,
'e'
,
0
};
static
WCHAR
szOne
[]
=
{
'O'
,
'n'
,
'e'
,
0
};
static
WCHAR
szOneStateFalse
[]
=
{
'!'
,
'O'
,
'n'
,
'e'
,
'>'
,
'0'
,
0
};
static
WCHAR
szOneStateTrue
[]
=
{
'!'
,
'O'
,
'n'
,
'e'
,
'='
,
'-'
,
'1'
,
0
};
static
WCHAR
szOneActionFalse
[]
=
{
'$'
,
'O'
,
'n'
,
'e'
,
'='
,
'-'
,
'1'
,
0
};
static
WCHAR
szOneActionTrue
[]
=
{
'$'
,
'O'
,
'n'
,
'e'
,
'>'
,
'0'
,
0
};
static
WCHAR
szCostInitialize
[]
=
{
'C'
,
'o'
,
's'
,
't'
,
'I'
,
'n'
,
'i'
,
't'
,
'i'
,
'a'
,
'l'
,
'i'
,
'z'
,
'e'
,
0
};
static
WCHAR
szEmpty
[]
=
{
0
};
static
WCHAR
szEquals
[]
=
{
'='
,
0
};
static
WCHAR
szPropertyName
[]
=
{
'P'
,
'r'
,
'o'
,
'p'
,
'e'
,
'r'
,
't'
,
'y'
,
','
,
'N'
,
'a'
,
'm'
,
'e'
,
0
};
static
WCHAR
szModeFlag
[]
=
{
'M'
,
'o'
,
'd'
,
'e'
,
','
,
'F'
,
'l'
,
'a'
,
'g'
,
0
};
static
const
WCHAR
szProductName
[]
=
{
'P'
,
'r'
,
'o'
,
'd'
,
'u'
,
'c'
,
't'
,
'N'
,
'a'
,
'm'
,
'e'
,
0
};
static
const
WCHAR
szOne
[]
=
{
'O'
,
'n'
,
'e'
,
0
};
static
const
WCHAR
szOneStateFalse
[]
=
{
'!'
,
'O'
,
'n'
,
'e'
,
'>'
,
'0'
,
0
};
static
const
WCHAR
szOneStateTrue
[]
=
{
'!'
,
'O'
,
'n'
,
'e'
,
'='
,
'-'
,
'1'
,
0
};
static
const
WCHAR
szOneActionFalse
[]
=
{
'$'
,
'O'
,
'n'
,
'e'
,
'='
,
'-'
,
'1'
,
0
};
static
const
WCHAR
szOneActionTrue
[]
=
{
'$'
,
'O'
,
'n'
,
'e'
,
'>'
,
'0'
,
0
};
static
const
WCHAR
szCostInitialize
[]
=
{
'C'
,
'o'
,
's'
,
't'
,
'I'
,
'n'
,
'i'
,
't'
,
'i'
,
'a'
,
'l'
,
'i'
,
'z'
,
'e'
,
0
};
static
const
WCHAR
szEmpty
[]
=
{
0
};
static
const
WCHAR
szEquals
[]
=
{
'='
,
0
};
static
const
WCHAR
szPropertyName
[]
=
{
'P'
,
'r'
,
'o'
,
'p'
,
'e'
,
'r'
,
't'
,
'y'
,
','
,
'N'
,
'a'
,
'm'
,
'e'
,
0
};
static
const
WCHAR
szModeFlag
[]
=
{
'M'
,
'o'
,
'd'
,
'e'
,
','
,
'F'
,
'l'
,
'a'
,
'g'
,
0
};
WCHAR
stringw
[
MAX_PATH
];
CHAR
string
[
MAX_PATH
];
UINT
len
;
...
...
@@ -2547,8 +2547,8 @@ static void test_Installer_InstallProduct(void)
static
void
test_Installer
(
void
)
{
static
WCHAR
szCreateRecordException
[]
=
{
'C'
,
'r'
,
'e'
,
'a'
,
't'
,
'e'
,
'R'
,
'e'
,
'c'
,
'o'
,
'r'
,
'd'
,
','
,
'C'
,
'o'
,
'u'
,
'n'
,
't'
,
0
};
static
WCHAR
szIntegerDataException
[]
=
{
'I'
,
'n'
,
't'
,
'e'
,
'g'
,
'e'
,
'r'
,
'D'
,
'a'
,
't'
,
'a'
,
','
,
'F'
,
'i'
,
'e'
,
'l'
,
'd'
,
0
};
static
const
WCHAR
szCreateRecordException
[]
=
{
'C'
,
'r'
,
'e'
,
'a'
,
't'
,
'e'
,
'R'
,
'e'
,
'c'
,
'o'
,
'r'
,
'd'
,
','
,
'C'
,
'o'
,
'u'
,
'n'
,
't'
,
0
};
static
const
WCHAR
szIntegerDataException
[]
=
{
'I'
,
'n'
,
't'
,
'e'
,
'g'
,
'e'
,
'r'
,
'D'
,
'a'
,
't'
,
'a'
,
','
,
'F'
,
'i'
,
'e'
,
'l'
,
'd'
,
0
};
WCHAR
szPath
[
MAX_PATH
];
HRESULT
hr
;
IDispatch
*
pSession
=
NULL
,
*
pDatabase
=
NULL
,
*
pRecord
=
NULL
,
*
pStringList
=
NULL
;
...
...
dlls/msi/tests/install.c
View file @
1d36b93f
...
...
@@ -4806,7 +4806,7 @@ error:
static
void
test_installed_prop
(
void
)
{
static
char
prodcode
[]
=
"{7df88a48-996f-4ec8-a022-bf956f9b2cbb}"
;
static
c
onst
c
har
prodcode
[]
=
"{7df88a48-996f-4ec8-a022-bf956f9b2cbb}"
;
UINT
r
;
if
(
is_process_limited
())
...
...
@@ -4959,8 +4959,8 @@ error:
DeleteFileA
(
msifile
);
}
static
char
session_manager
[]
=
"System
\\
CurrentControlSet
\\
Control
\\
Session Manager"
;
static
char
rename_ops
[]
=
"PendingFileRenameOperations"
;
static
c
onst
c
har
session_manager
[]
=
"System
\\
CurrentControlSet
\\
Control
\\
Session Manager"
;
static
c
onst
c
har
rename_ops
[]
=
"PendingFileRenameOperations"
;
static
void
process_pending_renames
(
HKEY
hkey
)
{
...
...
dlls/msi/tests/msi.c
View file @
1d36b93f
...
...
@@ -13752,7 +13752,7 @@ static void test_MsiSetExternalUI(void)
static
void
test_lastusedsource
(
void
)
{
static
char
prodcode
[]
=
"{38847338-1BBC-4104-81AC-2FAAC7ECDDCD}"
;
static
c
onst
c
har
prodcode
[]
=
"{38847338-1BBC-4104-81AC-2FAAC7ECDDCD}"
;
char
value
[
MAX_PATH
],
path
[
MAX_PATH
];
DWORD
size
;
UINT
r
;
...
...
dlls/msi/tests/package.c
View file @
1d36b93f
...
...
@@ -2647,9 +2647,9 @@ static void test_component_states( UINT line, MSIHANDLE package, const char *com
static
void
test_states
(
void
)
{
static
char
msifile2
[]
=
"winetest2-package.msi"
;
static
char
msifile3
[]
=
"winetest3-package.msi"
;
static
char
msifile4
[]
=
"winetest4-package.msi"
;
static
c
onst
c
har
msifile2
[]
=
"winetest2-package.msi"
;
static
c
onst
c
har
msifile3
[]
=
"winetest3-package.msi"
;
static
c
onst
c
har
msifile4
[]
=
"winetest4-package.msi"
;
static
const
WCHAR
msifile2W
[]
=
{
'w'
,
'i'
,
'n'
,
'e'
,
't'
,
'e'
,
's'
,
't'
,
'2'
,
'-'
,
'p'
,
'a'
,
'c'
,
'k'
,
'a'
,
'g'
,
'e'
,
'.'
,
'm'
,
's'
,
'i'
,
0
};
static
const
WCHAR
msifile3W
[]
=
...
...
dlls/msi/tests/patch.c
View file @
1d36b93f
...
...
@@ -950,7 +950,7 @@ static void test_MsiOpenDatabase( void )
static
UINT
find_entry
(
MSIHANDLE
hdb
,
const
char
*
table
,
const
char
*
entry
)
{
static
char
fmt
[]
=
"SELECT * FROM `%s` WHERE `Name` = '%s'"
;
static
c
onst
c
har
fmt
[]
=
"SELECT * FROM `%s` WHERE `Name` = '%s'"
;
char
query
[
0x100
];
UINT
r
;
MSIHANDLE
hview
,
hrec
;
...
...
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