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
730e744e
Commit
730e744e
authored
Oct 08, 2014
by
Nikolay Sivov
Committed by
Alexandre Julliard
Oct 08, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell32: Use E_NOT_SUFFICIENT_BUFFER definition.
parent
a7b848f3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
shellpath.c
dlls/shell32/shellpath.c
+1
-1
shfldr_desktop.c
dlls/shell32/shfldr_desktop.c
+1
-1
shellpath.c
dlls/shell32/tests/shellpath.c
+1
-1
No files found.
dlls/shell32/shellpath.c
View file @
730e744e
...
@@ -2097,7 +2097,7 @@ static HRESULT _SHExpandEnvironmentStrings(LPCWSTR szSrc, LPWSTR szDest)
...
@@ -2097,7 +2097,7 @@ static HRESULT _SHExpandEnvironmentStrings(LPCWSTR szSrc, LPWSTR szDest)
DWORD
ret
=
ExpandEnvironmentStringsW
(
szSrc
,
szDest
,
MAX_PATH
);
DWORD
ret
=
ExpandEnvironmentStringsW
(
szSrc
,
szDest
,
MAX_PATH
);
if
(
ret
>
MAX_PATH
)
if
(
ret
>
MAX_PATH
)
hr
=
HRESULT_FROM_WIN32
(
ERROR_INSUFFICIENT_BUFFER
)
;
hr
=
E_NOT_SUFFICIENT_BUFFER
;
else
if
(
ret
==
0
)
else
if
(
ret
==
0
)
hr
=
HRESULT_FROM_WIN32
(
GetLastError
());
hr
=
HRESULT_FROM_WIN32
(
GetLastError
());
else
else
...
...
dlls/shell32/shfldr_desktop.c
View file @
730e744e
...
@@ -247,7 +247,7 @@ static HRESULT WINAPI ISF_Desktop_fnParseDisplayName (IShellFolder2 * iface,
...
@@ -247,7 +247,7 @@ static HRESULT WINAPI ISF_Desktop_fnParseDisplayName (IShellFolder2 * iface,
else
else
{
{
/* should never reach here, but for completeness */
/* should never reach here, but for completeness */
hr
=
HRESULT_FROM_WIN32
(
ERROR_INSUFFICIENT_BUFFER
)
;
hr
=
E_NOT_SUFFICIENT_BUFFER
;
}
}
}
}
}
}
...
...
dlls/shell32/tests/shellpath.c
View file @
730e744e
...
@@ -878,7 +878,7 @@ if (0) { /* crashes */
...
@@ -878,7 +878,7 @@ if (0) { /* crashes */
ok
(
hr
==
E_INVALIDARG
,
"expected E_INVALIDARG, got 0x%08x
\n
"
,
hr
);
ok
(
hr
==
E_INVALIDARG
,
"expected E_INVALIDARG, got 0x%08x
\n
"
,
hr
);
}
}
hr
=
pSHGetFolderPathEx
(
&
FOLDERID_Desktop
,
0
,
NULL
,
buffer
,
len
);
hr
=
pSHGetFolderPathEx
(
&
FOLDERID_Desktop
,
0
,
NULL
,
buffer
,
len
);
ok
(
hr
==
HRESULT_FROM_WIN32
(
ERROR_INSUFFICIENT_BUFFER
),
"expected 0x8007007a
, got 0x%08x
\n
"
,
hr
);
ok
(
hr
==
E_NOT_SUFFICIENT_BUFFER
,
"expected E_NOT_SUFFICIENT_BUFFER
, got 0x%08x
\n
"
,
hr
);
hr
=
pSHGetFolderPathEx
(
&
FOLDERID_Desktop
,
0
,
NULL
,
buffer
,
len
+
1
);
hr
=
pSHGetFolderPathEx
(
&
FOLDERID_Desktop
,
0
,
NULL
,
buffer
,
len
+
1
);
ok
(
hr
==
S_OK
,
"expected S_OK, got 0x%08x
\n
"
,
hr
);
ok
(
hr
==
S_OK
,
"expected S_OK, got 0x%08x
\n
"
,
hr
);
...
...
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