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
2c20270d
Commit
2c20270d
authored
Dec 30, 2010
by
André Hentschel
Committed by
Alexandre Julliard
Dec 31, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell32/tests: Don't test function directly when reporting GetLastError().
parent
cbf967d6
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
shlfolder.c
dlls/shell32/tests/shlfolder.c
+4
-3
No files found.
dlls/shell32/tests/shlfolder.c
View file @
2c20270d
...
...
@@ -2061,6 +2061,7 @@ static void test_LocalizedNames(void)
DWORD
res
;
HANDLE
file
;
STRRET
strret
;
BOOL
ret
;
static
const
char
desktopini_contents1
[]
=
"[.ShellClassInfo]
\r\n
"
...
...
@@ -2080,10 +2081,10 @@ static void test_LocalizedNames(void)
file
=
CreateFileA
(
".
\\
testfolder
\\
desktop.ini"
,
GENERIC_WRITE
,
0
,
NULL
,
CREATE_ALWAYS
,
FILE_ATTRIBUTE_NORMAL
,
NULL
);
ok
(
file
!=
INVALID_HANDLE_VALUE
,
"CreateFileA failed %i
\n
"
,
GetLastError
());
ok
(
WriteFile
(
file
,
desktopini_contents1
,
strlen
(
desktopini_contents1
),
&
res
,
NULL
)
&&
ret
=
WriteFile
(
file
,
desktopini_contents1
,
strlen
(
desktopini_contents1
),
&
res
,
NULL
)
&&
WriteFile
(
file
,
resourcefile
,
strlen
(
resourcefile
),
&
res
,
NULL
)
&&
WriteFile
(
file
,
desktopini_contents2
,
strlen
(
desktopini_contents2
),
&
res
,
NULL
),
"WriteFile failed %i
\n
"
,
GetLastError
());
WriteFile
(
file
,
desktopini_contents2
,
strlen
(
desktopini_contents2
),
&
res
,
NULL
);
ok
(
ret
,
"WriteFile failed %i
\n
"
,
GetLastError
());
CloseHandle
(
file
);
/* get IShellFolder for parent */
...
...
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