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
3b239dbc
Commit
3b239dbc
authored
Aug 05, 2011
by
Francois Gouget
Committed by
Alexandre Julliard
Aug 05, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32: Implement K32GetProcessImageFileNameA().
parent
3a1194ed
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
5 deletions
+4
-5
process.c
dlls/kernel32/process.c
+1
-2
psapi_main.c
dlls/psapi/tests/psapi_main.c
+3
-3
No files found.
dlls/kernel32/process.c
View file @
3b239dbc
...
...
@@ -3479,8 +3479,7 @@ cleanup:
*/
DWORD
WINAPI
K32GetProcessImageFileNameA
(
HANDLE
process
,
LPSTR
file
,
DWORD
size
)
{
FIXME
(
"(%p, %p, %d) stub
\n
"
,
process
,
file
,
size
);
return
0
;
return
QueryFullProcessImageNameA
(
process
,
PROCESS_NAME_NATIVE
,
file
,
&
size
)
?
size
:
0
;
}
/***********************************************************************
...
...
dlls/psapi/tests/psapi_main.c
View file @
3b239dbc
...
...
@@ -222,15 +222,15 @@ static void test_GetProcessImageFileName(void)
SetLastError
(
0xdeadbeef
);
pGetProcessImageFileNameA
(
NULL
,
szImgPath
,
sizeof
(
szImgPath
));
todo_wine
ok
(
GetLastError
()
==
ERROR_INVALID_HANDLE
,
"expected error=ERROR_INVALID_HANDLE but got %d
\n
"
,
GetLastError
());
ok
(
GetLastError
()
==
ERROR_INVALID_HANDLE
,
"expected error=ERROR_INVALID_HANDLE but got %d
\n
"
,
GetLastError
());
SetLastError
(
0xdeadbeef
);
pGetProcessImageFileNameA
(
hpSR
,
szImgPath
,
sizeof
(
szImgPath
));
todo_wine
ok
(
GetLastError
()
==
ERROR_ACCESS_DENIED
,
"expected error=ERROR_ACCESS_DENIED but got %d
\n
"
,
GetLastError
());
ok
(
GetLastError
()
==
ERROR_ACCESS_DENIED
,
"expected error=ERROR_ACCESS_DENIED but got %d
\n
"
,
GetLastError
());
SetLastError
(
0xdeadbeef
);
pGetProcessImageFileNameA
(
hpQI
,
szImgPath
,
0
);
todo_wine
ok
(
GetLastError
()
==
ERROR_INSUFFICIENT_BUFFER
,
"expected error=ERROR_INSUFFICIENT_BUFFER but got %d
\n
"
,
GetLastError
());
ok
(
GetLastError
()
==
ERROR_INSUFFICIENT_BUFFER
,
"expected error=ERROR_INSUFFICIENT_BUFFER but got %d
\n
"
,
GetLastError
());
ret
=
pGetProcessImageFileNameA
(
hpQI
,
szImgPath
,
sizeof
(
szImgPath
));
ret1
=
pGetMappedFileNameA
(
hpQV
,
hMod
,
szMapPath
,
sizeof
(
szMapPath
));
...
...
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