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
bc4a576a
Commit
bc4a576a
authored
Aug 03, 2005
by
Mike McCormack
Committed by
Alexandre Julliard
Aug 03, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gcc 4.0 RegSetValueEx warning fixes.
parent
50a6d970
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
13 deletions
+13
-13
shellpath.c
dlls/shell32/tests/shellpath.c
+2
-2
info.c
dlls/winspool/info.c
+11
-11
No files found.
dlls/shell32/tests/shellpath.c
View file @
bc4a576a
...
...
@@ -825,7 +825,7 @@ static void testNonExistentPath(void)
modifiedPath
[
len
++
]
=
'\0'
;
if
(
winetest_interactive
)
printf
(
"Changing CSIDL_FAVORITES to %s
\n
"
,
modifiedPath
);
if
(
!
RegSetValueExA
(
key
,
"Favorites"
,
0
,
type
,
modifiedPath
,
len
))
if
(
!
RegSetValueExA
(
key
,
"Favorites"
,
0
,
type
,
(
LPBYTE
)
modifiedPath
,
len
))
{
char
buffer
[
MAX_PATH
];
STARTUPINFOA
startup
;
...
...
@@ -852,7 +852,7 @@ static void testNonExistentPath(void)
/* restore original values: */
if
(
winetest_interactive
)
printf
(
"Restoring CSIDL_FAVORITES to %s
\n
"
,
originalPath
);
RegSetValueExA
(
key
,
"Favorites"
,
0
,
type
,
originalPath
,
RegSetValueExA
(
key
,
"Favorites"
,
0
,
type
,
(
LPBYTE
)
originalPath
,
strlen
(
originalPath
)
+
1
);
RegFlushKey
(
key
);
...
...
dlls/winspool/info.c
View file @
bc4a576a
...
...
@@ -224,7 +224,7 @@ WINSPOOL_SetDefaultPrinter(const char *devname, const char *name,BOOL force) {
sprintf
(
buf
,
"%s,WINEPS.DRV,LPR:%s"
,
devname
,
name
);
WriteProfileStringA
(
"windows"
,
"device"
,
buf
);
if
(
RegCreateKeyW
(
HKEY_CURRENT_USER
,
user_default_reg_key
,
&
hkey
)
==
ERROR_SUCCESS
)
{
RegSetValueExA
(
hkey
,
"Device"
,
0
,
REG_SZ
,
buf
,
strlen
(
buf
)
+
1
);
RegSetValueExA
(
hkey
,
"Device"
,
0
,
REG_SZ
,
(
LPBYTE
)
buf
,
strlen
(
buf
)
+
1
);
RegCloseKey
(
hkey
);
}
HeapFree
(
GetProcessHeap
(),
0
,
buf
);
...
...
@@ -275,7 +275,7 @@ static BOOL CUPS_LoadPrinters(void)
sprintf
(
devline
,
"WINEPS.DRV,%s"
,
port
);
WriteProfileStringA
(
"devices"
,
dests
[
i
].
name
,
devline
);
if
(
RegCreateKeyW
(
HKEY_CURRENT_USER
,
user_printers_reg_key
,
&
hkey
)
==
ERROR_SUCCESS
)
{
RegSetValueExA
(
hkey
,
dests
[
i
].
name
,
0
,
REG_SZ
,
devline
,
strlen
(
devline
)
+
1
);
RegSetValueExA
(
hkey
,
dests
[
i
].
name
,
0
,
REG_SZ
,
(
LPBYTE
)
devline
,
strlen
(
devline
)
+
1
);
RegCloseKey
(
hkey
);
}
HeapFree
(
GetProcessHeap
(),
0
,
devline
);
...
...
@@ -384,7 +384,7 @@ PRINTCAP_ParseEntry(char *pent,BOOL isfirst) {
sprintf
(
devline
,
"WINEPS.DRV,%s"
,
port
);
WriteProfileStringA
(
"devices"
,
devname
,
devline
);
if
(
RegCreateKeyW
(
HKEY_CURRENT_USER
,
user_printers_reg_key
,
&
hkey
)
==
ERROR_SUCCESS
)
{
RegSetValueExA
(
hkey
,
devname
,
0
,
REG_SZ
,
devline
,
strlen
(
devline
)
+
1
);
RegSetValueExA
(
hkey
,
devname
,
0
,
REG_SZ
,
(
LPBYTE
)
devline
,
strlen
(
devline
)
+
1
);
RegCloseKey
(
hkey
);
}
HeapFree
(
GetProcessHeap
(),
0
,
devline
);
...
...
@@ -3372,17 +3372,17 @@ BOOL WINAPI AddPrinterDriverA(LPSTR pName, DWORD level, LPBYTE pDriverInfo)
ERR
(
"Can't create Name key
\n
"
);
return
FALSE
;
}
RegSetValueExA
(
hkeyName
,
"Configuration File"
,
0
,
REG_SZ
,
di3
.
pConfigFile
,
RegSetValueExA
(
hkeyName
,
"Configuration File"
,
0
,
REG_SZ
,
(
LPBYTE
)
di3
.
pConfigFile
,
0
);
RegSetValueExA
(
hkeyName
,
"Data File"
,
0
,
REG_SZ
,
di3
.
pDataFile
,
0
);
RegSetValueExA
(
hkeyName
,
"Driver"
,
0
,
REG_SZ
,
di3
.
pDriverPath
,
0
);
RegSetValueExA
(
hkeyName
,
"Version"
,
0
,
REG_DWORD
,
(
LP
STR
)
&
di3
.
cVersion
,
RegSetValueExA
(
hkeyName
,
"Data File"
,
0
,
REG_SZ
,
(
LPBYTE
)
di3
.
pDataFile
,
0
);
RegSetValueExA
(
hkeyName
,
"Driver"
,
0
,
REG_SZ
,
(
LPBYTE
)
di3
.
pDriverPath
,
0
);
RegSetValueExA
(
hkeyName
,
"Version"
,
0
,
REG_DWORD
,
(
LP
BYTE
)
&
di3
.
cVersion
,
sizeof
(
DWORD
));
RegSetValueExA
(
hkeyName
,
"Datatype"
,
0
,
REG_SZ
,
di3
.
pDefaultDataType
,
0
);
RegSetValueExA
(
hkeyName
,
"Datatype"
,
0
,
REG_SZ
,
(
LPBYTE
)
di3
.
pDefaultDataType
,
0
);
RegSetValueExA
(
hkeyName
,
"Dependent Files"
,
0
,
REG_MULTI_SZ
,
di3
.
pDependentFiles
,
0
);
RegSetValueExA
(
hkeyName
,
"Help File"
,
0
,
REG_SZ
,
di3
.
pHelpFile
,
0
);
RegSetValueExA
(
hkeyName
,
"Monitor"
,
0
,
REG_SZ
,
di3
.
pMonitorName
,
0
);
(
LPBYTE
)
di3
.
pDependentFiles
,
0
);
RegSetValueExA
(
hkeyName
,
"Help File"
,
0
,
REG_SZ
,
(
LPBYTE
)
di3
.
pHelpFile
,
0
);
RegSetValueExA
(
hkeyName
,
"Monitor"
,
0
,
REG_SZ
,
(
LPBYTE
)
di3
.
pMonitorName
,
0
);
RegCloseKey
(
hkeyName
);
RegCloseKey
(
hkeyDrivers
);
...
...
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