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
fff6db62
Commit
fff6db62
authored
Apr 25, 2007
by
Kirill K. Smirnov
Committed by
Alexandre Julliard
Apr 27, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32: Add partial stub for NeedCurrentDirectoryForExePath.
parent
b43167a4
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
42 additions
and
0 deletions
+42
-0
kernel32.spec
dlls/kernel32/kernel32.spec
+2
-0
path.c
dlls/kernel32/path.c
+37
-0
winbase.h
include/winbase.h
+3
-0
No files found.
dlls/kernel32/kernel32.spec
View file @
fff6db62
...
...
@@ -799,6 +799,8 @@
@ stdcall MoveFileWithProgressW(wstr wstr ptr ptr long)
@ stdcall MulDiv(long long long)
@ stdcall MultiByteToWideChar(long long str long ptr long)
@ stdcall NeedCurrentDirectoryForExePathA(str)
@ stdcall NeedCurrentDirectoryForExePathW(wstr)
# @ stub NlsConvertIntegerToString
# @ stub NlsGetCacheUpdateCount
# @ stub NlsResetProcessLocale
...
...
dlls/kernel32/path.c
View file @
fff6db62
...
...
@@ -1511,6 +1511,43 @@ UINT WINAPI GetSystemWow64DirectoryA( LPSTR lpBuffer, UINT uSize )
/***********************************************************************
* NeedCurrentDirectoryForExePathW (KERNEL32.@)
*/
BOOL
WINAPI
NeedCurrentDirectoryForExePathW
(
LPCWSTR
name
)
{
static
const
WCHAR
env_name
[]
=
{
'N'
,
'o'
,
'D'
,
'e'
,
'f'
,
'a'
,
'u'
,
'l'
,
't'
,
'C'
,
'u'
,
'r'
,
'r'
,
'e'
,
'n'
,
't'
,
'D'
,
'i'
,
'r'
,
'e'
,
'c'
,
't'
,
'o'
,
'r'
,
'y'
,
'I'
,
'n'
,
'E'
,
'x'
,
'e'
,
'P'
,
'a'
,
't'
,
'h'
,
0
};
WCHAR
env_val
;
/* MSDN mentions some 'registry location'. We do not use registry. */
FIXME
(
"(%s): partial stub
\n
"
,
debugstr_w
(
name
));
if
(
strchrW
(
name
,
'\\'
))
return
TRUE
;
/* Check the existence of the variable, not value */
if
(
!
GetEnvironmentVariableW
(
env_name
,
&
env_val
,
1
))
return
TRUE
;
return
FALSE
;
}
/***********************************************************************
* NeedCurrentDirectoryForExePathA (KERNEL32.@)
*/
BOOL
WINAPI
NeedCurrentDirectoryForExePathA
(
LPCSTR
name
)
{
WCHAR
*
nameW
;
if
(
!
(
nameW
=
FILE_name_AtoW
(
name
,
FALSE
)))
return
TRUE
;
return
NeedCurrentDirectoryForExePathW
(
nameW
);
}
/***********************************************************************
* wine_get_unix_file_name (KERNEL32.@) Not a Windows API
*
* Return the full Unix file name for a given path.
...
...
include/winbase.h
View file @
fff6db62
...
...
@@ -1839,6 +1839,9 @@ BOOL WINAPI MoveFileWithProgressA(LPCSTR,LPCSTR,LPPROGRESS_ROUTINE,LPVOID
BOOL
WINAPI
MoveFileWithProgressW
(
LPCWSTR
,
LPCWSTR
,
LPPROGRESS_ROUTINE
,
LPVOID
,
DWORD
);
#define MoveFileWithProgress WINELIB_NAME_AW(MoveFileWithProgress)
INT
WINAPI
MulDiv
(
INT
,
INT
,
INT
);
BOOL
WINAPI
NeedCurrentDirectoryForExePathA
(
LPCSTR
);
BOOL
WINAPI
NeedCurrentDirectoryForExePathW
(
LPCWSTR
);
#define NeedCurrentDirectoryForExePath WINELIB_NAME_AW(NeedCurrentDirectoryForExePath)
BOOL
WINAPI
NotifyChangeEventLog
(
HANDLE
,
HANDLE
);
BOOL
WINAPI
ObjectCloseAuditAlarmA
(
LPCSTR
,
LPVOID
,
BOOL
);
BOOL
WINAPI
ObjectCloseAuditAlarmW
(
LPCWSTR
,
LPVOID
,
BOOL
);
...
...
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