Author: pschweitzer
Date: Tue Jul 8 14:27:29 2008
New Revision: 34372
URL:
http://svn.reactos.org/svn/reactos?rev=34372&view=rev
Log:
Synced riched32.dll, shlwapi.dll, urlmon.dll with Wine HEAD
Modified:
trunk/reactos/dll/win32/riched32/riched32.rbuild
trunk/reactos/dll/win32/riched32/richedit.c
trunk/reactos/dll/win32/shlwapi/assoc.c
trunk/reactos/dll/win32/shlwapi/string.c
trunk/reactos/dll/win32/shlwapi/url.c
trunk/reactos/dll/win32/urlmon/file.c
trunk/reactos/dll/win32/urlmon/mk.c
Modified: trunk/reactos/dll/win32/riched32/riched32.rbuild
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/riched32/riched3…
==============================================================================
--- trunk/reactos/dll/win32/riched32/riched32.rbuild [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/riched32/riched32.rbuild [iso-8859-1] Tue Jul 8 14:27:29
2008
@@ -1,5 +1,6 @@
<?xml version="1.0"?>
<!DOCTYPE module SYSTEM "../../../tools/rbuild/project.dtd">
+<group>
<module name="riched32" type="win32dll"
baseaddress="${BASEADDRESS_RICHED32}" installbase="system32"
installname="riched32.dll" allowwarnings="true">
<importlibrary definition="riched32.spec.def" />
<include base="riched32">.</include>
@@ -7,12 +8,13 @@
<define name="__WINESRC__" />
<define name="WINVER">0x600</define>
<define name="_WIN32_WINNT">0x600</define>
+ <file>richedit.c</file>
+ <file>version.rc</file>
+ <file>riched32.spec</file>
<library>wine</library>
<library>riched20</library>
<library>user32</library>
<library>kernel32</library>
<library>ntdll</library>
- <file>richedit.c</file>
- <file>version.rc</file>
- <file>riched32.spec</file>
</module>
+</group>
Modified: trunk/reactos/dll/win32/riched32/richedit.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/riched32/richedi…
==============================================================================
--- trunk/reactos/dll/win32/riched32/richedit.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/riched32/richedit.c [iso-8859-1] Tue Jul 8 14:27:29 2008
@@ -56,7 +56,7 @@
WNDCLASSA wndClass;
ZeroMemory(&wndClass, sizeof(WNDCLASSA));
- wndClass.style = CS_HREDRAW | CS_VREDRAW | CS_GLOBALCLASS;
+ wndClass.style = CS_DBLCLKS | CS_HREDRAW | CS_VREDRAW | CS_GLOBALCLASS;
wndClass.lpfnWndProc = RichEdit10ANSIWndProc;
wndClass.cbClsExtra = 0;
wndClass.cbWndExtra = 4;
Modified: trunk/reactos/dll/win32/shlwapi/assoc.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/shlwapi/assoc.c?…
==============================================================================
--- trunk/reactos/dll/win32/shlwapi/assoc.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/shlwapi/assoc.c [iso-8859-1] Tue Jul 8 14:27:29 2008
@@ -503,7 +503,7 @@
* PARAMS
* iface [I] IQueryAssociations interface to initialise
* cfFlags [I] ASSOCF_ flags from "shlwapi.h"
- * pszAssoc [I] String for the root key name, or NULL if hkProgid is given
+ * pszAssoc [I] String for the root key name, or NULL if hkeyProgid is given
* hkeyProgid [I] Handle for the root key, or NULL if pszAssoc is given
* hWnd [I] Reserved, must be NULL.
*
Modified: trunk/reactos/dll/win32/shlwapi/string.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/shlwapi/string.c…
==============================================================================
--- trunk/reactos/dll/win32/shlwapi/string.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/shlwapi/string.c [iso-8859-1] Tue Jul 8 14:27:29 2008
@@ -511,7 +511,7 @@
* Internal implementation of StrStrA/StrStrIA
*/
static LPSTR SHLWAPI_StrStrHelperA(LPCSTR lpszStr, LPCSTR lpszSearch,
- int (*pStrCmpFn)(LPCSTR,LPCSTR,size_t))
+ INT (WINAPI *pStrCmpFn)(LPCSTR,LPCSTR,INT))
{
size_t iLen;
@@ -545,7 +545,7 @@
{
TRACE("(%s,%s)\n", debugstr_a(lpszStr), debugstr_a(lpszSearch));
- return SHLWAPI_StrStrHelperA(lpszStr, lpszSearch, strncmp);
+ return SHLWAPI_StrStrHelperA(lpszStr, lpszSearch, StrCmpNA);
}
/*************************************************************************
@@ -650,7 +650,7 @@
{
TRACE("(%s,%s)\n", debugstr_a(lpszStr), debugstr_a(lpszSearch));
- return SHLWAPI_StrStrHelperA(lpszStr, lpszSearch, strncasecmp);
+ return SHLWAPI_StrStrHelperA(lpszStr, lpszSearch, StrCmpNIA);
}
/*************************************************************************
Modified: trunk/reactos/dll/win32/shlwapi/url.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/shlwapi/url.c?re…
==============================================================================
--- trunk/reactos/dll/win32/shlwapi/url.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/shlwapi/url.c [iso-8859-1] Tue Jul 8 14:27:29 2008
@@ -319,6 +319,7 @@
WCHAR slash = '/';
static const WCHAR wszFile[] =
{'f','i','l','e',':'};
+ static const WCHAR wszLocalhost[] =
{'l','o','c','a','l','h','o','s','t'};
TRACE("(%s, %p, %p, 0x%08x) *pcchCanonicalized: %d\n", debugstr_w(pszUrl),
pszCanonicalized,
pcchCanonicalized, dwFlags, pcchCanonicalized ? *pcchCanonicalized : -1);
@@ -387,6 +388,12 @@
*wk2++ = *wk1++;
if (*wk1 != '/') {state = 6; break;}
*wk2++ = *wk1++;
+ if((dwFlags & URL_FILE_USE_PATHURL) && nByteLen >=
sizeof(wszLocalhost)
+ && !memcmp(wszLocalhost, wk1, sizeof(wszLocalhost))){
+ wk1 += sizeof(wszLocalhost)/sizeof(WCHAR);
+ while(*wk1 == '\\' && (dwFlags &
URL_FILE_USE_PATHURL))
+ wk1++;
+ }
if(*wk1 == '/' && (dwFlags & URL_FILE_USE_PATHURL))
wk1++;
state = 4;
@@ -495,7 +502,7 @@
debugstr_w(pszUrl), debugstr_w(lpszUrlCpy));
}
nLen = lstrlenW(lpszUrlCpy);
- while ((nLen > 0) && ((lpszUrlCpy[nLen-1] ==
'\r')||(lpszUrlCpy[nLen-1] == '\n')))
+ while ((nLen > 0) && ((lpszUrlCpy[nLen-1] <= ' ')))
lpszUrlCpy[--nLen]=0;
if(dwFlags & (URL_UNESCAPE | URL_FILE_USE_PATHURL))
Modified: trunk/reactos/dll/win32/urlmon/file.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/urlmon/file.c?re…
==============================================================================
--- trunk/reactos/dll/win32/urlmon/file.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/urlmon/file.c [iso-8859-1] Tue Jul 8 14:27:29 2008
@@ -109,6 +109,10 @@
TRACE("(%p)->(%s %p %p %08x %d)\n", This, debugstr_w(szUrl),
pOIProtSink,
pOIBindInfo, grfPI, dwReserved);
+ if(!szUrl || lstrlenW(szUrl) < sizeof(wszFile)/sizeof(WCHAR)
+ || memcmp(szUrl, wszFile, sizeof(wszFile)))
+ return E_INVALIDARG;
+
memset(&bindinfo, 0, sizeof(bindinfo));
bindinfo.cbSize = sizeof(BINDINFO);
hres = IInternetBindInfo_GetBindInfo(pOIBindInfo, &grfBINDF, &bindinfo);
@@ -118,13 +122,6 @@
}
ReleaseBindInfo(&bindinfo);
-
- if(!szUrl || !*szUrl)
- return E_INVALIDARG;
-
- if(lstrlenW(szUrl) < sizeof(wszFile)/sizeof(WCHAR)
- || memcmp(szUrl, wszFile, sizeof(wszFile)))
- return MK_E_SYNTAX;
len = lstrlenW(szUrl)+16;
url = heap_alloc(len*sizeof(WCHAR));
Modified: trunk/reactos/dll/win32/urlmon/mk.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/urlmon/mk.c?rev=…
==============================================================================
--- trunk/reactos/dll/win32/urlmon/mk.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/urlmon/mk.c [iso-8859-1] Tue Jul 8 14:27:29 2008
@@ -106,7 +106,7 @@
CLSID clsid;
HRESULT hres;
- static const WCHAR wszMK[] = {'m','k',':'};
+ static const WCHAR wszMK[] = {'m','k',':','@'};
TRACE("(%p)->(%s %p %p %08x %d)\n", This, debugstr_w(szUrl),
pOIProtSink,
pOIBindInfo, grfPI, dwReserved);
@@ -133,10 +133,6 @@
}
ptr2 = szUrl + sizeof(wszMK)/sizeof(WCHAR);
- if(*ptr2 != '@')
- return report_result(pOIProtSink, INET_E_RESOURCE_NOT_FOUND,
ERROR_INVALID_PARAMETER);
- ptr2++;
-
ptr = strchrW(ptr2, ':');
if(!ptr)
return report_result(pOIProtSink, INET_E_RESOURCE_NOT_FOUND,
ERROR_INVALID_PARAMETER);