mirror of
https://github.com/reactos/reactos.git
synced 2024-08-13 14:47:31 +00:00
Revert 33953. This is completely wrong! WINE doesn't quite get the ordinals right. Ordinal 200 really should be SHCreateDesktop and ordinal 201 really should be SHDesktopMessageLoop. I am currently working on a patch for this. The fact that explorer-new was able to start with these changes is just pure coincidence.
svn path=/trunk/; revision=33954
This commit is contained in:
parent
756f63990f
commit
451c7e1c69
|
@ -189,10 +189,10 @@
|
||||||
197 stub -noname SHGlobalDefect
|
197 stub -noname SHGlobalDefect
|
||||||
198 stdcall -noname SHAbortInvokeCommand()
|
198 stdcall -noname SHAbortInvokeCommand()
|
||||||
199 stub SHGetFileIcon
|
199 stub SHGetFileIcon
|
||||||
200 stdcall SHLocalAlloc(long long)
|
200 stub SHLocalAlloc
|
||||||
201 stdcall SHLocalFree(ptr)
|
201 stub SHLocalFree
|
||||||
202 stdcall SHLocalReAlloc(ptr long long)
|
202 stub SHLocalReAlloc
|
||||||
203 stdcall AddCommasW(long str)
|
203 stub AddCommasW
|
||||||
204 stub ShortSizeFormatW
|
204 stub ShortSizeFormatW
|
||||||
205 stdcall Printer_LoadIconsW(wstr ptr ptr)
|
205 stdcall Printer_LoadIconsW(wstr ptr ptr)
|
||||||
206 stub Link_AddExtraDataSection
|
206 stub Link_AddExtraDataSection
|
||||||
|
|
|
@ -843,73 +843,6 @@ VOID WINAPI Printers_UnregisterWindow(HANDLE hClassPidl, HWND hwnd)
|
||||||
|
|
||||||
/*************************************************************************/
|
/*************************************************************************/
|
||||||
|
|
||||||
/*************************************************************************
|
|
||||||
* AddCommasW [SHELL32.203]
|
|
||||||
*/
|
|
||||||
LPWSTR WINAPI AddCommasW(DWORD lValue, LPWSTR szRet)
|
|
||||||
{
|
|
||||||
WCHAR szValue[MAX_PATH], szSeparator[8 + 1];
|
|
||||||
NUMBERFMTW numFormat;
|
|
||||||
LCID lcid = GetUserDefaultLCID();
|
|
||||||
|
|
||||||
GetLocaleInfoW(lcid,
|
|
||||||
LOCALE_STHOUSAND,
|
|
||||||
szSeparator,
|
|
||||||
8 + 1);
|
|
||||||
|
|
||||||
numFormat.NumDigits = 0;
|
|
||||||
numFormat.LeadingZero = 0;
|
|
||||||
numFormat.Grouping = 0;
|
|
||||||
numFormat.lpDecimalSep = szSeparator;
|
|
||||||
numFormat.lpThousandSep = szSeparator;
|
|
||||||
numFormat.NegativeOrder = 0;
|
|
||||||
|
|
||||||
swprintf(szValue, L"%llu", lValue);
|
|
||||||
//_ultow(lValue, szValue, 16);
|
|
||||||
|
|
||||||
if (GetNumberFormatW(lcid,
|
|
||||||
0,
|
|
||||||
szValue,
|
|
||||||
&numFormat,
|
|
||||||
szRet,
|
|
||||||
wcslen(szRet)) != 0)
|
|
||||||
{
|
|
||||||
return szRet;
|
|
||||||
}
|
|
||||||
|
|
||||||
wcscpy(szRet, szValue);
|
|
||||||
return szRet;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/*************************************************************************
|
|
||||||
* SHLocalAlloc [SHELL32.200]
|
|
||||||
*/
|
|
||||||
HLOCAL WINAPI SHLocalAlloc(UINT uFlags, SIZE_T uBytes)
|
|
||||||
{
|
|
||||||
return LocalAlloc(uFlags, uBytes);
|
|
||||||
}
|
|
||||||
|
|
||||||
/*************************************************************************
|
|
||||||
* SHLocalFree [SHELL32.201]
|
|
||||||
*/
|
|
||||||
HLOCAL WINAPI SHLocalFree(HLOCAL hMem)
|
|
||||||
{
|
|
||||||
return LocalFree(hMem);
|
|
||||||
}
|
|
||||||
|
|
||||||
/*************************************************************************
|
|
||||||
* SHLocalAlloc [SHELL32.202]
|
|
||||||
*/
|
|
||||||
HLOCAL WINAPI SHLocalReAlloc(HLOCAL hMem, SIZE_T uBytes, UINT uFlags)
|
|
||||||
{
|
|
||||||
return LocalReAlloc(hMem, uBytes, uFlags);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/*************************************************************************/
|
|
||||||
|
|
||||||
|
|
||||||
typedef struct
|
typedef struct
|
||||||
{
|
{
|
||||||
LPCWSTR szApp;
|
LPCWSTR szApp;
|
||||||
|
|
Loading…
Reference in a new issue