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
f3aabde8
Commit
f3aabde8
authored
Mar 30, 2011
by
Francois Gouget
Committed by
Alexandre Julliard
Mar 30, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32: Only get the Windows directory if PROFILE_Open() needs it.
parent
0377d0a2
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
profile.c
dlls/kernel32/profile.c
+2
-3
No files found.
dlls/kernel32/profile.c
View file @
f3aabde8
...
@@ -734,7 +734,6 @@ static BOOL is_not_current(FILETIME * ft)
...
@@ -734,7 +734,6 @@ static BOOL is_not_current(FILETIME * ft)
*/
*/
static
BOOL
PROFILE_Open
(
LPCWSTR
filename
,
BOOL
write_access
)
static
BOOL
PROFILE_Open
(
LPCWSTR
filename
,
BOOL
write_access
)
{
{
WCHAR
windirW
[
MAX_PATH
];
WCHAR
buffer
[
MAX_PATH
];
WCHAR
buffer
[
MAX_PATH
];
HANDLE
hFile
=
INVALID_HANDLE_VALUE
;
HANDLE
hFile
=
INVALID_HANDLE_VALUE
;
FILETIME
LastWriteTime
;
FILETIME
LastWriteTime
;
...
@@ -757,8 +756,6 @@ static BOOL PROFILE_Open( LPCWSTR filename, BOOL write_access )
...
@@ -757,8 +756,6 @@ static BOOL PROFILE_Open( LPCWSTR filename, BOOL write_access )
ZeroMemory
(
&
MRUProfile
[
i
]
->
LastWriteTime
,
sizeof
(
FILETIME
));
ZeroMemory
(
&
MRUProfile
[
i
]
->
LastWriteTime
,
sizeof
(
FILETIME
));
}
}
GetWindowsDirectoryW
(
windirW
,
MAX_PATH
);
if
(
!
filename
)
if
(
!
filename
)
filename
=
wininiW
;
filename
=
wininiW
;
...
@@ -766,6 +763,8 @@ static BOOL PROFILE_Open( LPCWSTR filename, BOOL write_access )
...
@@ -766,6 +763,8 @@ static BOOL PROFILE_Open( LPCWSTR filename, BOOL write_access )
!
strchrW
(
filename
,
'\\'
)
&&
!
strchrW
(
filename
,
'/'
))
!
strchrW
(
filename
,
'\\'
)
&&
!
strchrW
(
filename
,
'/'
))
{
{
static
const
WCHAR
wszSeparator
[]
=
{
'\\'
,
0
};
static
const
WCHAR
wszSeparator
[]
=
{
'\\'
,
0
};
WCHAR
windirW
[
MAX_PATH
];
GetWindowsDirectoryW
(
windirW
,
MAX_PATH
);
strcpyW
(
buffer
,
windirW
);
strcpyW
(
buffer
,
windirW
);
strcatW
(
buffer
,
wszSeparator
);
strcatW
(
buffer
,
wszSeparator
);
strcatW
(
buffer
,
filename
);
strcatW
(
buffer
,
filename
);
...
...
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