Commit 25978317 authored by Francois Gouget's avatar Francois Gouget Committed by Alexandre Julliard

shlwapi: Fix ASCII / ANSI mixups in comments.

parent a16760ac
...@@ -39,7 +39,7 @@ WINE_DEFAULT_DEBUG_CHANNEL(shell); ...@@ -39,7 +39,7 @@ WINE_DEFAULT_DEBUG_CHANNEL(shell);
/************************************************************************* /*************************************************************************
* SHLWAPI_ParamAToW * SHLWAPI_ParamAToW
* *
* Internal helper function: Convert ASCII parameter to Unicode. * Internal helper function: Convert ANSI parameter to Unicode.
*/ */
static BOOL SHLWAPI_ParamAToW(LPCSTR lpszParam, LPWSTR lpszBuff, DWORD dwLen, static BOOL SHLWAPI_ParamAToW(LPCSTR lpszParam, LPWSTR lpszBuff, DWORD dwLen,
LPWSTR* lpszOut) LPWSTR* lpszOut)
......
...@@ -1253,7 +1253,7 @@ static BOOL CALLBACK SHLWAPI_EnumChildProc(HWND hWnd, LPARAM lParam) ...@@ -1253,7 +1253,7 @@ static BOOL CALLBACK SHLWAPI_EnumChildProc(HWND hWnd, LPARAM lParam)
* Nothing. * Nothing.
* *
* NOTES * NOTES
* The appropriate ASCII or Unicode function is called for the window. * The appropriate ANSI or Unicode function is called for the window.
*/ */
void WINAPI SHPropagateMessage(HWND hWnd, UINT uiMsgId, WPARAM wParam, LPARAM lParam, BOOL bSend) void WINAPI SHPropagateMessage(HWND hWnd, UINT uiMsgId, WPARAM wParam, LPARAM lParam, BOOL bSend)
{ {
...@@ -2038,7 +2038,7 @@ void WINAPI SHUnregisterClassesW(HINSTANCE hInst, LPCWSTR *lppClasses, INT iCoun ...@@ -2038,7 +2038,7 @@ void WINAPI SHUnregisterClassesW(HINSTANCE hInst, LPCWSTR *lppClasses, INT iCoun
/************************************************************************* /*************************************************************************
* @ [SHLWAPI.240] * @ [SHLWAPI.240]
* *
* Call The correct (Ascii/Unicode) default window procedure for a window. * Call The correct (ANSI/Unicode) default window procedure for a window.
* *
* PARAMS * PARAMS
* hWnd [I] Window to call the default procedure for * hWnd [I] Window to call the default procedure for
...@@ -2264,7 +2264,7 @@ VOID WINAPI SHWeakReleaseInterface(IUnknown *lpDest, IUnknown **lppUnknown) ...@@ -2264,7 +2264,7 @@ VOID WINAPI SHWeakReleaseInterface(IUnknown *lpDest, IUnknown **lppUnknown)
/************************************************************************* /*************************************************************************
* @ [SHLWAPI.269] * @ [SHLWAPI.269]
* *
* Convert an ASCII string of a CLSID into a CLSID. * Convert an ANSI string of a CLSID into a CLSID.
* *
* PARAMS * PARAMS
* idstr [I] String representing a CLSID in registry format * idstr [I] String representing a CLSID in registry format
......
...@@ -539,7 +539,7 @@ LPWSTR WINAPI StrNCatW(LPWSTR lpszStr, LPCWSTR lpszCat, INT cchMax) ...@@ -539,7 +539,7 @@ LPWSTR WINAPI StrNCatW(LPWSTR lpszStr, LPCWSTR lpszCat, INT cchMax)
/************************************************************************* /*************************************************************************
* _SHStrDupAA [INTERNAL] * _SHStrDupAA [INTERNAL]
* *
* Duplicates a ASCII string to ASCII. The destination buffer is allocated. * Duplicates a ANSI string to ANSI. The destination buffer is allocated.
*/ */
static HRESULT _SHStrDupAA(LPCSTR src, LPSTR * dest) static HRESULT _SHStrDupAA(LPCSTR src, LPSTR * dest)
{ {
...@@ -606,7 +606,7 @@ HRESULT WINAPI SHStrDupA(LPCSTR lpszStr, LPWSTR * lppszDest) ...@@ -606,7 +606,7 @@ HRESULT WINAPI SHStrDupA(LPCSTR lpszStr, LPWSTR * lppszDest)
/************************************************************************* /*************************************************************************
* _SHStrDupAW [INTERNAL] * _SHStrDupAW [INTERNAL]
* *
* Duplicates a UNICODE to a ASCII string. The destination buffer is allocated. * Duplicates a UNICODE to a ANSI string. The destination buffer is allocated.
*/ */
static HRESULT _SHStrDupAW(LPCWSTR src, LPSTR * dest) static HRESULT _SHStrDupAW(LPCWSTR src, LPSTR * dest)
{ {
...@@ -942,7 +942,7 @@ LPSTR WINAPI StrFormatByteSize64A(LONGLONG llBytes, LPSTR lpszDest, UINT cchMax) ...@@ -942,7 +942,7 @@ LPSTR WINAPI StrFormatByteSize64A(LONGLONG llBytes, LPSTR lpszDest, UINT cchMax)
* lpszDest. * lpszDest.
* *
* NOTES * NOTES
* The Ascii and Unicode versions of this function accept a different * The ANSI and Unicode versions of this function accept a different
* integer type for dwBytes. See StrFormatByteSize64A(). * integer type for dwBytes. See StrFormatByteSize64A().
*/ */
LPSTR WINAPI StrFormatByteSizeA(DWORD dwBytes, LPSTR lpszDest, UINT cchMax) LPSTR WINAPI StrFormatByteSizeA(DWORD dwBytes, LPSTR lpszDest, UINT cchMax)
...@@ -1020,11 +1020,11 @@ WCHAR WINAPI SHStripMneumonicW(LPCWSTR lpszStr) ...@@ -1020,11 +1020,11 @@ WCHAR WINAPI SHStripMneumonicW(LPCWSTR lpszStr)
/************************************************************************* /*************************************************************************
* @ [SHLWAPI.216] * @ [SHLWAPI.216]
* *
* Convert an Ascii string to Unicode. * Convert an ANSI string to Unicode.
* *
* PARAMS * PARAMS
* dwCp [I] Code page for the conversion * dwCp [I] Code page for the conversion
* lpSrcStr [I] Source Ascii string to convert * lpSrcStr [I] Source ANSI string to convert
* lpDstStr [O] Destination for converted Unicode string * lpDstStr [O] Destination for converted Unicode string
* iLen [I] Length of lpDstStr * iLen [I] Length of lpDstStr
* *
...@@ -1043,10 +1043,10 @@ DWORD WINAPI SHAnsiToUnicodeCP(DWORD dwCp, LPCSTR lpSrcStr, LPWSTR lpDstStr, int ...@@ -1043,10 +1043,10 @@ DWORD WINAPI SHAnsiToUnicodeCP(DWORD dwCp, LPCSTR lpSrcStr, LPWSTR lpDstStr, int
/************************************************************************* /*************************************************************************
* @ [SHLWAPI.215] * @ [SHLWAPI.215]
* *
* Convert an Ascii string to Unicode. * Convert an ANSI string to Unicode.
* *
* PARAMS * PARAMS
* lpSrcStr [I] Source Ascii string to convert * lpSrcStr [I] Source ANSI string to convert
* lpDstStr [O] Destination for converted Unicode string * lpDstStr [O] Destination for converted Unicode string
* iLen [I] Length of lpDstStr * iLen [I] Length of lpDstStr
* *
...@@ -1064,12 +1064,12 @@ DWORD WINAPI SHAnsiToUnicode(LPCSTR lpSrcStr, LPWSTR lpDstStr, int iLen) ...@@ -1064,12 +1064,12 @@ DWORD WINAPI SHAnsiToUnicode(LPCSTR lpSrcStr, LPWSTR lpDstStr, int iLen)
/************************************************************************* /*************************************************************************
* @ [SHLWAPI.218] * @ [SHLWAPI.218]
* *
* Convert a Unicode string to Ascii. * Convert a Unicode string to ANSI.
* *
* PARAMS * PARAMS
* CodePage [I] Code page to use for the conversion * CodePage [I] Code page to use for the conversion
* lpSrcStr [I] Source Unicode string to convert * lpSrcStr [I] Source Unicode string to convert
* lpDstStr [O] Destination for converted Ascii string * lpDstStr [O] Destination for converted ANSI string
* dstlen [I] Length of buffer at lpDstStr * dstlen [I] Length of buffer at lpDstStr
* *
* RETURNS * RETURNS
...@@ -1167,11 +1167,11 @@ DWORD WINAPI SHUnicodeToAnsiCP(UINT CodePage, LPCWSTR lpSrcStr, LPSTR lpDstStr, ...@@ -1167,11 +1167,11 @@ DWORD WINAPI SHUnicodeToAnsiCP(UINT CodePage, LPCWSTR lpSrcStr, LPSTR lpDstStr,
/************************************************************************* /*************************************************************************
* @ [SHLWAPI.217] * @ [SHLWAPI.217]
* *
* Convert a Unicode string to Ascii. * Convert a Unicode string to ANSI.
* *
* PARAMS * PARAMS
* lpSrcStr [I] Source Unicode string to convert * lpSrcStr [I] Source Unicode string to convert
* lpDstStr [O] Destination for converted Ascii string * lpDstStr [O] Destination for converted ANSI string
* iLen [O] Length of lpDstStr in characters * iLen [O] Length of lpDstStr in characters
* *
* RETURNS * RETURNS
...@@ -1188,15 +1188,15 @@ INT WINAPI SHUnicodeToAnsi(LPCWSTR lpSrcStr, LPSTR lpDstStr, INT iLen) ...@@ -1188,15 +1188,15 @@ INT WINAPI SHUnicodeToAnsi(LPCWSTR lpSrcStr, LPSTR lpDstStr, INT iLen)
/************************************************************************* /*************************************************************************
* @ [SHLWAPI.364] * @ [SHLWAPI.364]
* *
* Determine if an Ascii string converts to Unicode and back identically. * Determine if an ANSI string converts to Unicode and back identically.
* *
* PARAMS * PARAMS
* lpSrcStr [I] Source Unicode string to convert * lpSrcStr [I] Source Unicode string to convert
* lpDst [O] Destination for resulting Ascii string * lpDst [O] Destination for resulting ANSI string
* iLen [I] Length of lpDst in characters * iLen [I] Length of lpDst in characters
* *
* RETURNS * RETURNS
* TRUE, since Ascii strings always convert identically. * TRUE, since ANSI strings always convert identically.
*/ */
BOOL WINAPI DoesStringRoundTripA(LPCSTR lpSrcStr, LPSTR lpDst, INT iLen) BOOL WINAPI DoesStringRoundTripA(LPCSTR lpSrcStr, LPSTR lpDst, INT iLen)
{ {
...@@ -1207,15 +1207,15 @@ BOOL WINAPI DoesStringRoundTripA(LPCSTR lpSrcStr, LPSTR lpDst, INT iLen) ...@@ -1207,15 +1207,15 @@ BOOL WINAPI DoesStringRoundTripA(LPCSTR lpSrcStr, LPSTR lpDst, INT iLen)
/************************************************************************* /*************************************************************************
* @ [SHLWAPI.365] * @ [SHLWAPI.365]
* *
* Determine if a Unicode string converts to Ascii and back identically. * Determine if a Unicode string converts to ANSI and back identically.
* *
* PARAMS * PARAMS
* lpSrcStr [I] Source Unicode string to convert * lpSrcStr [I] Source Unicode string to convert
* lpDst [O] Destination for resulting Ascii string * lpDst [O] Destination for resulting ANSI string
* iLen [I] Length of lpDst in characters * iLen [I] Length of lpDst in characters
* *
* RETURNS * RETURNS
* TRUE, if lpSrcStr converts to Ascii and back identically, * TRUE, if lpSrcStr converts to ANSI and back identically,
* FALSE otherwise. * FALSE otherwise.
*/ */
BOOL WINAPI DoesStringRoundTripW(LPCWSTR lpSrcStr, LPSTR lpDst, INT iLen) BOOL WINAPI DoesStringRoundTripW(LPCWSTR lpSrcStr, LPSTR lpDst, INT iLen)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment