objbase.h: CLSIDFromString: Add constness to the parameters declaration in accordance with MSDN.

This commit is contained in:
Mikhail Maroukhine 2010-03-26 23:59:50 +06:00 committed by Alexandre Julliard
parent 503563c950
commit f930c87fd6
11 changed files with 14 additions and 14 deletions

View File

@ -950,7 +950,7 @@ HRESULT WINAPI AtlAxCreateControlEx(LPCOLESTR lpszName, HWND hWnd,
TRACE("(%s %p %p %p %p %p %p)\n", debugstr_w(lpszName), hWnd, pStream, TRACE("(%s %p %p %p %p %p %p)\n", debugstr_w(lpszName), hWnd, pStream,
ppUnkContainer, ppUnkControl, iidSink, punkSink); ppUnkContainer, ppUnkControl, iidSink, punkSink);
hRes = CLSIDFromString( (LPOLESTR) lpszName, &controlId ); hRes = CLSIDFromString( lpszName, &controlId );
if ( FAILED(hRes) ) if ( FAILED(hRes) )
hRes = CLSIDFromProgID( lpszName, &controlId ); hRes = CLSIDFromProgID( lpszName, &controlId );
if ( SUCCEEDED( hRes ) ) if ( SUCCEEDED( hRes ) )

View File

@ -3098,7 +3098,7 @@ static UINT ITERATE_RegisterTypeLibraries(MSIRECORD *row, LPVOID param)
{ {
LPCWSTR guid; LPCWSTR guid;
guid = MSI_RecordGetString(row,1); guid = MSI_RecordGetString(row,1);
CLSIDFromString((LPWSTR)guid, &tl_struct.clsid); CLSIDFromString((LPCWSTR)guid, &tl_struct.clsid);
tl_struct.source = strdupW( file->TargetPath ); tl_struct.source = strdupW( file->TargetPath );
tl_struct.path = NULL; tl_struct.path = NULL;
@ -3199,7 +3199,7 @@ static UINT ITERATE_UnregisterTypeLibraries( MSIRECORD *row, LPVOID param )
ui_actiondata( package, szUnregisterTypeLibraries, row ); ui_actiondata( package, szUnregisterTypeLibraries, row );
guid = MSI_RecordGetString( row, 1 ); guid = MSI_RecordGetString( row, 1 );
CLSIDFromString( (LPWSTR)guid, &libid ); CLSIDFromString( (LPCWSTR)guid, &libid );
version = MSI_RecordGetInteger( row, 4 ); version = MSI_RecordGetInteger( row, 4 );
language = MSI_RecordGetInteger( row, 2 ); language = MSI_RecordGetInteger( row, 2 );

View File

@ -286,7 +286,7 @@ BOOL squash_guid(LPCWSTR in, LPWSTR out)
out[0] = 0; out[0] = 0;
if (FAILED(CLSIDFromString((LPOLESTR)in, &guid))) if (FAILED(CLSIDFromString((LPCOLESTR)in, &guid)))
return FALSE; return FALSE;
for(i=0; i<8; i++) for(i=0; i<8; i++)

View File

@ -467,7 +467,7 @@ static BOOL squash_guid(LPCWSTR in, LPWSTR out)
DWORD i,n=1; DWORD i,n=1;
GUID guid; GUID guid;
if (FAILED(CLSIDFromString((LPOLESTR)in, &guid))) if (FAILED(CLSIDFromString((LPCOLESTR)in, &guid)))
return FALSE; return FALSE;
for(i=0; i<8; i++) for(i=0; i<8; i++)

View File

@ -153,7 +153,7 @@ static BOOL squash_guid(LPCWSTR in, LPWSTR out)
DWORD i,n=1; DWORD i,n=1;
GUID guid; GUID guid;
if (FAILED(CLSIDFromString((LPOLESTR)in, &guid))) if (FAILED(CLSIDFromString((LPCOLESTR)in, &guid)))
return FALSE; return FALSE;
for(i=0; i<8; i++) for(i=0; i<8; i++)

View File

@ -81,7 +81,7 @@ static BOOL squash_guid(LPCWSTR in, LPWSTR out)
DWORD i,n=1; DWORD i,n=1;
GUID guid; GUID guid;
if (FAILED(CLSIDFromString((LPOLESTR)in, &guid))) if (FAILED(CLSIDFromString((LPCOLESTR)in, &guid)))
return FALSE; return FALSE;
for(i=0; i<8; i++) for(i=0; i<8; i++)

View File

@ -1506,7 +1506,7 @@ HRESULT WINAPI CoCreateGuid(GUID *pguid)
* SEE ALSO * SEE ALSO
* StringFromCLSID * StringFromCLSID
*/ */
static HRESULT __CLSIDFromString(LPCWSTR s, CLSID *id) static HRESULT __CLSIDFromString(LPCWSTR s, LPCLSID id)
{ {
int i; int i;
BYTE table[256]; BYTE table[256];
@ -1566,7 +1566,7 @@ static HRESULT __CLSIDFromString(LPCWSTR s, CLSID *id)
/*****************************************************************************/ /*****************************************************************************/
HRESULT WINAPI CLSIDFromString(LPOLESTR idstr, CLSID *id ) HRESULT WINAPI CLSIDFromString(LPCOLESTR idstr, LPCLSID id )
{ {
HRESULT ret; HRESULT ret;

View File

@ -252,7 +252,7 @@ DWORD WINAPI SHCLSIDFromStringA (LPCSTR clsid, CLSID *id)
DWORD WINAPI SHCLSIDFromStringW (LPCWSTR clsid, CLSID *id) DWORD WINAPI SHCLSIDFromStringW (LPCWSTR clsid, CLSID *id)
{ {
TRACE("(%p(%s) %p)\n", clsid, debugstr_w(clsid), id); TRACE("(%p(%s) %p)\n", clsid, debugstr_w(clsid), id);
return CLSIDFromString((LPWSTR)clsid, id); return CLSIDFromString(clsid, id);
} }
DWORD WINAPI SHCLSIDFromStringAW (LPCVOID clsid, CLSID *id) DWORD WINAPI SHCLSIDFromStringAW (LPCVOID clsid, CLSID *id)
{ {

View File

@ -2818,7 +2818,7 @@ BOOL WINAPI GUIDFromStringA(LPCSTR idstr, CLSID *id)
*/ */
BOOL WINAPI GUIDFromStringW(LPCWSTR idstr, CLSID *id) BOOL WINAPI GUIDFromStringW(LPCWSTR idstr, CLSID *id)
{ {
return SUCCEEDED(CLSIDFromString((LPOLESTR)idstr, id)); return SUCCEEDED(CLSIDFromString((LPCOLESTR)idstr, id));
} }
/************************************************************************* /*************************************************************************
@ -3903,7 +3903,7 @@ DWORD WINAPI SHSendMessageBroadcastW(UINT uMsg, WPARAM wParam, LPARAM lParam)
*/ */
HRESULT WINAPI CLSIDFromStringWrap(LPCWSTR idstr, CLSID *id) HRESULT WINAPI CLSIDFromStringWrap(LPCWSTR idstr, CLSID *id)
{ {
return CLSIDFromString((LPOLESTR)idstr, id); return CLSIDFromString((LPCOLESTR)idstr, id);
} }
/************************************************************************* /*************************************************************************

View File

@ -1388,7 +1388,7 @@ static HRESULT WINAPI statusclb_OnProgress(IBindStatusCallbackEx *iface, ULONG u
CHECK_EXPECT(Obj_OnProgress_CLASSIDAVAILABLE); CHECK_EXPECT(Obj_OnProgress_CLASSIDAVAILABLE);
else else
todo_wine CHECK_EXPECT(Obj_OnProgress_CLASSIDAVAILABLE); todo_wine CHECK_EXPECT(Obj_OnProgress_CLASSIDAVAILABLE);
hr = CLSIDFromString((LPOLESTR)szStatusText, &clsid); hr = CLSIDFromString((LPCOLESTR)szStatusText, &clsid);
ok(hr == S_OK, "CLSIDFromString failed with error 0x%08x\n", hr); ok(hr == S_OK, "CLSIDFromString failed with error 0x%08x\n", hr);
ok(IsEqualCLSID(&clsid, &CLSID_HTMLDocument), ok(IsEqualCLSID(&clsid, &CLSID_HTMLDocument),
"Expected clsid to be CLSID_HTMLDocument instead of %s\n", debugstr_guid(&clsid)); "Expected clsid to be CLSID_HTMLDocument instead of %s\n", debugstr_guid(&clsid));

View File

@ -431,7 +431,7 @@ HRESULT WINAPI CoWaitForMultipleHandles(DWORD dwFlags,DWORD dwTimeout,ULONG cHan
* GUID API * GUID API
*/ */
HRESULT WINAPI StringFromCLSID(REFCLSID id, LPOLESTR*); HRESULT WINAPI StringFromCLSID(REFCLSID id, LPOLESTR*);
HRESULT WINAPI CLSIDFromString(LPOLESTR, CLSID *); HRESULT WINAPI CLSIDFromString(LPCOLESTR, LPCLSID);
HRESULT WINAPI CLSIDFromProgID(LPCOLESTR progid, LPCLSID riid); HRESULT WINAPI CLSIDFromProgID(LPCOLESTR progid, LPCLSID riid);
HRESULT WINAPI ProgIDFromCLSID(REFCLSID clsid, LPOLESTR *lplpszProgID); HRESULT WINAPI ProgIDFromCLSID(REFCLSID clsid, LPOLESTR *lplpszProgID);