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
2b19e357
Commit
2b19e357
authored
May 29, 2008
by
James Hawkins
Committed by
Alexandre Julliard
May 30, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: win2k3's GetWindowModuleFileName does return ERROR_INSUFFICIENT_BUFFER.
parent
4c928d39
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
4 deletions
+12
-4
win.c
dlls/user32/tests/win.c
+12
-4
No files found.
dlls/user32/tests/win.c
View file @
2b19e357
...
@@ -4695,22 +4695,30 @@ static void test_GetWindowModuleFileName(void)
...
@@ -4695,22 +4695,30 @@ static void test_GetWindowModuleFileName(void)
SetLastError
(
0xdeadbeef
);
SetLastError
(
0xdeadbeef
);
ret2
=
GetModuleFileName
(
hinst
,
buf2
,
ret1
-
2
);
ret2
=
GetModuleFileName
(
hinst
,
buf2
,
ret1
-
2
);
ok
(
ret2
==
ret1
-
2
,
"expected %u, got %u
\n
"
,
ret1
-
2
,
ret2
);
ok
(
ret2
==
ret1
-
2
,
"expected %u, got %u
\n
"
,
ret1
-
2
,
ret2
);
ok
(
GetLastError
()
==
0xdeadbeef
,
"expected 0xdeadbeef, got %u
\n
"
,
GetLastError
());
ok
(
GetLastError
()
==
0xdeadbeef
||
GetLastError
()
==
ERROR_INSUFFICIENT_BUFFER
,
/* win2k3 */
"expected 0xdeadbeef or ERROR_INSUFFICIENT_BUFFER, got %u
\n
"
,
GetLastError
());
SetLastError
(
0xdeadbeef
);
SetLastError
(
0xdeadbeef
);
ret2
=
GetModuleFileName
(
hinst
,
buf2
,
0
);
ret2
=
GetModuleFileName
(
hinst
,
buf2
,
0
);
ok
(
!
ret2
,
"GetModuleFileName should return 0
\n
"
);
ok
(
!
ret2
,
"GetModuleFileName should return 0
\n
"
);
ok
(
GetLastError
()
==
0xdeadbeef
,
"expected 0xdeadbeef, got %u
\n
"
,
GetLastError
());
ok
(
GetLastError
()
==
0xdeadbeef
||
GetLastError
()
==
ERROR_INSUFFICIENT_BUFFER
,
/* win2k3 */
"expected 0xdeadbeef or ERROR_INSUFFICIENT_BUFFER, got %u
\n
"
,
GetLastError
());
SetLastError
(
0xdeadbeef
);
SetLastError
(
0xdeadbeef
);
ret2
=
pGetWindowModuleFileNameA
(
hwnd
,
buf2
,
ret1
-
2
);
ret2
=
pGetWindowModuleFileNameA
(
hwnd
,
buf2
,
ret1
-
2
);
ok
(
ret2
==
ret1
-
2
,
"expected %u, got %u
\n
"
,
ret1
-
2
,
ret2
);
ok
(
ret2
==
ret1
-
2
,
"expected %u, got %u
\n
"
,
ret1
-
2
,
ret2
);
ok
(
GetLastError
()
==
0xdeadbeef
,
"expected 0xdeadbeef, got %u
\n
"
,
GetLastError
());
ok
(
GetLastError
()
==
0xdeadbeef
||
GetLastError
()
==
ERROR_INSUFFICIENT_BUFFER
,
/* win2k3 */
"expected 0xdeadbeef or ERROR_INSUFFICIENT_BUFFER, got %u
\n
"
,
GetLastError
());
SetLastError
(
0xdeadbeef
);
SetLastError
(
0xdeadbeef
);
ret2
=
pGetWindowModuleFileNameA
(
hwnd
,
buf2
,
0
);
ret2
=
pGetWindowModuleFileNameA
(
hwnd
,
buf2
,
0
);
ok
(
!
ret2
,
"expected 0, got %u
\n
"
,
ret2
);
ok
(
!
ret2
,
"expected 0, got %u
\n
"
,
ret2
);
ok
(
GetLastError
()
==
0xdeadbeef
,
"expected 0xdeadbeef, got %u
\n
"
,
GetLastError
());
ok
(
GetLastError
()
==
0xdeadbeef
||
GetLastError
()
==
ERROR_INSUFFICIENT_BUFFER
,
/* win2k3 */
"expected 0xdeadbeef or ERROR_INSUFFICIENT_BUFFER, got %u
\n
"
,
GetLastError
());
DestroyWindow
(
hwnd
);
DestroyWindow
(
hwnd
);
...
...
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