Spelling/error messages fixes.
This commit is contained in:
parent
9c54cfa56a
commit
01c8ec3a9c
|
@ -184,7 +184,7 @@ DataFormat *create_DataFormat(DIDATAFORMAT *wine_format, LPCDIDATAFORMAT asked_f
|
||||||
|
|
||||||
dt = (DataTransform *) HeapAlloc(GetProcessHeap(), 0, asked_format->dwNumObjs * sizeof(DataTransform));
|
dt = (DataTransform *) HeapAlloc(GetProcessHeap(), 0, asked_format->dwNumObjs * sizeof(DataTransform));
|
||||||
|
|
||||||
TRACE("Creating DataTransorm : \n");
|
TRACE("Creating DataTransform : \n");
|
||||||
|
|
||||||
for (i = 0; i < wine_format->dwNumObjs; i++) {
|
for (i = 0; i < wine_format->dwNumObjs; i++) {
|
||||||
offset[i] = -1;
|
offset[i] = -1;
|
||||||
|
|
|
@ -183,7 +183,7 @@ HANDLE WINAPI IcmpCreateFile(VOID)
|
||||||
|
|
||||||
ISOCK_SOCKET sid=ISOCK_socket(AF_INET,SOCK_RAW,IPPROTO_ICMP);
|
ISOCK_SOCKET sid=ISOCK_socket(AF_INET,SOCK_RAW,IPPROTO_ICMP);
|
||||||
if (!ISOCK_ISVALID(sid)) {
|
if (!ISOCK_ISVALID(sid)) {
|
||||||
MESSAGE("WARNING: Trying to use ICMP will fail unless running as root\n");
|
MESSAGE("WARNING: Trying to use ICMP (network ping) will fail unless running as root\n");
|
||||||
SetLastError(ERROR_ACCESS_DENIED);
|
SetLastError(ERROR_ACCESS_DENIED);
|
||||||
return INVALID_HANDLE_VALUE;
|
return INVALID_HANDLE_VALUE;
|
||||||
}
|
}
|
||||||
|
|
|
@ -564,7 +564,7 @@ static LRESULT WINAPI RICHED32_WindowProc(HWND hwnd, UINT uMsg, WPARAM wParam,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
FIXME("Unknown message %d\n", uMsg);
|
FIXME("Unknown message 0x%04x\n", uMsg);
|
||||||
return DefWindowProcA( hwnd,uMsg,wParam,lParam);
|
return DefWindowProcA( hwnd,uMsg,wParam,lParam);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1118,7 +1118,7 @@ BOOL WINAPI CreateProcessA( LPCSTR lpApplicationName, LPSTR lpCommandLine,
|
||||||
if (hFile == INVALID_HANDLE_VALUE) goto done;
|
if (hFile == INVALID_HANDLE_VALUE) goto done;
|
||||||
|
|
||||||
if ( !MODULE_GetBinaryType( hFile, name, &type ) )
|
if ( !MODULE_GetBinaryType( hFile, name, &type ) )
|
||||||
{
|
{ /* unknown file, try as unix executable */
|
||||||
CloseHandle( hFile );
|
CloseHandle( hFile );
|
||||||
retv = PROCESS_Create( 0, name, tidy_cmdline, lpEnvironment,
|
retv = PROCESS_Create( 0, name, tidy_cmdline, lpEnvironment,
|
||||||
lpProcessAttributes, lpThreadAttributes,
|
lpProcessAttributes, lpThreadAttributes,
|
||||||
|
@ -1324,7 +1324,7 @@ HMODULE WINAPI LoadLibraryExA(LPCSTR libname, HANDLE hfile, DWORD flags)
|
||||||
{
|
{
|
||||||
if ( !MODULE_DllProcessAttach( wm, NULL ) )
|
if ( !MODULE_DllProcessAttach( wm, NULL ) )
|
||||||
{
|
{
|
||||||
WARN_(module)("Attach failed for module '%s', \n", libname);
|
WARN_(module)("Attach failed for module '%s'.\n", libname);
|
||||||
MODULE_FreeLibrary(wm);
|
MODULE_FreeLibrary(wm);
|
||||||
SetLastError(ERROR_DLL_INIT_FAILED);
|
SetLastError(ERROR_DLL_INIT_FAILED);
|
||||||
wm = NULL;
|
wm = NULL;
|
||||||
|
@ -1374,7 +1374,7 @@ static LPCSTR allocate_lib_dir(LPCSTR libname)
|
||||||
* The HFILE parameter is not used and marked reserved in the SDK. I can
|
* The HFILE parameter is not used and marked reserved in the SDK. I can
|
||||||
* only guess that it should force a file to be mapped, but I rather
|
* only guess that it should force a file to be mapped, but I rather
|
||||||
* ignore the parameter because it would be extremely difficult to
|
* ignore the parameter because it would be extremely difficult to
|
||||||
* integrate this with different types of module represenations.
|
* integrate this with different types of module representations.
|
||||||
*
|
*
|
||||||
* libdir is used to support LOAD_WITH_ALTERED_SEARCH_PATH during the recursion
|
* libdir is used to support LOAD_WITH_ALTERED_SEARCH_PATH during the recursion
|
||||||
* on this function. When first called from LoadLibraryExA it will be
|
* on this function. When first called from LoadLibraryExA it will be
|
||||||
|
@ -1424,12 +1424,12 @@ WINE_MODREF *MODULE_LoadLibraryExA( LPCSTR libname, HFILE hfile, DWORD flags )
|
||||||
if ( ! GetSystemDirectoryA ( filename, MAX_PATH ) )
|
if ( ! GetSystemDirectoryA ( filename, MAX_PATH ) )
|
||||||
goto error;
|
goto error;
|
||||||
|
|
||||||
/* if the library name contains a path and can not be found, return an error.
|
/* if the library name contains a path and can not be found,
|
||||||
exception: if the path is the system directory, proceed, so that modules,
|
* return an error.
|
||||||
which are not PE-modules can be loaded
|
* exception: if the path is the system directory, proceed,
|
||||||
|
* so that modules which are not PE modules can be loaded.
|
||||||
if the library name does not contain a path and can not be found, assume the
|
* If the library name does not contain a path and can not
|
||||||
system directory is meant */
|
* be found, assume the system directory is meant */
|
||||||
|
|
||||||
if ( ! FILE_strncasecmp ( filename, libname, strlen ( filename ) ))
|
if ( ! FILE_strncasecmp ( filename, libname, strlen ( filename ) ))
|
||||||
strcpy ( filename, libname );
|
strcpy ( filename, libname );
|
||||||
|
@ -1440,7 +1440,7 @@ WINE_MODREF *MODULE_LoadLibraryExA( LPCSTR libname, HFILE hfile, DWORD flags )
|
||||||
strcat ( filename, libname );
|
strcat ( filename, libname );
|
||||||
}
|
}
|
||||||
|
|
||||||
/* if the filename doesn't have an extension append .DLL */
|
/* if the filename doesn't have an extension, append .DLL */
|
||||||
if (!(p = strrchr( filename, '.')) || strchr( p, '/' ) || strchr( p, '\\'))
|
if (!(p = strrchr( filename, '.')) || strchr( p, '/' ) || strchr( p, '\\'))
|
||||||
strcat( filename, ".dll" );
|
strcat( filename, ".dll" );
|
||||||
}
|
}
|
||||||
|
@ -1542,7 +1542,11 @@ WINE_MODREF *MODULE_LoadLibraryExA( LPCSTR libname, HFILE hfile, DWORD flags )
|
||||||
}
|
}
|
||||||
|
|
||||||
if(GetLastError() != ERROR_FILE_NOT_FOUND)
|
if(GetLastError() != ERROR_FILE_NOT_FOUND)
|
||||||
break;
|
{
|
||||||
|
ERR("Loading of %s DLL %s failed (error %ld), check this file.\n",
|
||||||
|
filetype, filename, GetLastError());
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
error:
|
error:
|
||||||
|
@ -1552,7 +1556,7 @@ WINE_MODREF *MODULE_LoadLibraryExA( LPCSTR libname, HFILE hfile, DWORD flags )
|
||||||
libdir = NULL;
|
libdir = NULL;
|
||||||
}
|
}
|
||||||
RtlLeaveCriticalSection( &loader_section );
|
RtlLeaveCriticalSection( &loader_section );
|
||||||
WARN("Failed to load module '%s'; error=0x%08lx\n", filename, GetLastError());
|
WARN("Failed to load module '%s'; error=%ld\n", filename, GetLastError());
|
||||||
HeapFree ( GetProcessHeap(), 0, filename );
|
HeapFree ( GetProcessHeap(), 0, filename );
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
|
@ -528,7 +528,7 @@ HMODULE PE_LoadImage( HANDLE hFile, LPCSTR filename, DWORD flags )
|
||||||
/**********************************************************************
|
/**********************************************************************
|
||||||
* PE_CreateModule
|
* PE_CreateModule
|
||||||
*
|
*
|
||||||
* Create WINE_MODREF structure for loaded HMODULE32, link it into
|
* Create WINE_MODREF structure for loaded HMODULE, link it into
|
||||||
* process modref_list, and fixup all imports.
|
* process modref_list, and fixup all imports.
|
||||||
*
|
*
|
||||||
* Note: hModule must point to a correctly allocated PE image,
|
* Note: hModule must point to a correctly allocated PE image,
|
||||||
|
@ -663,7 +663,7 @@ WINE_MODREF *PE_CreateModule( HMODULE hModule, LPCSTR filename, DWORD flags,
|
||||||
/* FIXME: there are several more dangling references
|
/* FIXME: there are several more dangling references
|
||||||
* left. Including dlls loaded by this dll before the
|
* left. Including dlls loaded by this dll before the
|
||||||
* failed one. Unrolling is rather difficult with the
|
* failed one. Unrolling is rather difficult with the
|
||||||
* current structure and we can leave it them lying
|
* current structure and we can leave them lying
|
||||||
* around with no problems, so we don't care.
|
* around with no problems, so we don't care.
|
||||||
* As these might reference our wm, we don't free it.
|
* As these might reference our wm, we don't free it.
|
||||||
*/
|
*/
|
||||||
|
@ -739,7 +739,7 @@ WINE_MODREF *PE_LoadLibraryExA (LPCSTR name, DWORD flags)
|
||||||
|
|
||||||
/* Called if the library is loaded or freed.
|
/* Called if the library is loaded or freed.
|
||||||
* NOTE: if a thread attaches a DLL, the current thread will only do
|
* NOTE: if a thread attaches a DLL, the current thread will only do
|
||||||
* DLL_PROCESS_ATTACH. Only new created threads do DLL_THREAD_ATTACH
|
* DLL_PROCESS_ATTACH. Only newly created threads do DLL_THREAD_ATTACH
|
||||||
* (SDK)
|
* (SDK)
|
||||||
*/
|
*/
|
||||||
typedef DWORD (CALLBACK *DLLENTRYPROC)(HMODULE,DWORD,LPVOID);
|
typedef DWORD (CALLBACK *DLLENTRYPROC)(HMODULE,DWORD,LPVOID);
|
||||||
|
|
Loading…
Reference in New Issue