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
792e09f6
Commit
792e09f6
authored
May 24, 2001
by
Andreas Mohr
Committed by
Alexandre Julliard
May 24, 2001
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- add stubs SHLWAPI_294, UrlApplySchemeW
- correct SHLWAPI_151 parameters - implemented StrTrimA
parent
43e12ae2
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
76 additions
and
12 deletions
+76
-12
ordinal.c
dlls/shlwapi/ordinal.c
+33
-7
reg.c
dlls/shlwapi/reg.c
+1
-1
shlwapi.spec
dlls/shlwapi/shlwapi.spec
+4
-4
string.c
dlls/shlwapi/string.c
+25
-0
url.c
dlls/shlwapi/url.c
+13
-0
No files found.
dlls/shlwapi/ordinal.c
View file @
792e09f6
...
...
@@ -187,10 +187,12 @@ INT WINAPI SHLWAPI_74(HWND hWnd, INT nItem, LPWSTR lpsDest,INT nDestLen)
/*************************************************************************
* SHLWAPI_151 [SHLWAPI.151]
*
* pStr "HTTP/1.1", dw1 0x5
*/
DWORD
WINAPI
SHLWAPI_151
(
void
)
DWORD
WINAPI
SHLWAPI_151
(
LPSTR
pStr
,
LPVOID
ptr
,
DWORD
dw1
)
{
FIXME
(
"
: stub
\n
"
);
FIXME
(
"
('%s', %p, %08lx): stub
\n
"
,
pStr
,
ptr
,
dw1
);
return
0
;
}
...
...
@@ -213,9 +215,9 @@ DWORD WINAPI SHLWAPI_152(LPWSTR str1, LPWSTR str2, INT len)
/*************************************************************************
* SHLWAPI_153 [SHLWAPI.153]
*/
DWORD
WINAPI
SHLWAPI_153
(
DWORD
dw1
,
DWORD
dw
2
,
DWORD
dw3
)
DWORD
WINAPI
SHLWAPI_153
(
LPSTR
str1
,
LPSTR
str
2
,
DWORD
dw3
)
{
FIXME
(
"
%08lx %08lx %08lx - stub
\n
"
,
dw1
,
dw
2
,
dw3
);
FIXME
(
"
'%s' '%s' %08lx - stub
\n
"
,
str1
,
str
2
,
dw3
);
return
0
;
}
...
...
@@ -456,10 +458,10 @@ INT WINAPI SHLWAPI_217(LPCWSTR lpSrcStr, LPSTR lpDstStr, LPINT lpnMultiCharCount
HRESULT
WINAPI
SHLWAPI_219
(
LPVOID
w
,
/* [???] NOTE: returned by LocalAlloc, 0x450 bytes, iface */
LPVOID
x
,
REFIID
riid
,
REFIID
riid
,
/* e.g. IWebBrowser2 */
LPWSTR
z
)
/* [???] NOTE: OUT: path */
{
FIXME
(
"(%p %
p %s %p)stub
\n
"
,
w
,
x
,
debugstr_guid
(
riid
),
z
);
FIXME
(
"(%p %
s %s %p)stub
\n
"
,
w
,
debugstr_a
(
x
)
,
debugstr_guid
(
riid
),
z
);
return
0xabba1252
;
}
...
...
@@ -639,6 +641,30 @@ BOOL WINAPI SHLWAPI_289(LPCWSTR pszSound, HMODULE hmod, DWORD fdwSound)
}
/*************************************************************************
* SHLWAPI_294 [SHLWAPI.294]
*/
BOOL
WINAPI
SHLWAPI_294
(
LPSTR
str1
,
LPSTR
str2
,
LPSTR
pStr
,
DWORD
some_len
,
LPCSTR
lpStr2
)
{
/*
* str1: "I" "I" pushl esp+0x20
* str2: "U" "I" pushl 0x77c93810
* (is "I" and "U" "integer" and "unsigned" ??)
*
* pStr: "" "" pushl eax
* some_len: 0x824 0x104 pushl 0x824
* lpStr2: "%l" "%l" pushl esp+0xc
*
* shlwapi. StrCpyNW(lpStr2, irrelevant_var, 0x104);
* LocalAlloc(0x00, some_len) -> irrelevant_var
* LocalAlloc(0x40, irrelevant_len) -> pStr
* shlwapi.294(str1, str2, pStr, some_len, lpStr2);
* shlwapi.PathRemoveBlanksW(pStr);
*/
ERR
(
"('%s', '%s', '%s', %08lx, '%s'): stub!
\n
"
,
str1
,
str2
,
pStr
,
some_len
,
lpStr2
);
return
TRUE
;
}
/*************************************************************************
* SHLWAPI_313 [SHLWAPI.313]
*
* Late bound call to shell32.SHGetFileInfoW
...
...
@@ -991,7 +1017,7 @@ DWORD WINAPI SHLWAPI_431 (DWORD x)
* SHLWAPI_437 [SHLWAPI.437]
*
* NOTES
* In the real shlwapi, One time initilisation calls GetVersionEx and reads
* In the real shlwapi, One time initi
a
lisation calls GetVersionEx and reads
* the registry to determine what O/S & Service Pack level is running, and
* therefore which functions are available. Currently we always run as NT,
* since this means that we don't need extra code to emulate Unicode calls,
...
...
dlls/shlwapi/reg.c
View file @
792e09f6
...
...
@@ -59,7 +59,7 @@ LONG WINAPI SHRegGetUSValueW(
/*************************************************************************
* SHRegOpenUSKeyA [SHLWAPI.@]
*
* Opens
s
a user-specific registry key
* Opens a user-specific registry key
*/
LONG
WINAPI
SHRegOpenUSKeyA
(
LPCSTR
Path
,
...
...
dlls/shlwapi/shlwapi.spec
View file @
792e09f6
...
...
@@ -160,7 +160,7 @@ debug_channels (shell)
148 forward @ user32.VkKeyScanW
149 forward @ user32.WinHelpW
150 forward @ user32.wvsprintfW
151 stdcall @() SHLWAPI_151
151 stdcall @(
str ptr long
) SHLWAPI_151
152 stdcall @(wstr wstr long) SHLWAPI_152
153 stdcall @(long long long) SHLWAPI_153
154 stub @
...
...
@@ -303,7 +303,7 @@ debug_channels (shell)
291 stub @
292 stub @
293 stub @
294 st
ub @
294 st
dcall @(long long long long long) SHLWAPI_294
295 stub @
296 stub @
297 stub @
...
...
@@ -659,10 +659,10 @@ debug_channels (shell)
@ stdcall StrToIntExA(str long ptr) StrToIntExA
@ stdcall StrToIntExW(wstr long ptr) StrToIntExW
@ stdcall StrToIntW(wstr)StrToIntW
@ st
ub
StrTrimA
@ st
dcall StrTrimA(str str)
StrTrimA
@ stub StrTrimW
@ stub UrlApplySchemeA
@ st
ub
UrlApplySchemeW
@ st
dcall UrlApplySchemeW(str ptr ptr long)
UrlApplySchemeW
@ stdcall UrlCanonicalizeA(str ptr ptr long) UrlCanonicalizeA
@ stdcall UrlCanonicalizeW(wstr ptr ptr long) UrlCanonicalizeW
@ stub UrlCombineA
...
...
dlls/shlwapi/string.c
View file @
792e09f6
...
...
@@ -504,6 +504,31 @@ LPWSTR WINAPI StrNCatW(LPWSTR front, LPCWSTR back, INT cchMax)
}
/*************************************************************************
* StrTrimA [SHLWAPI]
*/
BOOL
WINAPI
StrTrimA
(
LPSTR
pszSource
,
LPCSTR
pszTrimChars
)
{
BOOL
trimmed
=
FALSE
;
LPSTR
pSrc
;
LPCSTR
pTrim
;
TRACE
(
"('%s', '%s');
\n
"
,
pszSource
,
pszTrimChars
);
for
(
pTrim
=
pszTrimChars
;
*
pTrim
;
pTrim
++
)
{
for
(
pSrc
=
pszSource
;
*
pSrc
;
pSrc
++
)
if
(
*
pSrc
==
*
pTrim
)
{
/* match -> remove this char.
* strlen(pSrc) equiv. to the correct strlen(pSrc+1)+1 */
memmove
(
pSrc
,
pSrc
+
1
,
strlen
(
pSrc
));
trimmed
=
TRUE
;
}
}
TRACE
(
"<- '%s'
\n
"
,
pszSource
);
return
trimmed
;
}
/*************************************************************************
* wnsprintfA [SHLWAPI]
*/
int
WINAPIV
wnsprintfA
(
LPSTR
lpOut
,
int
cchLimitIn
,
LPCSTR
lpFmt
,
...)
...
...
dlls/shlwapi/url.c
View file @
792e09f6
...
...
@@ -8,6 +8,7 @@
#include "windef.h"
#include "winbase.h"
#include "winerror.h"
#include "wine/unicode.h"
#include "shlwapi.h"
#include "debugtools.h"
...
...
@@ -360,3 +361,15 @@ HRESULT WINAPI UrlHashA(LPCSTR pszUrl, unsigned char *lpDest, INT nDestLen)
return
NOERROR
;
}
/*************************************************************************
* UrlApplySchemeW [SHLWAPI]
*/
HRESULT
WINAPI
UrlApplySchemeW
(
LPCWSTR
pszIn
,
LPWSTR
pszOut
,
LPDWORD
pcchOut
,
DWORD
dwFlags
)
{
HRESULT
err
=
NOERROR
;
FIXME
(
"(%s %p %p %08lx): stub !
\n
"
,
debugstr_w
(
pszIn
),
pszOut
,
pcchOut
,
dwFlags
);
strcpyW
(
pszOut
,
pszIn
);
*
pcchOut
=
(
err
!=
E_POINTER
)
?
strlenW
(
pszOut
)
:
0
;
return
err
;
}
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