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
cca75cc1
Commit
cca75cc1
authored
Jan 28, 2009
by
Paul Vriens
Committed by
Alexandre Julliard
Jan 28, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32/tests: Don't crash when run as a normal user.
parent
dda0fe45
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
profile.c
dlls/kernel32/tests/profile.c
+8
-1
No files found.
dlls/kernel32/tests/profile.c
View file @
cca75cc1
...
...
@@ -681,7 +681,14 @@ static void test_GetPrivateProfileString(const char *content, const char *descri
ok
(
!
lstrcmpA
(
buf
,
"default"
),
"Expected
\"
default
\"
, got
\"
%s
\"\n
"
,
buf
);
GetWindowsDirectoryA
(
windir
,
MAX_PATH
);
GetTempFileNameA
(
windir
,
"pre"
,
0
,
path
);
SetLastError
(
0xdeadbeef
);
ret
=
GetTempFileNameA
(
windir
,
"pre"
,
0
,
path
);
if
(
!
ret
&&
GetLastError
()
==
ERROR_ACCESS_DENIED
)
{
skip
(
"Not allowed to create a file in the Windows directory
\n
"
);
DeleteFileA
(
filename
);
return
;
}
tempfile
=
strrchr
(
path
,
'\\'
)
+
1
;
create_test_file
(
path
,
content
,
lstrlenA
(
content
));
...
...
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