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
81079ef3
Commit
81079ef3
authored
Aug 30, 2011
by
Alistair Leslie-Hughes
Committed by
Alexandre Julliard
Aug 31, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
uxtheme: Set last error on NULL pointer.
parent
95648743
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
8 deletions
+10
-8
system.c
dlls/uxtheme/system.c
+6
-0
system.c
dlls/uxtheme/tests/system.c
+4
-8
No files found.
dlls/uxtheme/system.c
View file @
81079ef3
...
@@ -641,6 +641,12 @@ HTHEME WINAPI OpenThemeDataEx(HWND hwnd, LPCWSTR pszClassList, DWORD flags)
...
@@ -641,6 +641,12 @@ HTHEME WINAPI OpenThemeDataEx(HWND hwnd, LPCWSTR pszClassList, DWORD flags)
HTHEME
hTheme
=
NULL
;
HTHEME
hTheme
=
NULL
;
TRACE
(
"(%p,%s, %x)
\n
"
,
hwnd
,
debugstr_w
(
pszClassList
),
flags
);
TRACE
(
"(%p,%s, %x)
\n
"
,
hwnd
,
debugstr_w
(
pszClassList
),
flags
);
if
(
!
pszClassList
)
{
SetLastError
(
E_POINTER
);
return
NULL
;
}
if
(
flags
)
if
(
flags
)
FIXME
(
"unhandled flags: %x
\n
"
,
flags
);
FIXME
(
"unhandled flags: %x
\n
"
,
flags
);
...
...
dlls/uxtheme/tests/system.c
View file @
81079ef3
...
@@ -192,8 +192,7 @@ static void test_OpenThemeData(void)
...
@@ -192,8 +192,7 @@ static void test_OpenThemeData(void)
SetLastError
(
0xdeadbeef
);
SetLastError
(
0xdeadbeef
);
hTheme
=
pOpenThemeData
(
NULL
,
NULL
);
hTheme
=
pOpenThemeData
(
NULL
,
NULL
);
ok
(
hTheme
==
NULL
,
"Expected a NULL return, got %p
\n
"
,
hTheme
);
ok
(
hTheme
==
NULL
,
"Expected a NULL return, got %p
\n
"
,
hTheme
);
todo_wine
ok
(
GetLastError
()
==
E_POINTER
,
ok
(
GetLastError
()
==
E_POINTER
,
"Expected GLE() to be E_POINTER, got 0x%08x
\n
"
,
"Expected GLE() to be E_POINTER, got 0x%08x
\n
"
,
GetLastError
());
GetLastError
());
...
@@ -232,8 +231,7 @@ static void test_OpenThemeData(void)
...
@@ -232,8 +231,7 @@ static void test_OpenThemeData(void)
SetLastError
(
0xdeadbeef
);
SetLastError
(
0xdeadbeef
);
hTheme
=
pOpenThemeData
(
hWnd
,
NULL
);
hTheme
=
pOpenThemeData
(
hWnd
,
NULL
);
ok
(
hTheme
==
NULL
,
"Expected a NULL return, got %p
\n
"
,
hTheme
);
ok
(
hTheme
==
NULL
,
"Expected a NULL return, got %p
\n
"
,
hTheme
);
todo_wine
ok
(
GetLastError
()
==
E_POINTER
,
ok
(
GetLastError
()
==
E_POINTER
,
"Expected GLE() to be E_POINTER, got 0x%08x
\n
"
,
"Expected GLE() to be E_POINTER, got 0x%08x
\n
"
,
GetLastError
());
GetLastError
());
...
@@ -359,8 +357,7 @@ static void test_OpenThemeDataEx(void)
...
@@ -359,8 +357,7 @@ static void test_OpenThemeDataEx(void)
SetLastError
(
0xdeadbeef
);
SetLastError
(
0xdeadbeef
);
hTheme
=
pOpenThemeDataEx
(
NULL
,
NULL
,
0
);
hTheme
=
pOpenThemeDataEx
(
NULL
,
NULL
,
0
);
ok
(
hTheme
==
NULL
,
"Expected a NULL return, got %p
\n
"
,
hTheme
);
ok
(
hTheme
==
NULL
,
"Expected a NULL return, got %p
\n
"
,
hTheme
);
todo_wine
ok
(
GetLastError
()
==
E_POINTER
,
ok
(
GetLastError
()
==
E_POINTER
,
"Expected GLE() to be E_POINTER, got 0x%08x
\n
"
,
"Expected GLE() to be E_POINTER, got 0x%08x
\n
"
,
GetLastError
());
GetLastError
());
...
@@ -399,8 +396,7 @@ static void test_OpenThemeDataEx(void)
...
@@ -399,8 +396,7 @@ static void test_OpenThemeDataEx(void)
SetLastError
(
0xdeadbeef
);
SetLastError
(
0xdeadbeef
);
hTheme
=
pOpenThemeDataEx
(
hWnd
,
NULL
,
0
);
hTheme
=
pOpenThemeDataEx
(
hWnd
,
NULL
,
0
);
ok
(
hTheme
==
NULL
,
"Expected a NULL return, got %p
\n
"
,
hTheme
);
ok
(
hTheme
==
NULL
,
"Expected a NULL return, got %p
\n
"
,
hTheme
);
todo_wine
ok
(
GetLastError
()
==
E_POINTER
,
ok
(
GetLastError
()
==
E_POINTER
,
"Expected GLE() to be E_POINTER, got 0x%08x
\n
"
,
"Expected GLE() to be E_POINTER, got 0x%08x
\n
"
,
GetLastError
());
GetLastError
());
...
...
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