Hi,
License: X11
ChangeLog:
Jon Griffiths <jon_p_griffiths@yahoo.com>
+dlls/shlwapi/thread.c
Misc fixes
=====
"Don't wait for the seas to part, or messiahs to come;
Don't you sit around and waste this chance..." - Live
jon_p_griffiths@yahoo.com
__________________________________
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com
--- wine/dlls/shlwapi/thread.c Fri Jul 4 17:47:51 2003
+++ wine-develop2/dlls/shlwapi/thread.c Mon May 12 17:53:10 2003
@@ -69,8 +69,7 @@
* Wine is impersonating does not use security descriptors (i.e. anything
* before Windows NT).
*/
-LPSECURITY_ATTRIBUTES
-WINAPI _CreateAllAccessSecurityAttributes(
+LPSECURITY_ATTRIBUTES WINAPI _CreateAllAccessSecurityAttributes(
LPSECURITY_ATTRIBUTES lpAttr,
PSECURITY_DESCRIPTOR lpSec)
{
@@ -104,7 +103,7 @@
* Get an interface to the shell explorer.
*
* PARAMS
- * lppUnknown [O] pointer to receive IUnknown interface.
+ * lppUnknown [O] Destination for explorers IUnknown interface.
*
* RETURNS
* Success: S_OK. lppUnknown contains the explorer interface.
@@ -135,7 +134,7 @@
/*************************************************************************
* SHGetThreadRef [SHLWAPI.@]
*
- * Get a per-thread object reference set by SHSetThreadRef.
+ * Get a per-thread object reference set by SHSetThreadRef().
*
* PARAMS
* lppUnknown [O] Destination to receive object reference
@@ -148,7 +147,7 @@
{
TRACE("(%p)\n", lppUnknown);
- if (!lppUnknown || SHLWAPI_ThreadRef_index == -1u)
+ if (!lppUnknown || SHLWAPI_ThreadRef_index == TLS_OUT_OF_INDEXES)
return E_NOINTERFACE;
*lppUnknown = (IUnknown*)TlsGetValue(SHLWAPI_ThreadRef_index);
@@ -192,7 +191,7 @@
* None.
*
* RETURNS
- * Success: S_OK. The threads obbject reference is released.
+ * Success: S_OK. The threads object reference is released.
* Failure: An HRESULT error code.
*/
HRESULT WINAPI SHReleaseThreadRef()
@@ -261,7 +260,7 @@
* PARAMS
* pfnThreadProc [I] Function to execute in new thread
* pData [I] Application specific data passed to pfnThreadProc
- * dwFlags [I] Initialisation to perform in the new thread
+ * dwFlags [I] CTF_ flags from "shlwapi.h"
* pfnCallback [I] Function to execute before pfnThreadProc
*
* RETURNS
@@ -348,9 +347,9 @@
* RETURNS
* The current count of the semaphore.
*/
-DWORD WINAPI _SHGlobalCounterGetValue(HANDLE hSem)
+LONG WINAPI _SHGlobalCounterGetValue(HANDLE hSem)
{
- DWORD dwOldCount = 0;
+ LONG dwOldCount = 0;
TRACE("(%p)\n", hSem);
ReleaseSemaphore(hSem, 1, &dwOldCount); /* +1 */
@@ -369,9 +368,9 @@
* RETURNS
* The new count of the semaphore.
*/
-DWORD WINAPI _SHGlobalCounterIncrement(HANDLE hSem)
+LONG WINAPI _SHGlobalCounterIncrement(HANDLE hSem)
{
- DWORD dwOldCount = 0;
+ LONG dwOldCount = 0;
TRACE("(%p)\n", hSem);
ReleaseSemaphore(hSem, 1, &dwOldCount);