Converted to the new debug interface, using script written by Patrik
Stridvall.
This commit is contained in:
parent
2d0bb2a78c
commit
359f497e97
|
@ -40,7 +40,7 @@
|
|||
#include "selectors.h"
|
||||
#include "sig_context.h"
|
||||
#include "async.h"
|
||||
#include "debug.h"
|
||||
#include "debugtools.h"
|
||||
|
||||
typedef struct _async_fd {
|
||||
int unixfd;
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
#include "thread.h"
|
||||
#include "heap.h"
|
||||
#include "server.h"
|
||||
#include "debug.h"
|
||||
#include "debugtools.h"
|
||||
|
||||
|
||||
/****************************************************************************
|
||||
|
|
122
files/file.c
122
files/file.c
|
@ -41,7 +41,7 @@
|
|||
#include "task.h"
|
||||
#include "async.h"
|
||||
#include "wincon.h"
|
||||
#include "debug.h"
|
||||
#include "debugtools.h"
|
||||
|
||||
#include "server.h"
|
||||
|
||||
|
@ -210,10 +210,10 @@ static BOOL FILE_ShareDeny( int mode, int oldmode)
|
|||
goto fail_error05;
|
||||
}
|
||||
default:
|
||||
ERR(file,"unknown mode\n");
|
||||
ERR("unknown mode\n");
|
||||
}
|
||||
ERR(file,"shouldn't happen\n");
|
||||
ERR(file,"Please report to bon@elektron.ikp.physik.tu-darmstadt.de\n");
|
||||
ERR("shouldn't happen\n");
|
||||
ERR("Please report to bon@elektron.ikp.physik.tu-darmstadt.de\n");
|
||||
return TRUE;
|
||||
|
||||
test_ro_int24:
|
||||
|
@ -221,7 +221,7 @@ test_ro_int24:
|
|||
return FALSE;
|
||||
/* Fall through */
|
||||
fail_int24:
|
||||
FIXME(file,"generate INT24 missing\n");
|
||||
FIXME("generate INT24 missing\n");
|
||||
/* Is this the right error? */
|
||||
SetLastError( ERROR_ACCESS_DENIED );
|
||||
return TRUE;
|
||||
|
@ -231,7 +231,7 @@ test_ro_err05:
|
|||
return FALSE;
|
||||
/* fall through */
|
||||
fail_error05:
|
||||
TRACE(file,"Access Denied, oldmode 0x%02x mode 0x%02x\n",oldmode,mode);
|
||||
TRACE("Access Denied, oldmode 0x%02x mode 0x%02x\n",oldmode,mode);
|
||||
SetLastError( ERROR_ACCESS_DENIED );
|
||||
return TRUE;
|
||||
}
|
||||
|
@ -247,7 +247,7 @@ void FILE_SetDosError(void)
|
|||
{
|
||||
int save_errno = errno; /* errno gets overwritten by printf */
|
||||
|
||||
TRACE(file, "errno = %d %s\n", errno, strerror(errno));
|
||||
TRACE("errno = %d %s\n", errno, strerror(errno));
|
||||
switch (save_errno)
|
||||
{
|
||||
case EAGAIN:
|
||||
|
@ -408,7 +408,7 @@ HFILE WINAPI CreateFileA( LPCSTR filename, DWORD access, DWORD sharing,
|
|||
SetLastError( ERROR_INVALID_PARAMETER );
|
||||
return HFILE_ERROR;
|
||||
}
|
||||
TRACE(file,"%s %s%s%s%s%s%s%s\n",filename,
|
||||
TRACE("%s %s%s%s%s%s%s%s\n",filename,
|
||||
((access & GENERIC_READ)==GENERIC_READ)?"GENERIC_READ ":"",
|
||||
((access & GENERIC_WRITE)==GENERIC_WRITE)?"GENERIC_WRITE ":"",
|
||||
(!access)?"QUERY_ACCESS ":"",
|
||||
|
@ -427,7 +427,7 @@ HFILE WINAPI CreateFileA( LPCSTR filename, DWORD access, DWORD sharing,
|
|||
filename += 4;
|
||||
if (!strncmp(filename, "UNC\\", 4))
|
||||
{
|
||||
FIXME( file, "UNC name (%s) not supported.\n", filename );
|
||||
FIXME("UNC name (%s) not supported.\n", filename );
|
||||
SetLastError( ERROR_PATH_NOT_FOUND );
|
||||
return HFILE_ERROR;
|
||||
}
|
||||
|
@ -439,7 +439,7 @@ HFILE WINAPI CreateFileA( LPCSTR filename, DWORD access, DWORD sharing,
|
|||
/* If the name still starts with '\\', it's a UNC name. */
|
||||
if (!strncmp(filename, "\\\\", 2))
|
||||
{
|
||||
FIXME( file, "UNC name (%s) not supported.\n", filename );
|
||||
FIXME("UNC name (%s) not supported.\n", filename );
|
||||
SetLastError( ERROR_PATH_NOT_FOUND );
|
||||
return HFILE_ERROR;
|
||||
}
|
||||
|
@ -452,13 +452,13 @@ HFILE WINAPI CreateFileA( LPCSTR filename, DWORD access, DWORD sharing,
|
|||
{
|
||||
HFILE ret;
|
||||
|
||||
TRACE(file, "opening device '%s'\n", filename );
|
||||
TRACE("opening device '%s'\n", filename );
|
||||
|
||||
if (HFILE_ERROR!=(ret=DOSFS_OpenDevice( filename, access )))
|
||||
return ret;
|
||||
|
||||
/* Do not silence this please. It is a critical error. -MM */
|
||||
ERR(file, "Couldn't open device '%s'!\n",filename);
|
||||
ERR("Couldn't open device '%s'!\n",filename);
|
||||
SetLastError( ERROR_FILE_NOT_FOUND );
|
||||
return HFILE_ERROR;
|
||||
}
|
||||
|
@ -659,7 +659,7 @@ UINT16 WINAPI GetTempFileName16( BYTE drive, LPCSTR prefix, UINT16 unique,
|
|||
!DRIVE_IsValid( toupper(drive & ~TF_FORCEDRIVE) - 'A' ))
|
||||
{
|
||||
drive &= ~TF_FORCEDRIVE;
|
||||
WARN(file, "invalid drive %d specified\n", drive );
|
||||
WARN("invalid drive %d specified\n", drive );
|
||||
}
|
||||
|
||||
if (drive & TF_FORCEDRIVE)
|
||||
|
@ -708,7 +708,7 @@ UINT WINAPI GetTempFileNameA( LPCSTR path, LPCSTR prefix, UINT unique,
|
|||
CREATE_NEW, FILE_ATTRIBUTE_NORMAL, -1 );
|
||||
if (handle != INVALID_HANDLE_VALUE)
|
||||
{ /* We created it */
|
||||
TRACE(file, "created %s\n",
|
||||
TRACE("created %s\n",
|
||||
buffer);
|
||||
CloseHandle( handle );
|
||||
break;
|
||||
|
@ -727,10 +727,10 @@ UINT WINAPI GetTempFileNameA( LPCSTR path, LPCSTR prefix, UINT unique,
|
|||
/* Check if we have write access in the directory */
|
||||
if ((p = strrchr( full_name.long_name, '/' ))) *p = '\0';
|
||||
if (access( full_name.long_name, W_OK ) == -1)
|
||||
WARN(file, "returns '%s', which doesn't seem to be writeable.\n",
|
||||
WARN("returns '%s', which doesn't seem to be writeable.\n",
|
||||
buffer);
|
||||
}
|
||||
TRACE(file, "returning %s\n", buffer );
|
||||
TRACE("returning %s\n", buffer );
|
||||
return unique ? unique : num;
|
||||
}
|
||||
|
||||
|
@ -773,7 +773,7 @@ static HFILE FILE_DoOpenFile( LPCSTR name, OFSTRUCT *ofs, UINT mode,
|
|||
|
||||
if (!ofs) return HFILE_ERROR;
|
||||
|
||||
TRACE(file,"%s %s %s %s%s%s%s%s%s%s%s%s\n",name,
|
||||
TRACE("%s %s %s %s%s%s%s%s%s%s%s%s\n",name,
|
||||
((mode & 0x3 )==OF_READ)?"OF_READ":
|
||||
((mode & 0x3 )==OF_WRITE)?"OF_WRITE":
|
||||
((mode & 0x3 )==OF_READWRITE)?"OF_READWRITE":"unknown",
|
||||
|
@ -799,11 +799,11 @@ static HFILE FILE_DoOpenFile( LPCSTR name, OFSTRUCT *ofs, UINT mode,
|
|||
if (mode & OF_REOPEN) name = ofs->szPathName;
|
||||
|
||||
if (!name) {
|
||||
ERR(file, "called with `name' set to NULL ! Please debug.\n");
|
||||
ERR("called with `name' set to NULL ! Please debug.\n");
|
||||
return HFILE_ERROR;
|
||||
}
|
||||
|
||||
TRACE(file, "%s %04x\n", name, mode );
|
||||
TRACE("%s %04x\n", name, mode );
|
||||
|
||||
/* the watcom 10.6 IDE relies on a valid path returned in ofs->szPathName
|
||||
Are there any cases where getting the path here is wrong?
|
||||
|
@ -818,7 +818,7 @@ static HFILE FILE_DoOpenFile( LPCSTR name, OFSTRUCT *ofs, UINT mode,
|
|||
{
|
||||
ofs->fFixedDisk = (GetDriveType16( ofs->szPathName[0]-'A' )
|
||||
!= DRIVE_REMOVABLE);
|
||||
TRACE(file, "(%s): OF_PARSE, res = '%s'\n",
|
||||
TRACE("(%s): OF_PARSE, res = '%s'\n",
|
||||
name, ofs->szPathName );
|
||||
return 0;
|
||||
}
|
||||
|
@ -853,7 +853,7 @@ static HFILE FILE_DoOpenFile( LPCSTR name, OFSTRUCT *ofs, UINT mode,
|
|||
if (!DIR_SearchPath( NULL, name, NULL, &full_name, win32 )) goto not_found;
|
||||
|
||||
found:
|
||||
TRACE(file, "found %s = %s\n",
|
||||
TRACE("found %s = %s\n",
|
||||
full_name.long_name, full_name.short_name );
|
||||
lstrcpynA( ofs->szPathName, full_name.short_name,
|
||||
sizeof(ofs->szPathName) );
|
||||
|
@ -875,7 +875,7 @@ found:
|
|||
last = full_name.long_name - 1;
|
||||
if (GetModuleHandle16(last+1))
|
||||
{
|
||||
TRACE(file,"Denying shared open for %s\n",full_name.long_name);
|
||||
TRACE("Denying shared open for %s\n",full_name.long_name);
|
||||
return HFILE_ERROR;
|
||||
}
|
||||
}
|
||||
|
@ -883,7 +883,7 @@ found:
|
|||
if (mode & OF_DELETE)
|
||||
{
|
||||
if (unlink( full_name.long_name ) == -1) goto not_found;
|
||||
TRACE(file, "(%s): OF_DELETE return = OK\n", name);
|
||||
TRACE("(%s): OF_DELETE return = OK\n", name);
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
@ -898,7 +898,7 @@ found:
|
|||
if (memcmp( ofs->reserved, filedatetime, sizeof(ofs->reserved) ))
|
||||
{
|
||||
CloseHandle( hFileRet );
|
||||
WARN(file, "(%s): OF_VERIFY failed\n", name );
|
||||
WARN("(%s): OF_VERIFY failed\n", name );
|
||||
/* FIXME: what error here? */
|
||||
SetLastError( ERROR_FILE_NOT_FOUND );
|
||||
goto error;
|
||||
|
@ -907,7 +907,7 @@ found:
|
|||
memcpy( ofs->reserved, filedatetime, sizeof(ofs->reserved) );
|
||||
|
||||
success: /* We get here if the open was successful */
|
||||
TRACE(file, "(%s): OK, return = %d\n", name, hFileRet );
|
||||
TRACE("(%s): OK, return = %d\n", name, hFileRet );
|
||||
if (win32)
|
||||
{
|
||||
if (mode & OF_EXIST) /* Return the handle, but close it first */
|
||||
|
@ -923,13 +923,13 @@ success: /* We get here if the open was successful */
|
|||
return hFileRet;
|
||||
|
||||
not_found: /* We get here if the file does not exist */
|
||||
WARN(file, "'%s' not found\n", name );
|
||||
WARN("'%s' not found\n", name );
|
||||
SetLastError( ERROR_FILE_NOT_FOUND );
|
||||
/* fall through */
|
||||
|
||||
error: /* We get here if there was an error opening the file */
|
||||
ofs->nErrCode = GetLastError();
|
||||
WARN(file, "(%s): return = HFILE_ERROR error= %d\n",
|
||||
WARN("(%s): return = HFILE_ERROR error= %d\n",
|
||||
name,ofs->nErrCode );
|
||||
return HFILE_ERROR;
|
||||
}
|
||||
|
@ -998,7 +998,7 @@ HFILE16 FILE_AllocDosHandle( HANDLE handle )
|
|||
if (!*ptr)
|
||||
{
|
||||
*ptr = handle;
|
||||
TRACE( file, "Got %d for h32 %d\n", i, handle );
|
||||
TRACE("Got %d for h32 %d\n", i, handle );
|
||||
return i;
|
||||
}
|
||||
error:
|
||||
|
@ -1043,7 +1043,7 @@ HFILE16 FILE_Dup2( HFILE16 hFile1, HFILE16 hFile2 )
|
|||
}
|
||||
if (hFile2 < 5)
|
||||
{
|
||||
FIXME( file, "stdio handle closed, need proper conversion\n" );
|
||||
FIXME("stdio handle closed, need proper conversion\n" );
|
||||
SetLastError( ERROR_INVALID_HANDLE );
|
||||
return HFILE_ERROR16;
|
||||
}
|
||||
|
@ -1066,7 +1066,7 @@ HFILE16 WINAPI _lclose16( HFILE16 hFile )
|
|||
|
||||
if (hFile < 5)
|
||||
{
|
||||
FIXME( file, "stdio handle closed, need proper conversion\n" );
|
||||
FIXME("stdio handle closed, need proper conversion\n" );
|
||||
SetLastError( ERROR_INVALID_HANDLE );
|
||||
return HFILE_ERROR16;
|
||||
}
|
||||
|
@ -1075,7 +1075,7 @@ HFILE16 WINAPI _lclose16( HFILE16 hFile )
|
|||
SetLastError( ERROR_INVALID_HANDLE );
|
||||
return HFILE_ERROR16;
|
||||
}
|
||||
TRACE( file, "%d (handle32=%d)\n", hFile, table[hFile] );
|
||||
TRACE("%d (handle32=%d)\n", hFile, table[hFile] );
|
||||
CloseHandle( table[hFile] );
|
||||
table[hFile] = 0;
|
||||
return 0;
|
||||
|
@ -1087,7 +1087,7 @@ HFILE16 WINAPI _lclose16( HFILE16 hFile )
|
|||
*/
|
||||
HFILE WINAPI _lclose( HFILE hFile )
|
||||
{
|
||||
TRACE(file, "handle %d\n", hFile );
|
||||
TRACE("handle %d\n", hFile );
|
||||
return CloseHandle( hFile ) ? 0 : HFILE_ERROR;
|
||||
}
|
||||
|
||||
|
@ -1101,7 +1101,7 @@ BOOL WINAPI ReadFile( HANDLE hFile, LPVOID buffer, DWORD bytesToRead,
|
|||
struct get_read_fd_request *req = get_req_buffer();
|
||||
int unix_handle, result;
|
||||
|
||||
TRACE(file, "%d %p %ld\n", hFile, buffer, bytesToRead );
|
||||
TRACE("%d %p %ld\n", hFile, buffer, bytesToRead );
|
||||
|
||||
if (bytesRead) *bytesRead = 0; /* Do this before anything else */
|
||||
if (!bytesToRead) return TRUE;
|
||||
|
@ -1132,7 +1132,7 @@ BOOL WINAPI WriteFile( HANDLE hFile, LPCVOID buffer, DWORD bytesToWrite,
|
|||
struct get_write_fd_request *req = get_req_buffer();
|
||||
int unix_handle, result;
|
||||
|
||||
TRACE(file, "%d %p %ld\n", hFile, buffer, bytesToWrite );
|
||||
TRACE("%d %p %ld\n", hFile, buffer, bytesToWrite );
|
||||
|
||||
if (bytesWritten) *bytesWritten = 0; /* Do this before anything else */
|
||||
if (!bytesToWrite) return TRUE;
|
||||
|
@ -1164,7 +1164,7 @@ LONG WINAPI WIN16_hread( HFILE16 hFile, SEGPTR buffer, LONG count )
|
|||
{
|
||||
LONG maxlen;
|
||||
|
||||
TRACE(file, "%d %08lx %ld\n",
|
||||
TRACE("%d %08lx %ld\n",
|
||||
hFile, (DWORD)buffer, count );
|
||||
|
||||
/* Some programs pass a count larger than the allocated buffer */
|
||||
|
@ -1219,7 +1219,7 @@ HFILE WINAPI _lcreat( LPCSTR path, INT attr )
|
|||
{
|
||||
/* Mask off all flags not explicitly allowed by the doc */
|
||||
attr &= FILE_ATTRIBUTE_READONLY | FILE_ATTRIBUTE_HIDDEN | FILE_ATTRIBUTE_SYSTEM;
|
||||
TRACE(file, "%s %02x\n", path, attr );
|
||||
TRACE("%s %02x\n", path, attr );
|
||||
return CreateFileA( path, GENERIC_READ | GENERIC_WRITE,
|
||||
FILE_SHARE_READ | FILE_SHARE_WRITE, NULL,
|
||||
CREATE_ALWAYS, attr, -1 );
|
||||
|
@ -1236,11 +1236,11 @@ DWORD WINAPI SetFilePointer( HFILE hFile, LONG distance, LONG *highword,
|
|||
|
||||
if (highword && *highword)
|
||||
{
|
||||
FIXME(file, "64-bit offsets not supported yet\n");
|
||||
FIXME("64-bit offsets not supported yet\n");
|
||||
SetLastError( ERROR_INVALID_PARAMETER );
|
||||
return 0xffffffff;
|
||||
}
|
||||
TRACE(file, "handle %d offset %ld origin %ld\n",
|
||||
TRACE("handle %d offset %ld origin %ld\n",
|
||||
hFile, distance, method );
|
||||
|
||||
req->handle = hFile;
|
||||
|
@ -1294,7 +1294,7 @@ HFILE WINAPI _lopen( LPCSTR path, INT mode )
|
|||
{
|
||||
DWORD access, sharing;
|
||||
|
||||
TRACE(file, "('%s',%04x)\n", path, mode );
|
||||
TRACE("('%s',%04x)\n", path, mode );
|
||||
FILE_ConvertOFMode( mode, &access, &sharing );
|
||||
return CreateFileA( path, access, sharing, NULL, OPEN_EXISTING, 0, -1 );
|
||||
}
|
||||
|
@ -1358,7 +1358,7 @@ LONG WINAPI _hwrite( HFILE handle, LPCSTR buffer, LONG count )
|
|||
{
|
||||
DWORD result;
|
||||
|
||||
TRACE(file, "%d %p %ld\n", handle, buffer, count );
|
||||
TRACE("%d %p %ld\n", handle, buffer, count );
|
||||
|
||||
if (!count)
|
||||
{
|
||||
|
@ -1381,7 +1381,7 @@ UINT16 WINAPI SetHandleCount16( UINT16 count )
|
|||
PDB16 *pdb = (PDB16 *)GlobalLock16( hPDB );
|
||||
BYTE *files = PTR_SEG_TO_LIN( pdb->fileHandlesPtr );
|
||||
|
||||
TRACE(file, "(%d)\n", count );
|
||||
TRACE("(%d)\n", count );
|
||||
|
||||
if (count < 20) count = 20; /* No point in going below 20 */
|
||||
else if (count > 254) count = 254;
|
||||
|
@ -1471,16 +1471,16 @@ BOOL WINAPI DeleteFileA( LPCSTR path )
|
|||
{
|
||||
DOS_FULL_NAME full_name;
|
||||
|
||||
TRACE(file, "'%s'\n", path );
|
||||
TRACE("'%s'\n", path );
|
||||
|
||||
if (!*path)
|
||||
{
|
||||
ERR(file, "Empty path passed\n");
|
||||
ERR("Empty path passed\n");
|
||||
return FALSE;
|
||||
}
|
||||
if (DOSFS_GetDevice( path ))
|
||||
{
|
||||
WARN(file, "cannot remove DOS device '%s'!\n", path);
|
||||
WARN("cannot remove DOS device '%s'!\n", path);
|
||||
SetLastError( ERROR_FILE_NOT_FOUND );
|
||||
return FALSE;
|
||||
}
|
||||
|
@ -1520,7 +1520,7 @@ LPVOID FILE_dommap( int unix_handle, LPVOID start,
|
|||
LPVOID ret;
|
||||
|
||||
if (size_high || offset_high)
|
||||
FIXME(file, "offsets larger than 4Gb not supported\n");
|
||||
FIXME("offsets larger than 4Gb not supported\n");
|
||||
|
||||
if (unix_handle == -1)
|
||||
{
|
||||
|
@ -1593,7 +1593,7 @@ LPVOID FILE_dommap( int unix_handle, LPVOID start,
|
|||
int FILE_munmap( LPVOID start, DWORD size_high, DWORD size_low )
|
||||
{
|
||||
if (size_high)
|
||||
FIXME(file, "offsets larger than 4Gb not supported\n");
|
||||
FIXME("offsets larger than 4Gb not supported\n");
|
||||
return munmap( start, size_low );
|
||||
}
|
||||
|
||||
|
@ -1618,7 +1618,7 @@ BOOL WINAPI MoveFileExA( LPCSTR fn1, LPCSTR fn2, DWORD flag )
|
|||
DOS_FULL_NAME full_name1, full_name2;
|
||||
int mode=0; /* mode == 1: use copy */
|
||||
|
||||
TRACE(file, "(%s,%s,%04lx)\n", fn1, fn2, flag);
|
||||
TRACE("(%s,%s,%04lx)\n", fn1, fn2, flag);
|
||||
|
||||
if (!DOSFS_GetFullName( fn1, TRUE, &full_name1 )) return FALSE;
|
||||
if (fn2) { /* !fn2 means delete fn1 */
|
||||
|
@ -1645,7 +1645,7 @@ BOOL WINAPI MoveFileExA( LPCSTR fn1, LPCSTR fn2, DWORD flag )
|
|||
else /* fn2 == NULL means delete source */
|
||||
if (flag & MOVEFILE_DELAY_UNTIL_REBOOT) {
|
||||
if (flag & MOVEFILE_COPY_ALLOWED) {
|
||||
WARN(file, "Illegal flag\n");
|
||||
WARN("Illegal flag\n");
|
||||
SetLastError( ERROR_GEN_FAILURE );
|
||||
return FALSE;
|
||||
}
|
||||
|
@ -1653,7 +1653,7 @@ BOOL WINAPI MoveFileExA( LPCSTR fn1, LPCSTR fn2, DWORD flag )
|
|||
Perhaps we should queue these command and execute it
|
||||
when exiting... What about using on_exit(2)
|
||||
*/
|
||||
FIXME(file, "Please delete file '%s' when Wine has finished\n",
|
||||
FIXME("Please delete file '%s' when Wine has finished\n",
|
||||
full_name1.long_name);
|
||||
return TRUE;
|
||||
}
|
||||
|
@ -1669,7 +1669,7 @@ BOOL WINAPI MoveFileExA( LPCSTR fn1, LPCSTR fn2, DWORD flag )
|
|||
Perhaps we should queue these command and execute it
|
||||
when exiting... What about using on_exit(2)
|
||||
*/
|
||||
FIXME(file,"Please move existing file '%s' to file '%s'"
|
||||
FIXME("Please move existing file '%s' to file '%s'"
|
||||
"when Wine has finished\n",
|
||||
full_name1.long_name, full_name2.long_name);
|
||||
return TRUE;
|
||||
|
@ -1711,7 +1711,7 @@ BOOL WINAPI MoveFileA( LPCSTR fn1, LPCSTR fn2 )
|
|||
DOS_FULL_NAME full_name1, full_name2;
|
||||
struct stat fstat;
|
||||
|
||||
TRACE(file, "(%s,%s)\n", fn1, fn2 );
|
||||
TRACE("(%s,%s)\n", fn1, fn2 );
|
||||
|
||||
if (!DOSFS_GetFullName( fn1, TRUE, &full_name1 )) return FALSE;
|
||||
if (DOSFS_GetFullName( fn2, TRUE, &full_name2 ))
|
||||
|
@ -1729,7 +1729,7 @@ BOOL WINAPI MoveFileA( LPCSTR fn1, LPCSTR fn2 )
|
|||
else /*copy */ {
|
||||
if (stat( full_name1.long_name, &fstat ))
|
||||
{
|
||||
WARN(file, "Invalid source file %s\n",
|
||||
WARN("Invalid source file %s\n",
|
||||
full_name1.long_name);
|
||||
FILE_SetDosError();
|
||||
return FALSE;
|
||||
|
@ -1928,14 +1928,14 @@ BOOL WINAPI LockFileEx( HANDLE hFile, DWORD flags, DWORD reserved,
|
|||
DWORD nNumberOfBytesToLockLow, DWORD nNumberOfBytesToLockHigh,
|
||||
LPOVERLAPPED pOverlapped )
|
||||
{
|
||||
FIXME(file, "hFile=%d,flags=%ld,reserved=%ld,lowbytes=%ld,highbytes=%ld,overlapped=%p: stub.\n",
|
||||
FIXME("hFile=%d,flags=%ld,reserved=%ld,lowbytes=%ld,highbytes=%ld,overlapped=%p: stub.\n",
|
||||
hFile, flags, reserved, nNumberOfBytesToLockLow, nNumberOfBytesToLockHigh,
|
||||
pOverlapped);
|
||||
if (reserved == 0)
|
||||
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
|
||||
else
|
||||
{
|
||||
ERR(file, "reserved == %ld: Supposed to be 0??\n", reserved);
|
||||
ERR("reserved == %ld: Supposed to be 0??\n", reserved);
|
||||
SetLastError(ERROR_INVALID_PARAMETER);
|
||||
}
|
||||
|
||||
|
@ -1971,14 +1971,14 @@ BOOL WINAPI UnlockFileEx(
|
|||
LPOVERLAPPED lpOverlapped
|
||||
)
|
||||
{
|
||||
FIXME(file, "hFile=%d,reserved=%ld,lowbytes=%ld,highbytes=%ld,overlapped=%p: stub.\n",
|
||||
FIXME("hFile=%d,reserved=%ld,lowbytes=%ld,highbytes=%ld,overlapped=%p: stub.\n",
|
||||
hFile, dwReserved, nNumberOfBytesToUnlockLow, nNumberOfBytesToUnlockHigh,
|
||||
lpOverlapped);
|
||||
if (dwReserved == 0)
|
||||
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
|
||||
else
|
||||
{
|
||||
ERR(file, "reserved == %ld: Supposed to be 0??\n", dwReserved);
|
||||
ERR("reserved == %ld: Supposed to be 0??\n", dwReserved);
|
||||
SetLastError(ERROR_INVALID_PARAMETER);
|
||||
}
|
||||
|
||||
|
@ -2098,12 +2098,12 @@ BOOL WINAPI LockFile(
|
|||
struct flock f;
|
||||
FILE_OBJECT *file;
|
||||
|
||||
TRACE(file, "handle %d offsetlow=%ld offsethigh=%ld nbyteslow=%ld nbyteshigh=%ld\n",
|
||||
TRACE("handle %d offsetlow=%ld offsethigh=%ld nbyteslow=%ld nbyteshigh=%ld\n",
|
||||
hFile, dwFileOffsetLow, dwFileOffsetHigh,
|
||||
nNumberOfBytesToLockLow, nNumberOfBytesToLockHigh);
|
||||
|
||||
if (dwFileOffsetHigh || nNumberOfBytesToLockHigh) {
|
||||
FIXME(file, "Unimplemented bytes > 32bits\n");
|
||||
FIXME("Unimplemented bytes > 32bits\n");
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
|
@ -2149,12 +2149,12 @@ BOOL WINAPI UnlockFile(
|
|||
FILE_OBJECT *file;
|
||||
struct flock f;
|
||||
|
||||
TRACE(file, "handle %d offsetlow=%ld offsethigh=%ld nbyteslow=%ld nbyteshigh=%ld\n",
|
||||
TRACE("handle %d offsetlow=%ld offsethigh=%ld nbyteslow=%ld nbyteshigh=%ld\n",
|
||||
hFile, dwFileOffsetLow, dwFileOffsetHigh,
|
||||
nNumberOfBytesToUnlockLow, nNumberOfBytesToUnlockHigh);
|
||||
|
||||
if (dwFileOffsetHigh || nNumberOfBytesToUnlockHigh) {
|
||||
WARN(file, "Unimplemented bytes > 32bits\n");
|
||||
WARN("Unimplemented bytes > 32bits\n");
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
|
@ -2206,7 +2206,7 @@ BOOL WINAPI GetFileAttributesExA(
|
|||
lpFad->nFileSizeLow = info.nFileSizeLow;
|
||||
}
|
||||
else {
|
||||
FIXME (file, "invalid info level %d!\n", fInfoLevelId);
|
||||
FIXME("invalid info level %d!\n", fInfoLevelId);
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
#include "winnls.h"
|
||||
#include "file.h"
|
||||
#include "heap.h"
|
||||
#include "debug.h"
|
||||
#include "debugtools.h"
|
||||
#include "options.h"
|
||||
|
||||
DEFAULT_DEBUG_CHANNEL(profile)
|
||||
|
@ -208,7 +208,7 @@ static PROFILESECTION *PROFILE_Load( FILE *file )
|
|||
{
|
||||
if (!(p2 = strrchr( p, ']' )))
|
||||
{
|
||||
WARN(profile, "Invalid section header at line %d: '%s'\n",
|
||||
WARN("Invalid section header at line %d: '%s'\n",
|
||||
line, p );
|
||||
}
|
||||
else
|
||||
|
@ -224,7 +224,7 @@ static PROFILESECTION *PROFILE_Load( FILE *file )
|
|||
next_key = §ion->key;
|
||||
prev_key = NULL;
|
||||
|
||||
TRACE(profile, "New section: '%s'\n",section->name);
|
||||
TRACE("New section: '%s'\n",section->name);
|
||||
|
||||
continue;
|
||||
}
|
||||
|
@ -251,7 +251,7 @@ static PROFILESECTION *PROFILE_Load( FILE *file )
|
|||
next_key = &key->next;
|
||||
prev_key = key;
|
||||
|
||||
TRACE(profile, "New key: name='%s', value='%s'\n",key->name,key->value?key->value:"(none)");
|
||||
TRACE("New key: name='%s', value='%s'\n",key->name,key->value?key->value:"(none)");
|
||||
}
|
||||
}
|
||||
return first_section;
|
||||
|
@ -368,7 +368,7 @@ static BOOL PROFILE_FlushFile(void)
|
|||
|
||||
if(!CurProfile)
|
||||
{
|
||||
WARN(profile, "No current profile!\n");
|
||||
WARN("No current profile!\n");
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
|
@ -391,11 +391,11 @@ static BOOL PROFILE_FlushFile(void)
|
|||
|
||||
if (!file)
|
||||
{
|
||||
WARN(profile, "could not save profile file %s\n", CurProfile->dos_name);
|
||||
WARN("could not save profile file %s\n", CurProfile->dos_name);
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
TRACE(profile, "Saving '%s' into '%s'\n", CurProfile->dos_name, unix_name );
|
||||
TRACE("Saving '%s' into '%s'\n", CurProfile->dos_name, unix_name );
|
||||
PROFILE_Save( file, CurProfile->section );
|
||||
fclose( file );
|
||||
CurProfile->changed = FALSE;
|
||||
|
@ -463,10 +463,10 @@ static BOOL PROFILE_Open( LPCSTR filename )
|
|||
CurProfile=tempProfile;
|
||||
}
|
||||
if(!stat(CurProfile->unix_name,&buf) && CurProfile->mtime==buf.st_mtime)
|
||||
TRACE(profile, "(%s): already opened (mru=%d)\n",
|
||||
TRACE("(%s): already opened (mru=%d)\n",
|
||||
filename, i );
|
||||
else
|
||||
TRACE(profile, "(%s): already opened, needs refreshing (mru=%d)\n",
|
||||
TRACE("(%s): already opened, needs refreshing (mru=%d)\n",
|
||||
filename, i );
|
||||
return TRUE;
|
||||
}
|
||||
|
@ -515,7 +515,7 @@ static BOOL PROFILE_Open( LPCSTR filename )
|
|||
CharLowerA( p );
|
||||
if ((file = fopen( buffer, "r" )))
|
||||
{
|
||||
TRACE(profile, "(%s): found it in %s\n",
|
||||
TRACE("(%s): found it in %s\n",
|
||||
filename, buffer );
|
||||
CurProfile->unix_name = HEAP_strdupA( SystemHeap, 0, buffer );
|
||||
}
|
||||
|
@ -526,7 +526,7 @@ static BOOL PROFILE_Open( LPCSTR filename )
|
|||
CurProfile->unix_name = HEAP_strdupA( SystemHeap, 0,
|
||||
full_name.long_name );
|
||||
if ((file = fopen( full_name.long_name, "r" )))
|
||||
TRACE(profile, "(%s): found it in %s\n",
|
||||
TRACE("(%s): found it in %s\n",
|
||||
filename, full_name.long_name );
|
||||
}
|
||||
|
||||
|
@ -540,7 +540,7 @@ static BOOL PROFILE_Open( LPCSTR filename )
|
|||
else
|
||||
{
|
||||
/* Does not exist yet, we will create it in PROFILE_FlushFile */
|
||||
WARN(profile, "profile file %s not found\n", newdos_name );
|
||||
WARN("profile file %s not found\n", newdos_name );
|
||||
}
|
||||
return TRUE;
|
||||
}
|
||||
|
@ -637,7 +637,7 @@ static INT PROFILE_GetString( LPCSTR section, LPCSTR key_name,
|
|||
key = PROFILE_Find( &CurProfile->section, section, key_name, FALSE );
|
||||
PROFILE_CopyEntry( buffer, (key && key->value) ? key->value : def_val,
|
||||
len, FALSE );
|
||||
TRACE(profile, "('%s','%s','%s'): returning '%s'\n",
|
||||
TRACE("('%s','%s','%s'): returning '%s'\n",
|
||||
section, key_name, def_val, buffer );
|
||||
return strlen( buffer );
|
||||
}
|
||||
|
@ -659,7 +659,7 @@ static BOOL PROFILE_SetString( LPCSTR section_name, LPCSTR key_name,
|
|||
{
|
||||
if (!key_name) /* Delete a whole section */
|
||||
{
|
||||
TRACE(profile, "('%s')\n", section_name);
|
||||
TRACE("('%s')\n", section_name);
|
||||
CurProfile->changed |= PROFILE_DeleteSection( &CurProfile->section,
|
||||
section_name );
|
||||
return TRUE; /* Even if PROFILE_DeleteSection() has failed,
|
||||
|
@ -667,7 +667,7 @@ static BOOL PROFILE_SetString( LPCSTR section_name, LPCSTR key_name,
|
|||
}
|
||||
else if (!value) /* Delete a key */
|
||||
{
|
||||
TRACE(profile, "('%s','%s')\n",
|
||||
TRACE("('%s','%s')\n",
|
||||
section_name, key_name );
|
||||
CurProfile->changed |= PROFILE_DeleteKey( &CurProfile->section,
|
||||
section_name, key_name );
|
||||
|
@ -677,20 +677,20 @@ static BOOL PROFILE_SetString( LPCSTR section_name, LPCSTR key_name,
|
|||
{
|
||||
PROFILEKEY *key = PROFILE_Find( &CurProfile->section, section_name,
|
||||
key_name, TRUE );
|
||||
TRACE(profile, "('%s','%s','%s'): \n",
|
||||
TRACE("('%s','%s','%s'): \n",
|
||||
section_name, key_name, value );
|
||||
if (!key) return FALSE;
|
||||
if (key->value)
|
||||
{
|
||||
if (!strcmp( key->value, value ))
|
||||
{
|
||||
TRACE(profile, " no change needed\n" );
|
||||
TRACE(" no change needed\n" );
|
||||
return TRUE; /* No change needed */
|
||||
}
|
||||
TRACE(profile, " replacing '%s'\n", key->value );
|
||||
TRACE(" replacing '%s'\n", key->value );
|
||||
HeapFree( SystemHeap, 0, key->value );
|
||||
}
|
||||
else TRACE(profile, " creating key\n" );
|
||||
else TRACE(" creating key\n" );
|
||||
key->value = HEAP_strdupA( SystemHeap, 0, value );
|
||||
CurProfile->changed = TRUE;
|
||||
}
|
||||
|
@ -715,7 +715,7 @@ int PROFILE_GetWineIniString( const char *section, const char *key_name,
|
|||
PROFILEKEY *key = PROFILE_Find(&PROFILE_WineProfile, section, key_name, FALSE);
|
||||
PROFILE_CopyEntry( buffer, (key && key->value) ? key->value : def,
|
||||
len, TRUE );
|
||||
TRACE(profile, "('%s','%s','%s'): returning '%s'\n",
|
||||
TRACE("('%s','%s','%s'): returning '%s'\n",
|
||||
section, key_name, def, buffer );
|
||||
ret = strlen( buffer );
|
||||
}
|
||||
|
@ -865,7 +865,7 @@ int PROFILE_GetWineIniBool(
|
|||
retval = def;
|
||||
}
|
||||
|
||||
TRACE(profile, "(\"%s\", \"%s\", %s), "
|
||||
TRACE("(\"%s\", \"%s\", %s), "
|
||||
"[%c], ret %s.\n", section, key_name,
|
||||
def ? "TRUE" : "FALSE", key_value[0],
|
||||
retval ? "TRUE" : "FALSE");
|
||||
|
@ -916,7 +916,7 @@ int PROFILE_LoadWineIni(void)
|
|||
return 1;
|
||||
}
|
||||
}
|
||||
else WARN(profile, "could not get $HOME value for config file.\n" );
|
||||
else WARN("could not get $HOME value for config file.\n" );
|
||||
|
||||
/* Try global file */
|
||||
|
||||
|
@ -927,7 +927,7 @@ int PROFILE_LoadWineIni(void)
|
|||
strncpy(PROFILE_WineIniUsed,WINE_INI_GLOBAL,MAX_PATHNAME_LEN-1);
|
||||
return 1;
|
||||
}
|
||||
MSG( "Can't open configuration file %s or $HOME%s\n",
|
||||
MESSAGE( "Can't open configuration file %s or $HOME%s\n",
|
||||
WINE_INI_GLOBAL, PROFILE_WineIniName );
|
||||
return 0;
|
||||
}
|
||||
|
@ -942,13 +942,13 @@ int PROFILE_LoadWineIni(void)
|
|||
*/
|
||||
void PROFILE_UsageWineIni(void)
|
||||
{
|
||||
MSG("Perhaps you have not properly edited or created "
|
||||
MESSAGE("Perhaps you have not properly edited or created "
|
||||
"your Wine configuration file.\n");
|
||||
MSG("This is either %s or $HOME%s\n",WINE_INI_GLOBAL,PROFILE_WineIniName);
|
||||
MSG(" or it is determined by the -config option or from\n"
|
||||
MESSAGE("This is either %s or $HOME%s\n",WINE_INI_GLOBAL,PROFILE_WineIniName);
|
||||
MESSAGE(" or it is determined by the -config option or from\n"
|
||||
" the WINE_INI environment variable.\n");
|
||||
if (*PROFILE_WineIniUsed)
|
||||
MSG("Wine has used %s as configuration file.\n", PROFILE_WineIniUsed);
|
||||
MESSAGE("Wine has used %s as configuration file.\n", PROFILE_WineIniUsed);
|
||||
/* RTFM, so to say */
|
||||
}
|
||||
|
||||
|
@ -1314,11 +1314,11 @@ BOOL WINAPI WritePrivateProfileSectionA( LPCSTR section,
|
|||
{
|
||||
char *p =(char*)string;
|
||||
|
||||
FIXME(profile, "WritePrivateProfileSection32A empty stub\n");
|
||||
FIXME("WritePrivateProfileSection32A empty stub\n");
|
||||
if (TRACE_ON(profile)) {
|
||||
TRACE(profile, "(%s) => [%s]\n", filename, section);
|
||||
TRACE("(%s) => [%s]\n", filename, section);
|
||||
while (*(p+1)) {
|
||||
TRACE(profile, "%s\n", p);
|
||||
TRACE("%s\n", p);
|
||||
p += strlen(p);
|
||||
p += 1;
|
||||
}
|
||||
|
|
|
@ -1,2 +0,0 @@
|
|||
#define OLD_DEBUG_MACROS
|
||||
#include "debugtools.h"
|
File diff suppressed because it is too large
Load Diff
|
@ -67,7 +67,7 @@
|
|||
#include "multimedia.h"
|
||||
#include "wine/obj_base.h"
|
||||
#include "thread.h"
|
||||
#include "debug.h"
|
||||
#include "debugtools.h"
|
||||
|
||||
DEFAULT_DEBUG_CHANNEL(dsound)
|
||||
|
||||
|
@ -200,7 +200,7 @@ HRESULT WINAPI DirectSoundEnumerateA(
|
|||
LPDSENUMCALLBACKA enumcb,
|
||||
LPVOID context)
|
||||
{
|
||||
TRACE(dsound, "enumcb = %p, context = %p\n", enumcb, context);
|
||||
TRACE("enumcb = %p, context = %p\n", enumcb, context);
|
||||
|
||||
#ifdef HAVE_OSS
|
||||
if (enumcb != NULL)
|
||||
|
@ -249,7 +249,7 @@ static HRESULT WINAPI IDirectSound3DBufferImpl_QueryInterface(
|
|||
char xbuf[50];
|
||||
|
||||
WINE_StringFromCLSID(riid,xbuf);
|
||||
TRACE(dsound,"(%p,%s,%p)\n",This,xbuf,ppobj);
|
||||
TRACE("(%p,%s,%p)\n",This,xbuf,ppobj);
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
|
@ -277,7 +277,7 @@ static HRESULT WINAPI IDirectSound3DBufferImpl_GetAllParameters(
|
|||
LPDIRECTSOUND3DBUFFER iface,
|
||||
LPDS3DBUFFER lpDs3dBuffer)
|
||||
{
|
||||
FIXME(dsound,"stub\n");
|
||||
FIXME("stub\n");
|
||||
return DS_OK;
|
||||
}
|
||||
|
||||
|
@ -286,7 +286,7 @@ static HRESULT WINAPI IDirectSound3DBufferImpl_GetConeAngles(
|
|||
LPDWORD lpdwInsideConeAngle,
|
||||
LPDWORD lpdwOutsideConeAngle)
|
||||
{
|
||||
FIXME(dsound,"stub\n");
|
||||
FIXME("stub\n");
|
||||
return DS_OK;
|
||||
}
|
||||
|
||||
|
@ -294,7 +294,7 @@ static HRESULT WINAPI IDirectSound3DBufferImpl_GetConeOrientation(
|
|||
LPDIRECTSOUND3DBUFFER iface,
|
||||
LPD3DVECTOR lpvConeOrientation)
|
||||
{
|
||||
FIXME(dsound,"stub\n");
|
||||
FIXME("stub\n");
|
||||
return DS_OK;
|
||||
}
|
||||
|
||||
|
@ -302,7 +302,7 @@ static HRESULT WINAPI IDirectSound3DBufferImpl_GetConeOutsideVolume(
|
|||
LPDIRECTSOUND3DBUFFER iface,
|
||||
LPLONG lplConeOutsideVolume)
|
||||
{
|
||||
FIXME(dsound,"stub\n");
|
||||
FIXME("stub\n");
|
||||
return DS_OK;
|
||||
}
|
||||
|
||||
|
@ -310,7 +310,7 @@ static HRESULT WINAPI IDirectSound3DBufferImpl_GetMaxDistance(
|
|||
LPDIRECTSOUND3DBUFFER iface,
|
||||
LPD3DVALUE lpfMaxDistance)
|
||||
{
|
||||
FIXME(dsound,"stub\n");
|
||||
FIXME("stub\n");
|
||||
return DS_OK;
|
||||
}
|
||||
|
||||
|
@ -318,7 +318,7 @@ static HRESULT WINAPI IDirectSound3DBufferImpl_GetMinDistance(
|
|||
LPDIRECTSOUND3DBUFFER iface,
|
||||
LPD3DVALUE lpfMinDistance)
|
||||
{
|
||||
FIXME(dsound,"stub\n");
|
||||
FIXME("stub\n");
|
||||
return DS_OK;
|
||||
}
|
||||
|
||||
|
@ -326,7 +326,7 @@ static HRESULT WINAPI IDirectSound3DBufferImpl_GetMode(
|
|||
LPDIRECTSOUND3DBUFFER iface,
|
||||
LPDWORD lpdwMode)
|
||||
{
|
||||
FIXME(dsound,"stub\n");
|
||||
FIXME("stub\n");
|
||||
return DS_OK;
|
||||
}
|
||||
|
||||
|
@ -334,7 +334,7 @@ static HRESULT WINAPI IDirectSound3DBufferImpl_GetPosition(
|
|||
LPDIRECTSOUND3DBUFFER iface,
|
||||
LPD3DVECTOR lpvPosition)
|
||||
{
|
||||
FIXME(dsound,"stub\n");
|
||||
FIXME("stub\n");
|
||||
return DS_OK;
|
||||
}
|
||||
|
||||
|
@ -342,7 +342,7 @@ static HRESULT WINAPI IDirectSound3DBufferImpl_GetVelocity(
|
|||
LPDIRECTSOUND3DBUFFER iface,
|
||||
LPD3DVECTOR lpvVelocity)
|
||||
{
|
||||
FIXME(dsound,"stub\n");
|
||||
FIXME("stub\n");
|
||||
return DS_OK;
|
||||
}
|
||||
|
||||
|
@ -351,7 +351,7 @@ static HRESULT WINAPI IDirectSound3DBufferImpl_SetAllParameters(
|
|||
LPCDS3DBUFFER lpcDs3dBuffer,
|
||||
DWORD dwApply)
|
||||
{
|
||||
FIXME(dsound,"stub\n");
|
||||
FIXME("stub\n");
|
||||
return DS_OK;
|
||||
}
|
||||
|
||||
|
@ -361,7 +361,7 @@ static HRESULT WINAPI IDirectSound3DBufferImpl_SetConeAngles(
|
|||
DWORD dwOutsideConeAngle,
|
||||
DWORD dwApply)
|
||||
{
|
||||
FIXME(dsound,"stub\n");
|
||||
FIXME("stub\n");
|
||||
return DS_OK;
|
||||
}
|
||||
|
||||
|
@ -370,7 +370,7 @@ static HRESULT WINAPI IDirectSound3DBufferImpl_SetConeOrientation(
|
|||
D3DVALUE x, D3DVALUE y, D3DVALUE z,
|
||||
DWORD dwApply)
|
||||
{
|
||||
FIXME(dsound,"stub\n");
|
||||
FIXME("stub\n");
|
||||
return DS_OK;
|
||||
}
|
||||
|
||||
|
@ -379,7 +379,7 @@ static HRESULT WINAPI IDirectSound3DBufferImpl_SetConeOutsideVolume(
|
|||
LONG lConeOutsideVolume,
|
||||
DWORD dwApply)
|
||||
{
|
||||
FIXME(dsound,"stub\n");
|
||||
FIXME("stub\n");
|
||||
return DS_OK;
|
||||
}
|
||||
|
||||
|
@ -388,7 +388,7 @@ static HRESULT WINAPI IDirectSound3DBufferImpl_SetMaxDistance(
|
|||
D3DVALUE fMaxDistance,
|
||||
DWORD dwApply)
|
||||
{
|
||||
FIXME(dsound,"stub\n");
|
||||
FIXME("stub\n");
|
||||
return DS_OK;
|
||||
}
|
||||
|
||||
|
@ -397,7 +397,7 @@ static HRESULT WINAPI IDirectSound3DBufferImpl_SetMinDistance(
|
|||
D3DVALUE fMinDistance,
|
||||
DWORD dwApply)
|
||||
{
|
||||
FIXME(dsound,"stub\n");
|
||||
FIXME("stub\n");
|
||||
return DS_OK;
|
||||
}
|
||||
|
||||
|
@ -407,7 +407,7 @@ static HRESULT WINAPI IDirectSound3DBufferImpl_SetMode(
|
|||
DWORD dwApply)
|
||||
{
|
||||
ICOM_THIS(IDirectSound3DBufferImpl,iface);
|
||||
TRACE(dsound, "mode = %lx\n", dwMode);
|
||||
TRACE("mode = %lx\n", dwMode);
|
||||
This->ds3db.dwMode = dwMode;
|
||||
return DS_OK;
|
||||
}
|
||||
|
@ -417,7 +417,7 @@ static HRESULT WINAPI IDirectSound3DBufferImpl_SetPosition(
|
|||
D3DVALUE x, D3DVALUE y, D3DVALUE z,
|
||||
DWORD dwApply)
|
||||
{
|
||||
FIXME(dsound,"stub\n");
|
||||
FIXME("stub\n");
|
||||
return DS_OK;
|
||||
}
|
||||
|
||||
|
@ -426,7 +426,7 @@ static HRESULT WINAPI IDirectSound3DBufferImpl_SetVelocity(
|
|||
D3DVALUE x, D3DVALUE y, D3DVALUE z,
|
||||
DWORD dwApply)
|
||||
{
|
||||
FIXME(dsound,"stub\n");
|
||||
FIXME("stub\n");
|
||||
return DS_OK;
|
||||
}
|
||||
|
||||
|
@ -545,7 +545,7 @@ static HRESULT WINAPI IDirectSound3DListenerImpl_QueryInterface(
|
|||
char xbuf[50];
|
||||
|
||||
WINE_StringFromCLSID(riid,xbuf);
|
||||
TRACE(dsound,"(%p,%s,%p)\n",This,xbuf,ppobj);
|
||||
TRACE("(%p,%s,%p)\n",This,xbuf,ppobj);
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
|
@ -568,7 +568,7 @@ static HRESULT WINAPI IDirectSound3DListenerImpl_GetAllParameter(
|
|||
LPDIRECTSOUND3DLISTENER iface,
|
||||
LPDS3DLISTENER lpDS3DL)
|
||||
{
|
||||
FIXME(dsound,"stub\n");
|
||||
FIXME("stub\n");
|
||||
return DS_OK;
|
||||
}
|
||||
|
||||
|
@ -576,7 +576,7 @@ static HRESULT WINAPI IDirectSound3DListenerImpl_GetDistanceFactor(
|
|||
LPDIRECTSOUND3DLISTENER iface,
|
||||
LPD3DVALUE lpfDistanceFactor)
|
||||
{
|
||||
FIXME(dsound,"stub\n");
|
||||
FIXME("stub\n");
|
||||
return DS_OK;
|
||||
}
|
||||
|
||||
|
@ -584,7 +584,7 @@ static HRESULT WINAPI IDirectSound3DListenerImpl_GetDopplerFactor(
|
|||
LPDIRECTSOUND3DLISTENER iface,
|
||||
LPD3DVALUE lpfDopplerFactor)
|
||||
{
|
||||
FIXME(dsound,"stub\n");
|
||||
FIXME("stub\n");
|
||||
return DS_OK;
|
||||
}
|
||||
|
||||
|
@ -593,7 +593,7 @@ static HRESULT WINAPI IDirectSound3DListenerImpl_GetOrientation(
|
|||
LPD3DVECTOR lpvOrientFront,
|
||||
LPD3DVECTOR lpvOrientTop)
|
||||
{
|
||||
FIXME(dsound,"stub\n");
|
||||
FIXME("stub\n");
|
||||
return DS_OK;
|
||||
}
|
||||
|
||||
|
@ -601,7 +601,7 @@ static HRESULT WINAPI IDirectSound3DListenerImpl_GetPosition(
|
|||
LPDIRECTSOUND3DLISTENER iface,
|
||||
LPD3DVECTOR lpvPosition)
|
||||
{
|
||||
FIXME(dsound,"stub\n");
|
||||
FIXME("stub\n");
|
||||
return DS_OK;
|
||||
}
|
||||
|
||||
|
@ -609,7 +609,7 @@ static HRESULT WINAPI IDirectSound3DListenerImpl_GetRolloffFactor(
|
|||
LPDIRECTSOUND3DLISTENER iface,
|
||||
LPD3DVALUE lpfRolloffFactor)
|
||||
{
|
||||
FIXME(dsound,"stub\n");
|
||||
FIXME("stub\n");
|
||||
return DS_OK;
|
||||
}
|
||||
|
||||
|
@ -617,7 +617,7 @@ static HRESULT WINAPI IDirectSound3DListenerImpl_GetVelocity(
|
|||
LPDIRECTSOUND3DLISTENER iface,
|
||||
LPD3DVECTOR lpvVelocity)
|
||||
{
|
||||
FIXME(dsound,"stub\n");
|
||||
FIXME("stub\n");
|
||||
return DS_OK;
|
||||
}
|
||||
|
||||
|
@ -626,7 +626,7 @@ static HRESULT WINAPI IDirectSound3DListenerImpl_SetAllParameters(
|
|||
LPCDS3DLISTENER lpcDS3DL,
|
||||
DWORD dwApply)
|
||||
{
|
||||
FIXME(dsound,"stub\n");
|
||||
FIXME("stub\n");
|
||||
return DS_OK;
|
||||
}
|
||||
|
||||
|
@ -635,7 +635,7 @@ static HRESULT WINAPI IDirectSound3DListenerImpl_SetDistanceFactor(
|
|||
D3DVALUE fDistanceFactor,
|
||||
DWORD dwApply)
|
||||
{
|
||||
FIXME(dsound,"stub\n");
|
||||
FIXME("stub\n");
|
||||
return DS_OK;
|
||||
}
|
||||
|
||||
|
@ -644,7 +644,7 @@ static HRESULT WINAPI IDirectSound3DListenerImpl_SetDopplerFactor(
|
|||
D3DVALUE fDopplerFactor,
|
||||
DWORD dwApply)
|
||||
{
|
||||
FIXME(dsound,"stub\n");
|
||||
FIXME("stub\n");
|
||||
return DS_OK;
|
||||
}
|
||||
|
||||
|
@ -654,7 +654,7 @@ static HRESULT WINAPI IDirectSound3DListenerImpl_SetOrientation(
|
|||
D3DVALUE xTop, D3DVALUE yTop, D3DVALUE zTop,
|
||||
DWORD dwApply)
|
||||
{
|
||||
FIXME(dsound,"stub\n");
|
||||
FIXME("stub\n");
|
||||
return DS_OK;
|
||||
}
|
||||
|
||||
|
@ -663,7 +663,7 @@ static HRESULT WINAPI IDirectSound3DListenerImpl_SetPosition(
|
|||
D3DVALUE x, D3DVALUE y, D3DVALUE z,
|
||||
DWORD dwApply)
|
||||
{
|
||||
FIXME(dsound,"stub\n");
|
||||
FIXME("stub\n");
|
||||
return DS_OK;
|
||||
}
|
||||
|
||||
|
@ -672,7 +672,7 @@ static HRESULT WINAPI IDirectSound3DListenerImpl_SetRolloffFactor(
|
|||
D3DVALUE fRolloffFactor,
|
||||
DWORD dwApply)
|
||||
{
|
||||
FIXME(dsound,"stub\n");
|
||||
FIXME("stub\n");
|
||||
return DS_OK;
|
||||
}
|
||||
|
||||
|
@ -681,7 +681,7 @@ static HRESULT WINAPI IDirectSound3DListenerImpl_SetVelocity(
|
|||
D3DVALUE x, D3DVALUE y, D3DVALUE z,
|
||||
DWORD dwApply)
|
||||
{
|
||||
FIXME(dsound,"stub\n");
|
||||
FIXME("stub\n");
|
||||
return DS_OK;
|
||||
}
|
||||
|
||||
|
@ -689,7 +689,7 @@ static HRESULT WINAPI IDirectSound3DListenerImpl_CommitDeferredSettings(
|
|||
LPDIRECTSOUND3DLISTENER iface)
|
||||
|
||||
{
|
||||
FIXME(dsound,"stub\n");
|
||||
FIXME("stub\n");
|
||||
return DS_OK;
|
||||
}
|
||||
|
||||
|
@ -728,7 +728,7 @@ static HRESULT WINAPI IDirectSoundNotifyImpl_QueryInterface(
|
|||
char xbuf[50];
|
||||
|
||||
WINE_StringFromCLSID(riid,xbuf);
|
||||
TRACE(dsound,"(%p,%s,%p)\n",This,xbuf,ppobj);
|
||||
TRACE("(%p,%s,%p)\n",This,xbuf,ppobj);
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
|
@ -755,9 +755,9 @@ static HRESULT WINAPI IDirectSoundNotifyImpl_SetNotificationPositions(
|
|||
int i;
|
||||
|
||||
if (TRACE_ON(dsound)) {
|
||||
TRACE(dsound,"(%p,0x%08lx,%p)\n",This,howmuch,notify);
|
||||
TRACE("(%p,0x%08lx,%p)\n",This,howmuch,notify);
|
||||
for (i=0;i<howmuch;i++)
|
||||
TRACE(dsound,"notify at %ld to 0x%08lx\n",
|
||||
TRACE("notify at %ld to 0x%08lx\n",
|
||||
notify[i].dwOffset,(DWORD)notify[i].hEventNotify);
|
||||
}
|
||||
This->dsb->notifies = HeapReAlloc(GetProcessHeap(),HEAP_ZERO_MEMORY,This->dsb->notifies,(This->dsb->nrofnotifies+howmuch)*sizeof(DSBPOSITIONNOTIFY));
|
||||
|
@ -799,7 +799,7 @@ static HRESULT WINAPI IDirectSoundBufferImpl_SetFormat(
|
|||
(wfex->nSamplesPerSec < 1) ||
|
||||
(wfex->nBlockAlign < 1) || (wfex->nChannels > 4) ||
|
||||
((wfex->wBitsPerSample != 8) && (wfex->wBitsPerSample != 16))) {
|
||||
TRACE(dsound, "failed pedantic check!\n");
|
||||
TRACE("failed pedantic check!\n");
|
||||
return DSERR_INVALIDPARAM;
|
||||
}
|
||||
|
||||
|
@ -822,7 +822,7 @@ static HRESULT WINAPI IDirectSoundBufferImpl_SetFormat(
|
|||
|
||||
memcpy(&(primarybuf->wfx), wfex, sizeof(primarybuf->wfx));
|
||||
|
||||
TRACE(dsound,"(formattag=0x%04x,chans=%d,samplerate=%ld"
|
||||
TRACE("(formattag=0x%04x,chans=%d,samplerate=%ld"
|
||||
"bytespersec=%ld,blockalign=%d,bitspersamp=%d,cbSize=%d)\n",
|
||||
wfex->wFormatTag, wfex->nChannels, wfex->nSamplesPerSec,
|
||||
wfex->nAvgBytesPerSec, wfex->nBlockAlign,
|
||||
|
@ -845,7 +845,7 @@ static HRESULT WINAPI IDirectSoundBufferImpl_SetVolume(
|
|||
ICOM_THIS(IDirectSoundBufferImpl,iface);
|
||||
double temp;
|
||||
|
||||
TRACE(dsound,"(%p,%ld)\n",This,vol);
|
||||
TRACE("(%p,%ld)\n",This,vol);
|
||||
|
||||
/* I'm not sure if we need this for primary buffer */
|
||||
if (!(This->dsbd.dwFlags & DSBCAPS_CTRLVOLUME))
|
||||
|
@ -857,7 +857,7 @@ static HRESULT WINAPI IDirectSoundBufferImpl_SetVolume(
|
|||
/* This needs to adjust the soundcard volume when */
|
||||
/* called for the primary buffer */
|
||||
if (This->dsbd.dwFlags & DSBCAPS_PRIMARYBUFFER) {
|
||||
FIXME(dsound, "Volume control of primary unimplemented.\n");
|
||||
FIXME("Volume control of primary unimplemented.\n");
|
||||
This->volume = vol;
|
||||
return DS_OK;
|
||||
}
|
||||
|
@ -875,7 +875,7 @@ static HRESULT WINAPI IDirectSoundBufferImpl_SetVolume(
|
|||
LeaveCriticalSection(&(This->lock));
|
||||
/* **** */
|
||||
|
||||
TRACE(dsound, "left = %lx, right = %lx\n", This->lVolAdjust, This->rVolAdjust);
|
||||
TRACE("left = %lx, right = %lx\n", This->lVolAdjust, This->rVolAdjust);
|
||||
|
||||
return DS_OK;
|
||||
}
|
||||
|
@ -884,7 +884,7 @@ static HRESULT WINAPI IDirectSoundBufferImpl_GetVolume(
|
|||
LPDIRECTSOUNDBUFFER iface,LPLONG vol
|
||||
) {
|
||||
ICOM_THIS(IDirectSoundBufferImpl,iface);
|
||||
TRACE(dsound,"(%p,%p)\n",This,vol);
|
||||
TRACE("(%p,%p)\n",This,vol);
|
||||
|
||||
if (vol == NULL)
|
||||
return DSERR_INVALIDPARAM;
|
||||
|
@ -897,7 +897,7 @@ static HRESULT WINAPI IDirectSoundBufferImpl_SetFrequency(
|
|||
LPDIRECTSOUNDBUFFER iface,DWORD freq
|
||||
) {
|
||||
ICOM_THIS(IDirectSoundBufferImpl,iface);
|
||||
TRACE(dsound,"(%p,%ld)\n",This,freq);
|
||||
TRACE("(%p,%ld)\n",This,freq);
|
||||
|
||||
/* You cannot set the frequency of the primary buffer */
|
||||
if (!(This->dsbd.dwFlags & DSBCAPS_CTRLFREQUENCY) ||
|
||||
|
@ -924,7 +924,7 @@ static HRESULT WINAPI IDirectSoundBufferImpl_Play(
|
|||
LPDIRECTSOUNDBUFFER iface,DWORD reserved1,DWORD reserved2,DWORD flags
|
||||
) {
|
||||
ICOM_THIS(IDirectSoundBufferImpl,iface);
|
||||
TRACE(dsound,"(%p,%08lx,%08lx,%08lx)\n",
|
||||
TRACE("(%p,%08lx,%08lx,%08lx)\n",
|
||||
This,reserved1,reserved2,flags
|
||||
);
|
||||
This->playflags = flags;
|
||||
|
@ -935,7 +935,7 @@ static HRESULT WINAPI IDirectSoundBufferImpl_Play(
|
|||
static HRESULT WINAPI IDirectSoundBufferImpl_Stop(LPDIRECTSOUNDBUFFER iface)
|
||||
{
|
||||
ICOM_THIS(IDirectSoundBufferImpl,iface);
|
||||
TRACE(dsound,"(%p)\n",This);
|
||||
TRACE("(%p)\n",This);
|
||||
|
||||
/* **** */
|
||||
EnterCriticalSection(&(This->lock));
|
||||
|
@ -999,10 +999,10 @@ static HRESULT WINAPI IDirectSoundBufferImpl_GetCurrentPosition(
|
|||
LPDIRECTSOUNDBUFFER iface,LPDWORD playpos,LPDWORD writepos
|
||||
) {
|
||||
ICOM_THIS(IDirectSoundBufferImpl,iface);
|
||||
TRACE(dsound,"(%p,%p,%p)\n",This,playpos,writepos);
|
||||
TRACE("(%p,%p,%p)\n",This,playpos,writepos);
|
||||
if (playpos) *playpos = This->playpos;
|
||||
if (writepos) *writepos = This->writepos;
|
||||
TRACE(dsound, "playpos = %ld, writepos = %ld\n", *playpos, *writepos);
|
||||
TRACE("playpos = %ld, writepos = %ld\n", *playpos, *writepos);
|
||||
return DS_OK;
|
||||
}
|
||||
|
||||
|
@ -1010,7 +1010,7 @@ static HRESULT WINAPI IDirectSoundBufferImpl_GetStatus(
|
|||
LPDIRECTSOUNDBUFFER iface,LPDWORD status
|
||||
) {
|
||||
ICOM_THIS(IDirectSoundBufferImpl,iface);
|
||||
TRACE(dsound,"(%p,%p)\n",This,status);
|
||||
TRACE("(%p,%p)\n",This,status);
|
||||
|
||||
if (status == NULL)
|
||||
return DSERR_INVALIDPARAM;
|
||||
|
@ -1029,7 +1029,7 @@ static HRESULT WINAPI IDirectSoundBufferImpl_GetFormat(
|
|||
LPDIRECTSOUNDBUFFER iface,LPWAVEFORMATEX lpwf,DWORD wfsize,LPDWORD wfwritten
|
||||
) {
|
||||
ICOM_THIS(IDirectSoundBufferImpl,iface);
|
||||
TRACE(dsound,"(%p,%p,%ld,%p)\n",This,lpwf,wfsize,wfwritten);
|
||||
TRACE("(%p,%p,%ld,%p)\n",This,lpwf,wfsize,wfwritten);
|
||||
|
||||
if (wfsize>sizeof(This->wfx))
|
||||
wfsize = sizeof(This->wfx);
|
||||
|
@ -1051,7 +1051,7 @@ static HRESULT WINAPI IDirectSoundBufferImpl_Lock(
|
|||
) {
|
||||
ICOM_THIS(IDirectSoundBufferImpl,iface);
|
||||
|
||||
TRACE(dsound,"(%p,%ld,%ld,%p,%p,%p,%p,0x%08lx)\n",
|
||||
TRACE("(%p,%ld,%ld,%p,%p,%p,%p,0x%08lx)\n",
|
||||
This,
|
||||
writecursor,
|
||||
writebytes,
|
||||
|
@ -1077,7 +1077,7 @@ static HRESULT WINAPI IDirectSoundBufferImpl_Lock(
|
|||
*(LPBYTE*)lplpaudioptr2 = NULL;
|
||||
if (audiobytes2)
|
||||
*audiobytes2 = 0;
|
||||
TRACE(dsound,"->%ld.0\n",writebytes);
|
||||
TRACE("->%ld.0\n",writebytes);
|
||||
} else {
|
||||
*(LPBYTE*)lplpaudioptr1 = This->buffer+writecursor;
|
||||
*audiobytes1 = This->buflen-writecursor;
|
||||
|
@ -1085,7 +1085,7 @@ static HRESULT WINAPI IDirectSoundBufferImpl_Lock(
|
|||
*(LPBYTE*)lplpaudioptr2 = This->buffer;
|
||||
if (audiobytes2)
|
||||
*audiobytes2 = writebytes-(This->buflen-writecursor);
|
||||
TRACE(dsound,"->%ld.%ld\n",*audiobytes1,audiobytes2?*audiobytes2:0);
|
||||
TRACE("->%ld.%ld\n",*audiobytes1,audiobytes2?*audiobytes2:0);
|
||||
}
|
||||
/* No. See file:///cdrom/sdk52/docs/worddoc/dsound.doc page 21 */
|
||||
/* This->writepos=(writecursor+writebytes)%This->buflen; */
|
||||
|
@ -1096,7 +1096,7 @@ static HRESULT WINAPI IDirectSoundBufferImpl_SetCurrentPosition(
|
|||
LPDIRECTSOUNDBUFFER iface,DWORD newpos
|
||||
) {
|
||||
ICOM_THIS(IDirectSoundBufferImpl,iface);
|
||||
TRACE(dsound,"(%p,%ld)\n",This,newpos);
|
||||
TRACE("(%p,%ld)\n",This,newpos);
|
||||
|
||||
/* **** */
|
||||
EnterCriticalSection(&(This->lock));
|
||||
|
@ -1115,7 +1115,7 @@ static HRESULT WINAPI IDirectSoundBufferImpl_SetPan(
|
|||
ICOM_THIS(IDirectSoundBufferImpl,iface);
|
||||
double temp;
|
||||
|
||||
TRACE(dsound,"(%p,%ld)\n",This,pan);
|
||||
TRACE("(%p,%ld)\n",This,pan);
|
||||
|
||||
if ((pan > DSBPAN_RIGHT) || (pan < DSBPAN_LEFT))
|
||||
return DSERR_INVALIDPARAM;
|
||||
|
@ -1147,7 +1147,7 @@ static HRESULT WINAPI IDirectSoundBufferImpl_GetPan(
|
|||
LPDIRECTSOUNDBUFFER iface,LPLONG pan
|
||||
) {
|
||||
ICOM_THIS(IDirectSoundBufferImpl,iface);
|
||||
TRACE(dsound,"(%p,%p)\n",This,pan);
|
||||
TRACE("(%p,%p)\n",This,pan);
|
||||
|
||||
if (pan == NULL)
|
||||
return DSERR_INVALIDPARAM;
|
||||
|
@ -1161,7 +1161,7 @@ static HRESULT WINAPI IDirectSoundBufferImpl_Unlock(
|
|||
LPDIRECTSOUNDBUFFER iface,LPVOID p1,DWORD x1,LPVOID p2,DWORD x2
|
||||
) {
|
||||
ICOM_THIS(IDirectSoundBufferImpl,iface);
|
||||
TRACE(dsound,"(%p,%p,%ld,%p,%ld):stub\n", This,p1,x1,p2,x2);
|
||||
TRACE("(%p,%p,%ld,%p,%ld):stub\n", This,p1,x1,p2,x2);
|
||||
|
||||
/* There is really nothing to do here. Should someone */
|
||||
/* choose to implement static buffers in hardware (by */
|
||||
|
@ -1184,7 +1184,7 @@ static HRESULT WINAPI IDirectSoundBufferImpl_GetFrequency(
|
|||
LPDIRECTSOUNDBUFFER iface,LPDWORD freq
|
||||
) {
|
||||
ICOM_THIS(IDirectSoundBufferImpl,iface);
|
||||
TRACE(dsound,"(%p,%p)\n",This,freq);
|
||||
TRACE("(%p,%p)\n",This,freq);
|
||||
|
||||
if (freq == NULL)
|
||||
return DSERR_INVALIDPARAM;
|
||||
|
@ -1198,7 +1198,7 @@ static HRESULT WINAPI IDirectSoundBufferImpl_Initialize(
|
|||
LPDIRECTSOUNDBUFFER iface,LPDIRECTSOUND dsound,LPDSBUFFERDESC dbsd
|
||||
) {
|
||||
ICOM_THIS(IDirectSoundBufferImpl,iface);
|
||||
FIXME(dsound,"(%p,%p,%p):stub\n",This,dsound,dbsd);
|
||||
FIXME("(%p,%p,%p):stub\n",This,dsound,dbsd);
|
||||
printf("Re-Init!!!\n");
|
||||
return DSERR_ALREADYINITIALIZED;
|
||||
}
|
||||
|
@ -1207,7 +1207,7 @@ static HRESULT WINAPI IDirectSoundBufferImpl_GetCaps(
|
|||
LPDIRECTSOUNDBUFFER iface,LPDSBCAPS caps
|
||||
) {
|
||||
ICOM_THIS(IDirectSoundBufferImpl,iface);
|
||||
TRACE(dsound,"(%p)->(%p)\n",This,caps);
|
||||
TRACE("(%p)->(%p)\n",This,caps);
|
||||
|
||||
if (caps == NULL)
|
||||
return DSERR_INVALIDPARAM;
|
||||
|
@ -1234,7 +1234,7 @@ static HRESULT WINAPI IDirectSoundBufferImpl_QueryInterface(
|
|||
char xbuf[50];
|
||||
|
||||
WINE_StringFromCLSID(riid,xbuf);
|
||||
TRACE(dsound,"(%p,%s,%p)\n",This,xbuf,ppobj);
|
||||
TRACE("(%p,%s,%p)\n",This,xbuf,ppobj);
|
||||
|
||||
if (!memcmp(&IID_IDirectSoundNotify,riid,sizeof(*riid))) {
|
||||
IDirectSoundNotifyImpl *dsn;
|
||||
|
@ -1290,7 +1290,7 @@ static HRESULT WINAPI IDirectSoundImpl_SetCooperativeLevel(
|
|||
LPDIRECTSOUND iface,HWND hwnd,DWORD level
|
||||
) {
|
||||
ICOM_THIS(IDirectSoundImpl,iface);
|
||||
FIXME(dsound,"(%p,%08lx,%ld):stub\n",This,(DWORD)hwnd,level);
|
||||
FIXME("(%p,%08lx,%ld):stub\n",This,(DWORD)hwnd,level);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@ -1301,23 +1301,23 @@ static HRESULT WINAPI IDirectSoundImpl_CreateSoundBuffer(
|
|||
IDirectSoundBufferImpl** ippdsb=(IDirectSoundBufferImpl**)ppdsb;
|
||||
LPWAVEFORMATEX wfex;
|
||||
|
||||
TRACE(dsound,"(%p,%p,%p,%p)\n",This,dsbd,ippdsb,lpunk);
|
||||
TRACE("(%p,%p,%p,%p)\n",This,dsbd,ippdsb,lpunk);
|
||||
|
||||
if ((This == NULL) || (dsbd == NULL) || (ippdsb == NULL))
|
||||
return DSERR_INVALIDPARAM;
|
||||
|
||||
if (TRACE_ON(dsound)) {
|
||||
TRACE(dsound,"(size=%ld)\n",dsbd->dwSize);
|
||||
TRACE(dsound,"(flags=0x%08lx\n",dsbd->dwFlags);
|
||||
TRACE("(size=%ld)\n",dsbd->dwSize);
|
||||
TRACE("(flags=0x%08lx\n",dsbd->dwFlags);
|
||||
_dump_DSBCAPS(dsbd->dwFlags);
|
||||
TRACE(dsound,"(bufferbytes=%ld)\n",dsbd->dwBufferBytes);
|
||||
TRACE(dsound,"(lpwfxFormat=%p)\n",dsbd->lpwfxFormat);
|
||||
TRACE("(bufferbytes=%ld)\n",dsbd->dwBufferBytes);
|
||||
TRACE("(lpwfxFormat=%p)\n",dsbd->lpwfxFormat);
|
||||
}
|
||||
|
||||
wfex = dsbd->lpwfxFormat;
|
||||
|
||||
if (wfex)
|
||||
TRACE(dsound,"(formattag=0x%04x,chans=%d,samplerate=%ld"
|
||||
TRACE("(formattag=0x%04x,chans=%d,samplerate=%ld"
|
||||
"bytespersec=%ld,blockalign=%d,bitspersamp=%d,cbSize=%d)\n",
|
||||
wfex->wFormatTag, wfex->nChannels, wfex->nSamplesPerSec,
|
||||
wfex->nAvgBytesPerSec, wfex->nBlockAlign,
|
||||
|
@ -1337,7 +1337,7 @@ static HRESULT WINAPI IDirectSoundImpl_CreateSoundBuffer(
|
|||
return DSERR_OUTOFMEMORY;
|
||||
(*ippdsb)->ref = 1;
|
||||
|
||||
TRACE(dsound, "Created buffer at %p\n", *ippdsb);
|
||||
TRACE("Created buffer at %p\n", *ippdsb);
|
||||
|
||||
if (dsbd->dwFlags & DSBCAPS_PRIMARYBUFFER) {
|
||||
(*ippdsb)->buflen = dsound->wfx.nAvgBytesPerSec;
|
||||
|
@ -1429,7 +1429,7 @@ static HRESULT WINAPI IDirectSoundImpl_DuplicateSoundBuffer(
|
|||
ICOM_THIS(IDirectSoundImpl,iface);
|
||||
IDirectSoundBufferImpl* ipdsb=(IDirectSoundBufferImpl*)pdsb;
|
||||
IDirectSoundBufferImpl** ippdsb=(IDirectSoundBufferImpl**)ppdsb;
|
||||
TRACE(dsound,"(%p,%p,%p)\n",This,ipdsb,ippdsb);
|
||||
TRACE("(%p,%p,%p)\n",This,ipdsb,ippdsb);
|
||||
|
||||
*ippdsb = (IDirectSoundBufferImpl*)HeapAlloc(GetProcessHeap(),HEAP_ZERO_MEMORY,sizeof(IDirectSoundBufferImpl));
|
||||
|
||||
|
@ -1452,8 +1452,8 @@ static HRESULT WINAPI IDirectSoundImpl_DuplicateSoundBuffer(
|
|||
|
||||
static HRESULT WINAPI IDirectSoundImpl_GetCaps(LPDIRECTSOUND iface,LPDSCAPS caps) {
|
||||
ICOM_THIS(IDirectSoundImpl,iface);
|
||||
TRACE(dsound,"(%p,%p)\n",This,caps);
|
||||
TRACE(dsound,"(flags=0x%08lx)\n",caps->dwFlags);
|
||||
TRACE("(%p,%p)\n",This,caps);
|
||||
TRACE("(flags=0x%08lx)\n",caps->dwFlags);
|
||||
|
||||
if (caps == NULL)
|
||||
return DSERR_INVALIDPARAM;
|
||||
|
@ -1509,11 +1509,11 @@ static ULONG WINAPI IDirectSoundImpl_AddRef(LPDIRECTSOUND iface) {
|
|||
|
||||
static ULONG WINAPI IDirectSoundImpl_Release(LPDIRECTSOUND iface) {
|
||||
ICOM_THIS(IDirectSoundImpl,iface);
|
||||
TRACE(dsound,"(%p), ref was %ld\n",This,This->ref);
|
||||
TRACE("(%p), ref was %ld\n",This,This->ref);
|
||||
if (!--(This->ref)) {
|
||||
DSOUND_CloseAudio();
|
||||
while(IDirectSoundBuffer_Release((LPDIRECTSOUNDBUFFER)primarybuf)); /* Deallocate */
|
||||
FIXME(dsound, "need to release all buffers!\n");
|
||||
FIXME("need to release all buffers!\n");
|
||||
HeapFree(GetProcessHeap(),0,This);
|
||||
dsound = NULL;
|
||||
return 0;
|
||||
|
@ -1525,7 +1525,7 @@ static HRESULT WINAPI IDirectSoundImpl_SetSpeakerConfig(
|
|||
LPDIRECTSOUND iface,DWORD config
|
||||
) {
|
||||
ICOM_THIS(IDirectSoundImpl,iface);
|
||||
FIXME(dsound,"(%p,0x%08lx):stub\n",This,config);
|
||||
FIXME("(%p,0x%08lx):stub\n",This,config);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@ -1567,7 +1567,7 @@ static HRESULT WINAPI IDirectSoundImpl_QueryInterface(
|
|||
}
|
||||
|
||||
WINE_StringFromCLSID(riid,xbuf);
|
||||
TRACE(dsound,"(%p,%s,%p)\n",This,xbuf,ppobj);
|
||||
TRACE("(%p,%s,%p)\n",This,xbuf,ppobj);
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
|
@ -1575,7 +1575,7 @@ static HRESULT WINAPI IDirectSoundImpl_Compact(
|
|||
LPDIRECTSOUND iface)
|
||||
{
|
||||
ICOM_THIS(IDirectSoundImpl,iface);
|
||||
TRACE(dsound, "(%p)\n", This);
|
||||
TRACE("(%p)\n", This);
|
||||
return DS_OK;
|
||||
}
|
||||
|
||||
|
@ -1584,7 +1584,7 @@ static HRESULT WINAPI IDirectSoundImpl_GetSpeakerConfig(
|
|||
LPDWORD lpdwSpeakerConfig)
|
||||
{
|
||||
ICOM_THIS(IDirectSoundImpl,iface);
|
||||
TRACE(dsound, "(%p, %p)\n", This, lpdwSpeakerConfig);
|
||||
TRACE("(%p, %p)\n", This, lpdwSpeakerConfig);
|
||||
*lpdwSpeakerConfig = DSSPEAKER_STEREO | (DSSPEAKER_GEOMETRY_NARROW << 16);
|
||||
return DS_OK;
|
||||
}
|
||||
|
@ -1594,7 +1594,7 @@ static HRESULT WINAPI IDirectSoundImpl_Initialize(
|
|||
LPGUID lpGuid)
|
||||
{
|
||||
ICOM_THIS(IDirectSoundImpl,iface);
|
||||
TRACE(dsound, "(%p, %p)\n", This, lpGuid);
|
||||
TRACE("(%p, %p)\n", This, lpGuid);
|
||||
return DS_OK;
|
||||
}
|
||||
|
||||
|
@ -1622,12 +1622,12 @@ DSOUND_setformat(LPWAVEFORMATEX wfex) {
|
|||
int xx,channels,speed,format,nformat;
|
||||
|
||||
if (!audioOK) {
|
||||
TRACE(dsound, "(%p) deferred\n", wfex);
|
||||
TRACE("(%p) deferred\n", wfex);
|
||||
return 0;
|
||||
}
|
||||
switch (wfex->wFormatTag) {
|
||||
default:
|
||||
WARN(dsound,"unknown WAVE_FORMAT tag %d\n",wfex->wFormatTag);
|
||||
WARN("unknown WAVE_FORMAT tag %d\n",wfex->wFormatTag);
|
||||
return DSERR_BADFORMAT;
|
||||
case WAVE_FORMAT_PCM:
|
||||
break;
|
||||
|
@ -1642,7 +1642,7 @@ DSOUND_setformat(LPWAVEFORMATEX wfex) {
|
|||
return -1;
|
||||
}
|
||||
if ((xx&format)!=format) {/* format unsupported */
|
||||
FIXME(dsound,"SNDCTL_DSP_GETFMTS: format not supported\n");
|
||||
FIXME("SNDCTL_DSP_GETFMTS: format not supported\n");
|
||||
return -1;
|
||||
}
|
||||
nformat = format;
|
||||
|
@ -1651,7 +1651,7 @@ DSOUND_setformat(LPWAVEFORMATEX wfex) {
|
|||
return -1;
|
||||
}
|
||||
if (nformat!=format) {/* didn't work */
|
||||
FIXME(dsound,"SNDCTL_DSP_GETFMTS: format not set\n");
|
||||
FIXME("SNDCTL_DSP_GETFMTS: format not set\n");
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
@ -1665,7 +1665,7 @@ DSOUND_setformat(LPWAVEFORMATEX wfex) {
|
|||
perror("ioctl SNDCTL_DSP_SPEED");
|
||||
return -1;
|
||||
}
|
||||
TRACE(dsound,"(freq=%ld,channels=%d,bits=%d)\n",
|
||||
TRACE("(freq=%ld,channels=%d,bits=%d)\n",
|
||||
wfex->nSamplesPerSec,wfex->nChannels,wfex->wBitsPerSample
|
||||
);
|
||||
return 0;
|
||||
|
@ -1680,12 +1680,12 @@ static void DSOUND_CheckEvent(IDirectSoundBufferImpl *dsb, int len)
|
|||
if (dsb->nrofnotifies == 0)
|
||||
return;
|
||||
|
||||
TRACE(dsound,"(%p) buflen = %ld, playpos = %ld, len = %d\n",
|
||||
TRACE("(%p) buflen = %ld, playpos = %ld, len = %d\n",
|
||||
dsb, dsb->buflen, dsb->playpos, len);
|
||||
for (i = 0; i < dsb->nrofnotifies ; i++) {
|
||||
event = dsb->notifies + i;
|
||||
offset = event->dwOffset;
|
||||
TRACE(dsound, "checking %d, position %ld, event = %d\n",
|
||||
TRACE("checking %d, position %ld, event = %d\n",
|
||||
i, offset, event->hEventNotify);
|
||||
/* DSBPN_OFFSETSTOP has to be the last element. So this is */
|
||||
/* OK. [Inside DirectX, p274] */
|
||||
|
@ -1695,7 +1695,7 @@ static void DSOUND_CheckEvent(IDirectSoundBufferImpl *dsb, int len)
|
|||
if (offset == DSBPN_OFFSETSTOP) {
|
||||
if (dsb->playing == 0) {
|
||||
SetEvent(event->hEventNotify);
|
||||
TRACE(dsound,"signalled event %d (%d)\n", event->hEventNotify, i);
|
||||
TRACE("signalled event %d (%d)\n", event->hEventNotify, i);
|
||||
return;
|
||||
} else
|
||||
return;
|
||||
|
@ -1703,12 +1703,12 @@ static void DSOUND_CheckEvent(IDirectSoundBufferImpl *dsb, int len)
|
|||
if ((dsb->playpos + len) >= dsb->buflen) {
|
||||
if ((offset < ((dsb->playpos + len) % dsb->buflen)) ||
|
||||
(offset >= dsb->playpos)) {
|
||||
TRACE(dsound,"signalled event %d (%d)\n", event->hEventNotify, i);
|
||||
TRACE("signalled event %d (%d)\n", event->hEventNotify, i);
|
||||
SetEvent(event->hEventNotify);
|
||||
}
|
||||
} else {
|
||||
if ((offset >= dsb->playpos) && (offset < (dsb->playpos + len))) {
|
||||
TRACE(dsound,"signalled event %d (%d)\n", event->hEventNotify, i);
|
||||
TRACE("signalled event %d (%d)\n", event->hEventNotify, i);
|
||||
SetEvent(event->hEventNotify);
|
||||
}
|
||||
}
|
||||
|
@ -1772,7 +1772,7 @@ static inline void get_fields(const IDirectSoundBufferImpl *dsb, BYTE *buf, INT
|
|||
return;
|
||||
}
|
||||
|
||||
FIXME(dsound, "get_fields found an unsupported configuration\n");
|
||||
FIXME("get_fields found an unsupported configuration\n");
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -1801,7 +1801,7 @@ static inline void set_fields(BYTE *buf, INT fl, INT fr)
|
|||
*bufs = (fl + fr) >> 1;
|
||||
return;
|
||||
}
|
||||
FIXME(dsound, "set_fields found an unsupported configuration\n");
|
||||
FIXME("set_fields found an unsupported configuration\n");
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -1816,12 +1816,12 @@ static INT DSOUND_MixerNorm(IDirectSoundBufferImpl *dsb, BYTE *buf, INT len)
|
|||
ibp = dsb->buffer + dsb->playpos;
|
||||
obp = buf;
|
||||
|
||||
TRACE(dsound, "(%p, %p, %p), playpos=%8.8lx\n", dsb, ibp, obp, dsb->playpos);
|
||||
TRACE("(%p, %p, %p), playpos=%8.8lx\n", dsb, ibp, obp, dsb->playpos);
|
||||
/* Check for the best case */
|
||||
if ((dsb->freq == primarybuf->wfx.nSamplesPerSec) &&
|
||||
(dsb->wfx.wBitsPerSample == primarybuf->wfx.wBitsPerSample) &&
|
||||
(dsb->wfx.nChannels == primarybuf->wfx.nChannels)) {
|
||||
TRACE(dsound, "(%p) Best case\n", dsb);
|
||||
TRACE("(%p) Best case\n", dsb);
|
||||
if ((ibp + len) < (BYTE *)(dsb->buffer + dsb->buflen))
|
||||
memcpy(obp, ibp, len);
|
||||
else { /* wrap */
|
||||
|
@ -1835,7 +1835,7 @@ static INT DSOUND_MixerNorm(IDirectSoundBufferImpl *dsb, BYTE *buf, INT len)
|
|||
|
||||
/* Check for same sample rate */
|
||||
if (dsb->freq == primarybuf->wfx.nSamplesPerSec) {
|
||||
TRACE(dsound, "(%p) Same sample rate %ld = primary %ld\n", dsb,
|
||||
TRACE("(%p) Same sample rate %ld = primary %ld\n", dsb,
|
||||
dsb->freq, primarybuf->wfx.nSamplesPerSec);
|
||||
ilen = 0;
|
||||
for (i = 0; i < len; i += oAdvance) {
|
||||
|
@ -1855,7 +1855,7 @@ static INT DSOUND_MixerNorm(IDirectSoundBufferImpl *dsb, BYTE *buf, INT len)
|
|||
/* New PerfectPitch(tm) Technology (c) 1998 Rob Riggs */
|
||||
/* Patent Pending :-] */
|
||||
|
||||
TRACE(dsound, "(%p) Adjusting frequency: %ld -> %ld\n",
|
||||
TRACE("(%p) Adjusting frequency: %ld -> %ld\n",
|
||||
dsb, dsb->freq, primarybuf->wfx.nSamplesPerSec);
|
||||
|
||||
size = len / oAdvance;
|
||||
|
@ -1880,7 +1880,7 @@ static void DSOUND_MixerVol(IDirectSoundBufferImpl *dsb, BYTE *buf, INT len)
|
|||
BYTE *bpc = buf;
|
||||
INT16 *bps = (INT16 *) buf;
|
||||
|
||||
TRACE(dsound, "(%p) left = %lx, right = %lx\n", dsb,
|
||||
TRACE("(%p) left = %lx, right = %lx\n", dsb,
|
||||
dsb->lVolAdjust, dsb->rVolAdjust);
|
||||
if ((!(dsb->dsbd.dwFlags & DSBCAPS_CTRLPAN) || (dsb->pan == 0)) &&
|
||||
(!(dsb->dsbd.dwFlags & DSBCAPS_CTRLVOLUME) || (dsb->volume == 0)) &&
|
||||
|
@ -1913,7 +1913,7 @@ static void DSOUND_MixerVol(IDirectSoundBufferImpl *dsb, BYTE *buf, INT len)
|
|||
break;
|
||||
default:
|
||||
/* Very ugly! */
|
||||
FIXME(dsound, "MixerVol had a nasty error\n");
|
||||
FIXME("MixerVol had a nasty error\n");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1930,7 +1930,7 @@ static void DSOUND_Mixer3D(IDirectSoundBufferImpl *dsb, BYTE *buf, INT len)
|
|||
obp = buf;
|
||||
|
||||
if (playpos > buflen) {
|
||||
FIXME(dsound, "Major breakage");
|
||||
FIXME("Major breakage");
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -1994,11 +1994,11 @@ static DWORD DSOUND_MixInBuffer(IDirectSoundBufferImpl *dsb)
|
|||
}
|
||||
|
||||
/* Been seeing segfaults in malloc() for some reason... */
|
||||
TRACE(dsound, "allocating buffer (size = %d)\n", len);
|
||||
TRACE("allocating buffer (size = %d)\n", len);
|
||||
if ((buf = ibuf = (BYTE *) DSOUND_tmpbuffer(len)) == NULL)
|
||||
return 0;
|
||||
|
||||
TRACE(dsound, "MixInBuffer (%p) len = %d\n", dsb, len);
|
||||
TRACE("MixInBuffer (%p) len = %d\n", dsb, len);
|
||||
|
||||
ilen = DSOUND_MixerNorm(dsb, ibuf, len);
|
||||
if ((dsb->dsbd.dwFlags & DSBCAPS_CTRLPAN) ||
|
||||
|
@ -2120,7 +2120,7 @@ static void DSOUND_CloseAudio(void)
|
|||
primarybuf->writepos = DSOUND_FRAGLEN;
|
||||
memset(primarybuf->buffer, neutral, primarybuf->buflen);
|
||||
audiofd = -1;
|
||||
TRACE(dsound, "Audio stopped\n");
|
||||
TRACE("Audio stopped\n");
|
||||
}
|
||||
|
||||
static int DSOUND_WriteAudio(char *buf, int len)
|
||||
|
@ -2203,21 +2203,21 @@ static DWORD WINAPI DSOUND_thread(LPVOID arg)
|
|||
{
|
||||
int len;
|
||||
|
||||
TRACE(dsound,"dsound is at pid %d\n",getpid());
|
||||
TRACE("dsound is at pid %d\n",getpid());
|
||||
while (1) {
|
||||
if (!dsound) {
|
||||
WARN(dsound,"DSOUND thread giving up.\n");
|
||||
WARN("DSOUND thread giving up.\n");
|
||||
ExitThread(0);
|
||||
}
|
||||
if (getppid()==1) {
|
||||
WARN(dsound,"DSOUND father died? Giving up.\n");
|
||||
WARN("DSOUND father died? Giving up.\n");
|
||||
ExitThread(0);
|
||||
}
|
||||
/* RACE: dsound could be deleted */
|
||||
IDirectSound_AddRef((LPDIRECTSOUND)dsound);
|
||||
if (primarybuf == NULL) {
|
||||
/* Should never happen */
|
||||
WARN(dsound, "Lost the primary buffer!\n");
|
||||
WARN("Lost the primary buffer!\n");
|
||||
IDirectSound_Release((LPDIRECTSOUND)dsound);
|
||||
ExitThread(0);
|
||||
}
|
||||
|
@ -2250,9 +2250,9 @@ HRESULT WINAPI DirectSoundCreate(REFGUID lpGUID,LPDIRECTSOUND *ppDS,IUnknown *pU
|
|||
{
|
||||
IDirectSoundImpl** ippDS=(IDirectSoundImpl**)ppDS;
|
||||
if (lpGUID)
|
||||
TRACE(dsound,"(%p,%p,%p)\n",lpGUID,ippDS,pUnkOuter);
|
||||
TRACE("(%p,%p,%p)\n",lpGUID,ippDS,pUnkOuter);
|
||||
else
|
||||
TRACE(dsound,"DirectSoundCreate (%p)\n", ippDS);
|
||||
TRACE("DirectSoundCreate (%p)\n", ippDS);
|
||||
|
||||
#ifdef HAVE_OSS
|
||||
|
||||
|
@ -2272,12 +2272,12 @@ HRESULT WINAPI DirectSoundCreate(REFGUID lpGUID,LPDIRECTSOUND *ppDS,IUnknown *pU
|
|||
audiofd = open("/dev/audio",O_WRONLY);
|
||||
if (audiofd == -1) {
|
||||
if (errno == ENODEV) {
|
||||
MSG("No sound hardware found.\n");
|
||||
MESSAGE("No sound hardware found.\n");
|
||||
return DSERR_NODRIVER;
|
||||
} else if (errno == EBUSY) {
|
||||
MSG("Sound device busy, will keep trying.\n");
|
||||
MESSAGE("Sound device busy, will keep trying.\n");
|
||||
} else {
|
||||
MSG("Unexpected error (%d) while checking for sound support.\n",errno);
|
||||
MESSAGE("Unexpected error (%d) while checking for sound support.\n",errno);
|
||||
return DSERR_GENERIC;
|
||||
}
|
||||
} else {
|
||||
|
@ -2348,7 +2348,7 @@ DSCF_QueryInterface(LPCLASSFACTORY iface,REFIID riid,LPVOID *ppobj) {
|
|||
WINE_StringFromCLSID(riid,buf);
|
||||
else
|
||||
sprintf(buf,"<guid-0x%04x>",LOWORD(riid));
|
||||
FIXME(dsound,"(%p)->(%s,%p),stub!\n",This,buf,ppobj);
|
||||
FIXME("(%p)->(%s,%p),stub!\n",This,buf,ppobj);
|
||||
return E_NOINTERFACE;
|
||||
}
|
||||
|
||||
|
@ -2371,7 +2371,7 @@ static HRESULT WINAPI DSCF_CreateInstance(
|
|||
char buf[80];
|
||||
|
||||
WINE_StringFromCLSID(riid,buf);
|
||||
TRACE(dsound,"(%p)->(%p,%s,%p)\n",This,pOuter,buf,ppobj);
|
||||
TRACE("(%p)->(%p,%s,%p)\n",This,pOuter,buf,ppobj);
|
||||
if (!memcmp(riid,&IID_IDirectSound,sizeof(IID_IDirectSound))) {
|
||||
/* FIXME: reuse already created dsound if present? */
|
||||
return DirectSoundCreate(riid,(LPDIRECTSOUND*)ppobj,pOuter);
|
||||
|
@ -2381,7 +2381,7 @@ static HRESULT WINAPI DSCF_CreateInstance(
|
|||
|
||||
static HRESULT WINAPI DSCF_LockServer(LPCLASSFACTORY iface,BOOL dolock) {
|
||||
ICOM_THIS(IClassFactoryImpl,iface);
|
||||
FIXME(dsound,"(%p)->(%d),stub!\n",This,dolock);
|
||||
FIXME("(%p)->(%d),stub!\n",This,dolock);
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
@ -2424,13 +2424,13 @@ DWORD WINAPI DSOUND_DllGetClassObject(REFCLSID rclsid,REFIID riid,LPVOID *ppv)
|
|||
else
|
||||
sprintf(buf,"<guid-0x%04x>",LOWORD(riid));
|
||||
WINE_StringFromCLSID(riid,xbuf);
|
||||
TRACE(dsound, "(%p,%p,%p)\n", xbuf, buf, ppv);
|
||||
TRACE("(%p,%p,%p)\n", xbuf, buf, ppv);
|
||||
if (!memcmp(riid,&IID_IClassFactory,sizeof(IID_IClassFactory))) {
|
||||
*ppv = (LPVOID)&DSOUND_CF;
|
||||
IClassFactory_AddRef((IClassFactory*)*ppv);
|
||||
return S_OK;
|
||||
}
|
||||
FIXME(dsound, "(%p,%p,%p): no interface found.\n", xbuf, buf, ppv);
|
||||
FIXME("(%p,%p,%p): no interface found.\n", xbuf, buf, ppv);
|
||||
return E_NOINTERFACE;
|
||||
}
|
||||
|
||||
|
@ -2444,6 +2444,6 @@ DWORD WINAPI DSOUND_DllGetClassObject(REFCLSID rclsid,REFIID riid,LPVOID *ppv)
|
|||
*/
|
||||
DWORD WINAPI DSOUND_DllCanUnloadNow(void)
|
||||
{
|
||||
FIXME(dsound, "(void): stub\n");
|
||||
FIXME("(void): stub\n");
|
||||
return S_FALSE;
|
||||
}
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
#include "winuser.h"
|
||||
#include "winbase.h"
|
||||
#include "mmsystem.h"
|
||||
#include "debug.h"
|
||||
#include "debugtools.h"
|
||||
|
||||
DEFAULT_DEBUG_CHANNEL(mmsys)
|
||||
|
||||
|
@ -97,7 +97,7 @@ void joySendMessages(void)
|
|||
}
|
||||
if (joyCaptured == FALSE) return;
|
||||
|
||||
TRACE(mmsys, " --\n");
|
||||
TRACE(" --\n");
|
||||
|
||||
for (joy=0; joy < MAXJOYDRIVERS; joy++) {
|
||||
if (joyOpenDriver(joy) == FALSE) continue;
|
||||
|
@ -146,8 +146,8 @@ UINT16 WINAPI joyGetNumDevs16(void)
|
|||
joyCloseDriver(joy);
|
||||
joy_cnt++;
|
||||
}
|
||||
TRACE(mmsys, "returning %d\n", joy_cnt);
|
||||
if (!joy_cnt) ERR(mmsys, "No joystick found - "
|
||||
TRACE("returning %d\n", joy_cnt);
|
||||
if (!joy_cnt) ERR("No joystick found - "
|
||||
"perhaps get joystick-0.8.0.tar.gz and load"
|
||||
"it as module or use Linux >= 2.1.45 to be "
|
||||
"able to use joysticks.\n");
|
||||
|
@ -230,7 +230,7 @@ MMRESULT WINAPI joyGetDevCapsW(UINT wID, LPJOYCAPSW lpCaps,UINT wSize)
|
|||
*/
|
||||
MMRESULT16 WINAPI joyGetDevCaps16(UINT16 wID, LPJOYCAPS16 lpCaps, UINT16 wSize)
|
||||
{
|
||||
TRACE(mmsys, "(%04X, %p, %d);\n",
|
||||
TRACE("(%04X, %p, %d);\n",
|
||||
wID, lpCaps, wSize);
|
||||
if (joyOpenDriver(wID) == TRUE) {
|
||||
lpCaps->wMid = MM_MICROSOFT;
|
||||
|
@ -298,7 +298,7 @@ MMRESULT16 WINAPI joyGetPos16(UINT16 wID, LPJOYINFO16 lpInfo)
|
|||
{
|
||||
struct js_status js;
|
||||
|
||||
TRACE(mmsys, "(%04X, %p)\n", wID, lpInfo);
|
||||
TRACE("(%04X, %p)\n", wID, lpInfo);
|
||||
if (joyOpenDriver(wID) == FALSE) return MMSYSERR_NODRIVER;
|
||||
dev_stat = read(joy_dev[wID], &js, sizeof(js));
|
||||
if (dev_stat != sizeof(js)) {
|
||||
|
@ -312,7 +312,7 @@ MMRESULT16 WINAPI joyGetPos16(UINT16 wID, LPJOYINFO16 lpInfo)
|
|||
lpInfo->wYpos = js.y;
|
||||
lpInfo->wZpos = 0; /* FIXME: Don't know what to do with this value as joystick driver doesn't provide a Z value */
|
||||
lpInfo->wButtons = js.buttons;
|
||||
TRACE(mmsys, "x: %d, y: %d, buttons: %d\n", js.x, js.y, js.buttons);
|
||||
TRACE("x: %d, y: %d, buttons: %d\n", js.x, js.y, js.buttons);
|
||||
return JOYERR_NOERROR;
|
||||
}
|
||||
|
||||
|
@ -333,7 +333,7 @@ MMRESULT WINAPI joyGetThreshold(UINT wID, LPUINT lpThreshold)
|
|||
*/
|
||||
MMRESULT16 WINAPI joyGetThreshold16(UINT16 wID, LPUINT16 lpThreshold)
|
||||
{
|
||||
TRACE(mmsys, "(%04X, %p);\n", wID, lpThreshold);
|
||||
TRACE("(%04X, %p);\n", wID, lpThreshold);
|
||||
if (wID >= MAXJOYDRIVERS) return JOYERR_PARMS;
|
||||
*lpThreshold = joy_threshold[wID];
|
||||
return JOYERR_NOERROR;
|
||||
|
@ -352,7 +352,7 @@ MMRESULT WINAPI joyReleaseCapture(UINT wID)
|
|||
*/
|
||||
MMRESULT16 WINAPI joyReleaseCapture16(UINT16 wID)
|
||||
{
|
||||
TRACE(mmsys, "(%04X);\n", wID);
|
||||
TRACE("(%04X);\n", wID);
|
||||
joyCaptured = FALSE;
|
||||
joyCloseDriver(wID);
|
||||
joy_dev[wID] = -1;
|
||||
|
@ -374,7 +374,7 @@ MMRESULT WINAPI joySetCapture(HWND hWnd,UINT wID,UINT wPeriod,BOOL bChanged)
|
|||
MMRESULT16 WINAPI joySetCapture16(HWND16 hWnd,UINT16 wID,UINT16 wPeriod,BOOL16 bChanged)
|
||||
{
|
||||
|
||||
TRACE(mmsys, "(%04X, %04X, %d, %d);\n",
|
||||
TRACE("(%04X, %04X, %d, %d);\n",
|
||||
hWnd, wID, wPeriod, bChanged);
|
||||
|
||||
if (!CaptureWnd[wID]) {
|
||||
|
@ -399,7 +399,7 @@ MMRESULT WINAPI joySetThreshold(UINT wID, UINT wThreshold)
|
|||
*/
|
||||
MMRESULT16 WINAPI joySetThreshold16(UINT16 wID, UINT16 wThreshold)
|
||||
{
|
||||
TRACE(mmsys, "(%04X, %d);\n", wID, wThreshold);
|
||||
TRACE("(%04X, %d);\n", wID, wThreshold);
|
||||
|
||||
if (wID > 3) return JOYERR_PARMS;
|
||||
joy_threshold[wID] = wThreshold;
|
||||
|
@ -411,6 +411,6 @@ MMRESULT16 WINAPI joySetThreshold16(UINT16 wID, UINT16 wThreshold)
|
|||
*/
|
||||
MMRESULT16 WINAPI joySetCalibration16(UINT16 wID)
|
||||
{
|
||||
FIXME(mmsys, "(%04X): stub.\n", wID);
|
||||
FIXME("(%04X): stub.\n", wID);
|
||||
return JOYERR_NOCANDO;
|
||||
}
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
#include "driver.h"
|
||||
#include "mmsystem.h"
|
||||
#include "multimedia.h"
|
||||
#include "debug.h"
|
||||
#include "debugtools.h"
|
||||
|
||||
DEFAULT_DEBUG_CHANNEL(mcianim)
|
||||
|
||||
|
@ -101,7 +101,7 @@ static WINE_MCIANIM* ANIM_mciGetOpenDrv(UINT16 wDevID)
|
|||
WINE_MCIANIM* wma = ANIM_drvGetDrv(wDevID);
|
||||
|
||||
if (wma == NULL || wma->nUseCount == 0) {
|
||||
WARN(mcianim, "Invalid wDevID=%u\n", wDevID);
|
||||
WARN("Invalid wDevID=%u\n", wDevID);
|
||||
return 0;
|
||||
}
|
||||
return wma;
|
||||
|
@ -115,7 +115,7 @@ static DWORD ANIM_mciOpen(UINT16 wDevID, DWORD dwFlags, LPMCI_OPEN_PARMSA lpOpen
|
|||
DWORD dwDeviceID;
|
||||
WINE_MCIANIM* wma = ANIM_drvGetDrv(wDevID);
|
||||
|
||||
TRACE(mcianim,"(%04X, %08lX, %p);\n", wDevID, dwFlags, lpOpenParms);
|
||||
TRACE("(%04X, %08lX, %p);\n", wDevID, dwFlags, lpOpenParms);
|
||||
|
||||
if (lpOpenParms == NULL) return MCIERR_INTERNAL;
|
||||
if (wma == NULL) return MCIERR_INVALID_DEVICE_ID;
|
||||
|
@ -135,16 +135,16 @@ static DWORD ANIM_mciOpen(UINT16 wDevID, DWORD dwFlags, LPMCI_OPEN_PARMSA lpOpen
|
|||
|
||||
dwDeviceID = lpOpenParms->wDeviceID;
|
||||
|
||||
TRACE(mcianim,"wDevID=%04X\n", wDevID);
|
||||
TRACE("wDevID=%04X\n", wDevID);
|
||||
/* FIXME this is not consistent with other implementations */
|
||||
lpOpenParms->wDeviceID = wDevID;
|
||||
|
||||
/*TRACE(mcianim,"lpParms->wDevID=%04X\n", lpParms->wDeviceID);*/
|
||||
if (dwFlags & MCI_OPEN_ELEMENT) {
|
||||
TRACE(mcianim,"MCI_OPEN_ELEMENT '%s' !\n", lpOpenParms->lpstrElementName);
|
||||
TRACE("MCI_OPEN_ELEMENT '%s' !\n", lpOpenParms->lpstrElementName);
|
||||
if (lpOpenParms->lpstrElementName && strlen(lpOpenParms->lpstrElementName) > 0) {
|
||||
}
|
||||
FIXME(mcianim, "element is not opened\n");
|
||||
FIXME("element is not opened\n");
|
||||
}
|
||||
memcpy(&wma->openParms, lpOpenParms, sizeof(MCI_OPEN_PARMSA));
|
||||
wma->wNotifyDeviceID = dwDeviceID;
|
||||
|
@ -175,7 +175,7 @@ static DWORD ANIM_mciClose(UINT16 wDevID, DWORD dwParam, LPMCI_GENERIC_PARMS lpP
|
|||
{
|
||||
WINE_MCIANIM* wma = ANIM_mciGetOpenDrv(wDevID);
|
||||
|
||||
TRACE(mcianim,"(%u, %08lX, %p);\n", wDevID, dwParam, lpParms);
|
||||
TRACE("(%u, %08lX, %p);\n", wDevID, dwParam, lpParms);
|
||||
|
||||
if (wma == NULL) return MCIERR_INVALID_DEVICE_ID;
|
||||
|
||||
|
@ -194,13 +194,13 @@ static DWORD ANIM_mciGetDevCaps(UINT16 wDevID, DWORD dwFlags,
|
|||
{
|
||||
WINE_MCIANIM* wma = ANIM_mciGetOpenDrv(wDevID);
|
||||
|
||||
TRACE(mcianim,"(%u, %08lX, %p);\n", wDevID, dwFlags, lpParms);
|
||||
TRACE("(%u, %08lX, %p);\n", wDevID, dwFlags, lpParms);
|
||||
|
||||
if (lpParms == NULL) return MCIERR_NULL_PARAMETER_BLOCK;
|
||||
if (wma == NULL) return MCIERR_INVALID_DEVICE_ID;
|
||||
|
||||
if (dwFlags & MCI_GETDEVCAPS_ITEM) {
|
||||
TRACE(mcianim, "MCI_GETDEVCAPS_ITEM dwItem=%08lX;\n", lpParms->dwItem);
|
||||
TRACE("MCI_GETDEVCAPS_ITEM dwItem=%08lX;\n", lpParms->dwItem);
|
||||
switch(lpParms->dwItem) {
|
||||
case MCI_GETDEVCAPS_CAN_RECORD:
|
||||
lpParms->dwReturn = FALSE;
|
||||
|
@ -233,7 +233,7 @@ static DWORD ANIM_mciGetDevCaps(UINT16 wDevID, DWORD dwFlags,
|
|||
return MCIERR_UNRECOGNIZED_COMMAND;
|
||||
}
|
||||
}
|
||||
TRACE(mcianim, "lpParms->dwReturn=%08lX;\n", lpParms->dwReturn);
|
||||
TRACE("lpParms->dwReturn=%08lX;\n", lpParms->dwReturn);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@ -249,12 +249,12 @@ static DWORD ANIM_CalcTime(WINE_MCIANIM* wma, DWORD dwFormatType, DWORD dwFrame)
|
|||
UINT16 wSeconds;
|
||||
UINT16 wFrames;
|
||||
|
||||
TRACE(mcianim,"(%p, %08lX, %lu);\n", wma, dwFormatType, dwFrame);
|
||||
TRACE("(%p, %08lX, %lu);\n", wma, dwFormatType, dwFrame);
|
||||
|
||||
switch (dwFormatType) {
|
||||
case MCI_FORMAT_MILLISECONDS:
|
||||
dwTime = dwFrame / ANIMFRAMES_PERSEC * 1000;
|
||||
TRACE(mcianim, "MILLISECONDS %lu\n", dwTime);
|
||||
TRACE("MILLISECONDS %lu\n", dwTime);
|
||||
break;
|
||||
case MCI_FORMAT_MSF:
|
||||
wMinutes = dwFrame / ANIMFRAMES_PERMIN;
|
||||
|
@ -262,7 +262,7 @@ static DWORD ANIM_CalcTime(WINE_MCIANIM* wma, DWORD dwFormatType, DWORD dwFrame)
|
|||
wFrames = dwFrame - ANIMFRAMES_PERMIN * wMinutes -
|
||||
ANIMFRAMES_PERSEC * wSeconds;
|
||||
dwTime = MCI_MAKE_MSF(wMinutes, wSeconds, wFrames);
|
||||
TRACE(mcianim,"MSF %02u:%02u:%02u -> dwTime=%lu\n",
|
||||
TRACE("MSF %02u:%02u:%02u -> dwTime=%lu\n",
|
||||
wMinutes, wSeconds, wFrames, dwTime);
|
||||
break;
|
||||
default:
|
||||
|
@ -280,7 +280,7 @@ static DWORD ANIM_CalcTime(WINE_MCIANIM* wma, DWORD dwFormatType, DWORD dwFrame)
|
|||
wFrames = dwFrame - ANIMFRAMES_PERMIN * wMinutes -
|
||||
ANIMFRAMES_PERSEC * wSeconds;
|
||||
dwTime = MCI_MAKE_TMSF(wTrack, wMinutes, wSeconds, wFrames);
|
||||
TRACE(mcianim, "%02u-%02u:%02u:%02u\n",
|
||||
TRACE("%02u-%02u:%02u:%02u\n",
|
||||
wTrack, wMinutes, wSeconds, wFrames);
|
||||
break;
|
||||
}
|
||||
|
@ -296,15 +296,15 @@ static DWORD ANIM_CalcFrame(WINE_MCIANIM* wma, DWORD dwFormatType, DWORD dwTime)
|
|||
DWORD dwFrame = 0;
|
||||
UINT16 wTrack;
|
||||
|
||||
TRACE(mcianim,"(%p, %08lX, %lu);\n", wma, dwFormatType, dwTime);
|
||||
TRACE("(%p, %08lX, %lu);\n", wma, dwFormatType, dwTime);
|
||||
|
||||
switch (dwFormatType) {
|
||||
case MCI_FORMAT_MILLISECONDS:
|
||||
dwFrame = dwTime * ANIMFRAMES_PERSEC / 1000;
|
||||
TRACE(mcianim, "MILLISECONDS %lu\n", dwFrame);
|
||||
TRACE("MILLISECONDS %lu\n", dwFrame);
|
||||
break;
|
||||
case MCI_FORMAT_MSF:
|
||||
TRACE(mcianim, "MSF %02u:%02u:%02u\n",
|
||||
TRACE("MSF %02u:%02u:%02u\n",
|
||||
MCI_MSF_MINUTE(dwTime), MCI_MSF_SECOND(dwTime),
|
||||
MCI_MSF_FRAME(dwTime));
|
||||
dwFrame += ANIMFRAMES_PERMIN * MCI_MSF_MINUTE(dwTime);
|
||||
|
@ -316,10 +316,10 @@ static DWORD ANIM_CalcFrame(WINE_MCIANIM* wma, DWORD dwFormatType, DWORD dwTime)
|
|||
dwFormatType = MCI_FORMAT_TMSF;
|
||||
case MCI_FORMAT_TMSF:
|
||||
wTrack = MCI_TMSF_TRACK(dwTime);
|
||||
TRACE(mcianim, "TMSF %02u-%02u:%02u:%02u\n",
|
||||
TRACE("TMSF %02u-%02u:%02u:%02u\n",
|
||||
MCI_TMSF_TRACK(dwTime), MCI_TMSF_MINUTE(dwTime),
|
||||
MCI_TMSF_SECOND(dwTime), MCI_TMSF_FRAME(dwTime));
|
||||
TRACE(mcianim, "TMSF trackpos[%u]=%lu\n",
|
||||
TRACE("TMSF trackpos[%u]=%lu\n",
|
||||
wTrack, wma->lpdwTrackPos[wTrack - 1]);
|
||||
dwFrame = wma->lpdwTrackPos[wTrack - 1];
|
||||
dwFrame += ANIMFRAMES_PERMIN * MCI_TMSF_MINUTE(dwTime);
|
||||
|
@ -340,14 +340,14 @@ static DWORD ANIM_mciInfo(UINT16 wDevID, DWORD dwFlags, LPMCI_INFO_PARMS16 lpPar
|
|||
DWORD ret = 0;
|
||||
LPSTR str = 0;
|
||||
|
||||
TRACE(mcianim,"(%u, %08lX, %p);\n", wDevID, dwFlags, lpParms);
|
||||
TRACE("(%u, %08lX, %p);\n", wDevID, dwFlags, lpParms);
|
||||
|
||||
if (lpParms == NULL || lpParms->lpstrReturn == NULL) {
|
||||
ret = MCIERR_NULL_PARAMETER_BLOCK;
|
||||
} else if (wma == NULL) {
|
||||
ret = MCIERR_INVALID_DEVICE_ID;
|
||||
} else {
|
||||
TRACE(mcianim, "buf=%p, len=%lu\n", lpParms->lpstrReturn, lpParms->dwRetSize);
|
||||
TRACE("buf=%p, len=%lu\n", lpParms->lpstrReturn, lpParms->dwRetSize);
|
||||
|
||||
switch(dwFlags) {
|
||||
case MCI_INFO_PRODUCT:
|
||||
|
@ -360,7 +360,7 @@ static DWORD ANIM_mciInfo(UINT16 wDevID, DWORD dwFlags, LPMCI_INFO_PARMS16 lpPar
|
|||
str = "Animation Window";
|
||||
break;
|
||||
default:
|
||||
WARN(mcianim, "Don't know this info command (%lu)\n", dwFlags);
|
||||
WARN("Don't know this info command (%lu)\n", dwFlags);
|
||||
ret = MCIERR_UNRECOGNIZED_COMMAND;
|
||||
}
|
||||
}
|
||||
|
@ -380,13 +380,13 @@ static DWORD ANIM_mciStatus(UINT16 wDevID, DWORD dwFlags, LPMCI_STATUS_PARMS lpP
|
|||
{
|
||||
WINE_MCIANIM* wma = ANIM_mciGetOpenDrv(wDevID);
|
||||
|
||||
TRACE(mcianim,"(%u, %08lX, %p);\n", wDevID, dwFlags, lpParms);
|
||||
TRACE("(%u, %08lX, %p);\n", wDevID, dwFlags, lpParms);
|
||||
|
||||
if (lpParms == NULL) return MCIERR_INTERNAL;
|
||||
if (wma == NULL) return MCIERR_INVALID_DEVICE_ID;
|
||||
|
||||
if (dwFlags & MCI_NOTIFY) {
|
||||
TRACE(mcianim, "MCI_NOTIFY_SUCCESSFUL %08lX !\n",
|
||||
TRACE("MCI_NOTIFY_SUCCESSFUL %08lX !\n",
|
||||
lpParms->dwCallback);
|
||||
mciDriverNotify16((HWND16)LOWORD(lpParms->dwCallback),
|
||||
wma->wNotifyDeviceID, MCI_NOTIFY_SUCCESSFUL);
|
||||
|
@ -395,11 +395,11 @@ static DWORD ANIM_mciStatus(UINT16 wDevID, DWORD dwFlags, LPMCI_STATUS_PARMS lpP
|
|||
switch(lpParms->dwItem) {
|
||||
case MCI_STATUS_CURRENT_TRACK:
|
||||
lpParms->dwReturn = wma->nCurTrack;
|
||||
TRACE(mcianim,"CURRENT_TRACK=%lu!\n", lpParms->dwReturn);
|
||||
TRACE("CURRENT_TRACK=%lu!\n", lpParms->dwReturn);
|
||||
return 0;
|
||||
case MCI_STATUS_LENGTH:
|
||||
if (dwFlags & MCI_TRACK) {
|
||||
TRACE(mcianim,"MCI_TRACK #%lu LENGTH=??? !\n",
|
||||
TRACE("MCI_TRACK #%lu LENGTH=??? !\n",
|
||||
lpParms->dwTrack);
|
||||
if (lpParms->dwTrack > wma->nTracks)
|
||||
return MCIERR_OUTOFRANGE;
|
||||
|
@ -408,20 +408,20 @@ static DWORD ANIM_mciStatus(UINT16 wDevID, DWORD dwFlags, LPMCI_STATUS_PARMS lpP
|
|||
else
|
||||
lpParms->dwReturn = wma->dwTotalLen;
|
||||
lpParms->dwReturn = ANIM_CalcTime(wma, wma->dwTimeFormat, lpParms->dwReturn);
|
||||
TRACE(mcianim,"LENGTH=%lu !\n", lpParms->dwReturn);
|
||||
TRACE("LENGTH=%lu !\n", lpParms->dwReturn);
|
||||
return 0;
|
||||
case MCI_STATUS_MODE:
|
||||
lpParms->dwReturn = wma->mode;
|
||||
TRACE(mcianim,"MCI_STATUS_MODE=%08lX !\n",
|
||||
TRACE("MCI_STATUS_MODE=%08lX !\n",
|
||||
lpParms->dwReturn);
|
||||
return 0;
|
||||
case MCI_STATUS_MEDIA_PRESENT:
|
||||
lpParms->dwReturn = TRUE;
|
||||
TRACE(mcianim,"MCI_STATUS_MEDIA_PRESENT !\n");
|
||||
TRACE("MCI_STATUS_MEDIA_PRESENT !\n");
|
||||
return 0;
|
||||
case MCI_STATUS_NUMBER_OF_TRACKS:
|
||||
lpParms->dwReturn = 1;
|
||||
TRACE(mcianim,"MCI_STATUS_NUMBER_OF_TRACKS = %lu !\n",
|
||||
TRACE("MCI_STATUS_NUMBER_OF_TRACKS = %lu !\n",
|
||||
lpParms->dwReturn);
|
||||
if (lpParms->dwReturn == (WORD)-1) return MCIERR_INTERNAL;
|
||||
return 0;
|
||||
|
@ -429,32 +429,32 @@ static DWORD ANIM_mciStatus(UINT16 wDevID, DWORD dwFlags, LPMCI_STATUS_PARMS lpP
|
|||
lpParms->dwReturn = wma->dwCurFrame;
|
||||
if (dwFlags & MCI_STATUS_START) {
|
||||
lpParms->dwReturn = 0;
|
||||
TRACE(mcianim,"get MCI_STATUS_START !\n");
|
||||
TRACE("get MCI_STATUS_START !\n");
|
||||
}
|
||||
if (dwFlags & MCI_TRACK) {
|
||||
if (lpParms->dwTrack > wma->nTracks)
|
||||
return MCIERR_OUTOFRANGE;
|
||||
lpParms->dwReturn = wma->lpdwTrackPos[lpParms->dwTrack - 1];
|
||||
TRACE(mcianim,"get MCI_TRACK #%lu !\n", lpParms->dwTrack);
|
||||
TRACE("get MCI_TRACK #%lu !\n", lpParms->dwTrack);
|
||||
}
|
||||
lpParms->dwReturn = ANIM_CalcTime(wma, wma->dwTimeFormat, lpParms->dwReturn);
|
||||
TRACE(mcianim,"MCI_STATUS_POSITION=%08lX !\n",
|
||||
TRACE("MCI_STATUS_POSITION=%08lX !\n",
|
||||
lpParms->dwReturn);
|
||||
return 0;
|
||||
case MCI_STATUS_READY:
|
||||
TRACE(mcianim,"MCI_STATUS_READY !\n");
|
||||
TRACE("MCI_STATUS_READY !\n");
|
||||
lpParms->dwReturn = TRUE;
|
||||
return 0;
|
||||
case MCI_STATUS_TIME_FORMAT:
|
||||
TRACE(mcianim,"MCI_STATUS_TIME_FORMAT !\n");
|
||||
TRACE("MCI_STATUS_TIME_FORMAT !\n");
|
||||
lpParms->dwReturn = MCI_FORMAT_MILLISECONDS;
|
||||
return 0;
|
||||
default:
|
||||
WARN(mcianim,"Unknown command %08lX !\n", lpParms->dwItem);
|
||||
WARN("Unknown command %08lX !\n", lpParms->dwItem);
|
||||
return MCIERR_UNRECOGNIZED_COMMAND;
|
||||
}
|
||||
}
|
||||
WARN(mcianim,"Not MCI_STATUS_ITEM !\n");
|
||||
WARN("Not MCI_STATUS_ITEM !\n");
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@ -467,7 +467,7 @@ static DWORD ANIM_mciPlay(UINT16 wDevID, DWORD dwFlags, LPMCI_PLAY_PARMS lpParms
|
|||
WINE_MCIANIM* wma = ANIM_mciGetOpenDrv(wDevID);
|
||||
int start, end;
|
||||
|
||||
TRACE(mcianim,"(%u, %08lX, %p);\n", wDevID, dwFlags, lpParms);
|
||||
TRACE("(%u, %08lX, %p);\n", wDevID, dwFlags, lpParms);
|
||||
|
||||
if (lpParms == NULL) return MCIERR_INTERNAL;
|
||||
if (wma == NULL) return MCIERR_INVALID_DEVICE_ID;
|
||||
|
@ -476,15 +476,15 @@ static DWORD ANIM_mciPlay(UINT16 wDevID, DWORD dwFlags, LPMCI_PLAY_PARMS lpParms
|
|||
wma->nCurTrack = 1;
|
||||
if (dwFlags & MCI_FROM) {
|
||||
start = ANIM_CalcFrame(wma, wma->dwTimeFormat, lpParms->dwFrom);
|
||||
TRACE(mcianim,"MCI_FROM=%08lX -> %u \n", lpParms->dwFrom, start);
|
||||
TRACE("MCI_FROM=%08lX -> %u \n", lpParms->dwFrom, start);
|
||||
}
|
||||
if (dwFlags & MCI_TO) {
|
||||
end = ANIM_CalcFrame(wma, wma->dwTimeFormat, lpParms->dwTo);
|
||||
TRACE(mcianim, "MCI_TO=%08lX -> %u \n", lpParms->dwTo, end);
|
||||
TRACE("MCI_TO=%08lX -> %u \n", lpParms->dwTo, end);
|
||||
}
|
||||
wma->mode = MCI_MODE_PLAY;
|
||||
if (dwFlags & MCI_NOTIFY) {
|
||||
TRACE(mcianim, "MCI_NOTIFY_SUCCESSFUL %08lX !\n",
|
||||
TRACE("MCI_NOTIFY_SUCCESSFUL %08lX !\n",
|
||||
lpParms->dwCallback);
|
||||
mciDriverNotify16((HWND16)LOWORD(lpParms->dwCallback),
|
||||
wma->wNotifyDeviceID, MCI_NOTIFY_SUCCESSFUL);
|
||||
|
@ -499,14 +499,14 @@ static DWORD ANIM_mciStop(UINT16 wDevID, DWORD dwFlags, LPMCI_GENERIC_PARMS lpPa
|
|||
{
|
||||
WINE_MCIANIM* wma = ANIM_mciGetOpenDrv(wDevID);
|
||||
|
||||
TRACE(mcianim,"(%u, %08lX, %p);\n", wDevID, dwFlags, lpParms);
|
||||
TRACE("(%u, %08lX, %p);\n", wDevID, dwFlags, lpParms);
|
||||
|
||||
if (lpParms == NULL) return MCIERR_INTERNAL;
|
||||
if (wma == NULL) return MCIERR_INVALID_DEVICE_ID;
|
||||
|
||||
wma->mode = MCI_MODE_STOP;
|
||||
if (dwFlags & MCI_NOTIFY) {
|
||||
TRACE(mcianim, "MCI_NOTIFY_SUCCESSFUL %08lX !\n",
|
||||
TRACE("MCI_NOTIFY_SUCCESSFUL %08lX !\n",
|
||||
lpParms->dwCallback);
|
||||
mciDriverNotify16((HWND16)LOWORD(lpParms->dwCallback),
|
||||
wma->wNotifyDeviceID, MCI_NOTIFY_SUCCESSFUL);
|
||||
|
@ -521,11 +521,11 @@ static DWORD ANIM_mciPause(UINT16 wDevID, DWORD dwFlags, LPMCI_GENERIC_PARMS lpP
|
|||
{
|
||||
WINE_MCIANIM* wma = ANIM_mciGetOpenDrv(wDevID);
|
||||
|
||||
TRACE(mcianim,"(%u, %08lX, %p);\n", wDevID, dwFlags, lpParms);
|
||||
TRACE("(%u, %08lX, %p);\n", wDevID, dwFlags, lpParms);
|
||||
if (lpParms == NULL) return MCIERR_INTERNAL;
|
||||
wma->mode = MCI_MODE_PAUSE;
|
||||
if (dwFlags & MCI_NOTIFY) {
|
||||
TRACE(mcianim, "MCI_NOTIFY_SUCCESSFUL %08lX !\n",
|
||||
TRACE("MCI_NOTIFY_SUCCESSFUL %08lX !\n",
|
||||
lpParms->dwCallback);
|
||||
mciDriverNotify16((HWND16)LOWORD(lpParms->dwCallback),
|
||||
wma->wNotifyDeviceID, MCI_NOTIFY_SUCCESSFUL);
|
||||
|
@ -540,11 +540,11 @@ static DWORD ANIM_mciResume(UINT16 wDevID, DWORD dwFlags, LPMCI_GENERIC_PARMS lp
|
|||
{
|
||||
WINE_MCIANIM* wma = ANIM_mciGetOpenDrv(wDevID);
|
||||
|
||||
TRACE(mcianim,"(%u, %08lX, %p);\n", wDevID, dwFlags, lpParms);
|
||||
TRACE("(%u, %08lX, %p);\n", wDevID, dwFlags, lpParms);
|
||||
if (lpParms == NULL) return MCIERR_INTERNAL;
|
||||
wma->mode = MCI_MODE_STOP;
|
||||
if (dwFlags & MCI_NOTIFY) {
|
||||
TRACE(mcianim, "MCI_NOTIFY_SUCCESSFUL %08lX !\n",
|
||||
TRACE("MCI_NOTIFY_SUCCESSFUL %08lX !\n",
|
||||
lpParms->dwCallback);
|
||||
mciDriverNotify16((HWND16)LOWORD(lpParms->dwCallback),
|
||||
wma->wNotifyDeviceID, MCI_NOTIFY_SUCCESSFUL);
|
||||
|
@ -561,7 +561,7 @@ static DWORD ANIM_mciSeek(UINT16 wDevID, DWORD dwFlags, LPMCI_SEEK_PARMS lpParms
|
|||
DWORD dwRet;
|
||||
MCI_PLAY_PARMS PlayParms;
|
||||
|
||||
TRACE(mcianim,"(%u, %08lX, %p);\n", wDevID, dwFlags, lpParms);
|
||||
TRACE("(%u, %08lX, %p);\n", wDevID, dwFlags, lpParms);
|
||||
|
||||
if (lpParms == NULL) return MCIERR_INTERNAL;
|
||||
wma->mode = MCI_MODE_SEEK;
|
||||
|
@ -580,7 +580,7 @@ static DWORD ANIM_mciSeek(UINT16 wDevID, DWORD dwFlags, LPMCI_SEEK_PARMS lpParms
|
|||
if (dwRet != 0) return dwRet;
|
||||
dwRet = ANIM_mciStop(wDevID, MCI_WAIT, (LPMCI_GENERIC_PARMS)&PlayParms);
|
||||
if (dwFlags & MCI_NOTIFY) {
|
||||
TRACE(mcianim, "MCI_NOTIFY_SUCCESSFUL %08lX !\n",
|
||||
TRACE("MCI_NOTIFY_SUCCESSFUL %08lX !\n",
|
||||
lpParms->dwCallback);
|
||||
mciDriverNotify16((HWND16)LOWORD(lpParms->dwCallback),
|
||||
wma->wNotifyDeviceID, MCI_NOTIFY_SUCCESSFUL);
|
||||
|
@ -596,7 +596,7 @@ static DWORD ANIM_mciSet(UINT16 wDevID, DWORD dwFlags, LPMCI_SET_PARMS lpParms)
|
|||
{
|
||||
WINE_MCIANIM* wma = ANIM_mciGetOpenDrv(wDevID);
|
||||
|
||||
TRACE(mcianim,"(%u, %08lX, %p);\n", wDevID, dwFlags, lpParms);
|
||||
TRACE("(%u, %08lX, %p);\n", wDevID, dwFlags, lpParms);
|
||||
if (lpParms == NULL) return MCIERR_INTERNAL;
|
||||
if (wma == NULL) return MCIERR_INVALID_DEVICE_ID;
|
||||
/*
|
||||
|
@ -606,16 +606,16 @@ static DWORD ANIM_mciSet(UINT16 wDevID, DWORD dwFlags, LPMCI_SET_PARMS lpParms)
|
|||
if (dwFlags & MCI_SET_TIME_FORMAT) {
|
||||
switch (lpParms->dwTimeFormat) {
|
||||
case MCI_FORMAT_MILLISECONDS:
|
||||
TRACE(mcianim, "MCI_FORMAT_MILLISECONDS !\n");
|
||||
TRACE("MCI_FORMAT_MILLISECONDS !\n");
|
||||
break;
|
||||
case MCI_FORMAT_MSF:
|
||||
TRACE(mcianim,"MCI_FORMAT_MSF !\n");
|
||||
TRACE("MCI_FORMAT_MSF !\n");
|
||||
break;
|
||||
case MCI_FORMAT_TMSF:
|
||||
TRACE(mcianim,"MCI_FORMAT_TMSF !\n");
|
||||
TRACE("MCI_FORMAT_TMSF !\n");
|
||||
break;
|
||||
default:
|
||||
WARN(mcianim,"Bad time format !\n");
|
||||
WARN("Bad time format !\n");
|
||||
return MCIERR_BAD_TIME_FORMAT;
|
||||
}
|
||||
wma->dwTimeFormat = lpParms->dwTimeFormat;
|
||||
|
@ -624,7 +624,7 @@ static DWORD ANIM_mciSet(UINT16 wDevID, DWORD dwFlags, LPMCI_SET_PARMS lpParms)
|
|||
if (dwFlags & MCI_SET_ON) return MCIERR_UNSUPPORTED_FUNCTION;
|
||||
if (dwFlags & MCI_SET_OFF) return MCIERR_UNSUPPORTED_FUNCTION;
|
||||
if (dwFlags & MCI_NOTIFY) {
|
||||
TRACE(mcianim, "MCI_NOTIFY_SUCCESSFUL %08lX !\n",
|
||||
TRACE("MCI_NOTIFY_SUCCESSFUL %08lX !\n",
|
||||
lpParms->dwCallback);
|
||||
mciDriverNotify16((HWND16)LOWORD(lpParms->dwCallback),
|
||||
wma->wNotifyDeviceID, MCI_NOTIFY_SUCCESSFUL);
|
||||
|
@ -677,14 +677,14 @@ LONG MCIANIM_DriverProc(DWORD dwDevID, HDRVR hDriv, DWORD wMsg,
|
|||
case MCI_CUT:
|
||||
case MCI_DELETE:
|
||||
case MCI_PASTE:
|
||||
WARN(mcianim, "Unsupported command=%s\n", MCI_CommandToString(wMsg));
|
||||
WARN("Unsupported command=%s\n", MCI_CommandToString(wMsg));
|
||||
break;
|
||||
case MCI_OPEN:
|
||||
case MCI_CLOSE:
|
||||
FIXME(mcianim, "Shouldn't receive a MCI_OPEN or CLOSE message\n");
|
||||
FIXME("Shouldn't receive a MCI_OPEN or CLOSE message\n");
|
||||
break;
|
||||
default:
|
||||
TRACE(mcianim, "Sending msg=%s to default driver proc\n", MCI_CommandToString(wMsg));
|
||||
TRACE("Sending msg=%s to default driver proc\n", MCI_CommandToString(wMsg));
|
||||
return DefDriverProc(dwDevID, hDriv, wMsg, dwParam1, dwParam2);
|
||||
}
|
||||
return MCIERR_UNRECOGNIZED_COMMAND;
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
#include "driver.h"
|
||||
#include "multimedia.h"
|
||||
#include "cdrom.h"
|
||||
#include "debug.h"
|
||||
#include "debugtools.h"
|
||||
|
||||
DEFAULT_DEBUG_CHANNEL(cdaudio)
|
||||
|
||||
|
@ -87,7 +87,7 @@ static WINE_MCICDAUDIO* CDAUDIO_mciGetOpenDrv(UINT16 wDevID)
|
|||
WINE_MCICDAUDIO* wmcda = CDAUDIO_drvGetDrv(wDevID);
|
||||
|
||||
if (wmcda == NULL || wmcda->nUseCount == 0 || wmcda->wcda.unixdev <= 0) {
|
||||
WARN(cdaudio, "Invalid wDevID=%u\n", wDevID);
|
||||
WARN("Invalid wDevID=%u\n", wDevID);
|
||||
return 0;
|
||||
}
|
||||
return wmcda;
|
||||
|
@ -106,7 +106,7 @@ static int CDAUDIO_mciMode(int wcdaMode)
|
|||
case WINE_CDA_STOP: return MCI_MODE_STOP;
|
||||
case WINE_CDA_PAUSE: return MCI_MODE_PAUSE;
|
||||
default:
|
||||
FIXME(cdaudio, "Unknown mode %04x\n", wcdaMode);
|
||||
FIXME("Unknown mode %04x\n", wcdaMode);
|
||||
}
|
||||
return MCI_MODE_STOP;
|
||||
}
|
||||
|
@ -124,7 +124,7 @@ static int CDAUDIO_mciGetError(WINE_MCICDAUDIO* wmcda)
|
|||
case WINE_CDA_STOP:
|
||||
case WINE_CDA_PAUSE: break;
|
||||
default:
|
||||
FIXME(cdaudio, "Unknown mode %04x\n", wmcda->wcda.cdaMode);
|
||||
FIXME("Unknown mode %04x\n", wmcda->wcda.cdaMode);
|
||||
}
|
||||
return MCIERR_DRIVER_INTERNAL;
|
||||
}
|
||||
|
@ -137,15 +137,15 @@ static DWORD CDAUDIO_CalcFrame(WINE_MCICDAUDIO* wmcda, DWORD dwTime)
|
|||
DWORD dwFrame = 0;
|
||||
UINT16 wTrack;
|
||||
|
||||
TRACE(cdaudio,"(%p, %08lX, %lu);\n", wmcda, wmcda->dwTimeFormat, dwTime);
|
||||
TRACE("(%p, %08lX, %lu);\n", wmcda, wmcda->dwTimeFormat, dwTime);
|
||||
|
||||
switch (wmcda->dwTimeFormat) {
|
||||
case MCI_FORMAT_MILLISECONDS:
|
||||
dwFrame = (dwTime * CDFRAMES_PERSEC) / 1000;
|
||||
TRACE(cdaudio, "MILLISECONDS %lu\n", dwFrame);
|
||||
TRACE("MILLISECONDS %lu\n", dwFrame);
|
||||
break;
|
||||
case MCI_FORMAT_MSF:
|
||||
TRACE(cdaudio, "MSF %02u:%02u:%02u\n",
|
||||
TRACE("MSF %02u:%02u:%02u\n",
|
||||
MCI_MSF_MINUTE(dwTime), MCI_MSF_SECOND(dwTime), MCI_MSF_FRAME(dwTime));
|
||||
dwFrame += CDFRAMES_PERMIN * MCI_MSF_MINUTE(dwTime);
|
||||
dwFrame += CDFRAMES_PERSEC * MCI_MSF_SECOND(dwTime);
|
||||
|
@ -155,10 +155,10 @@ static DWORD CDAUDIO_CalcFrame(WINE_MCICDAUDIO* wmcda, DWORD dwTime)
|
|||
default:
|
||||
/* unknown format ! force TMSF ! ... */
|
||||
wTrack = MCI_TMSF_TRACK(dwTime);
|
||||
TRACE(cdaudio, "MSF %02u-%02u:%02u:%02u\n",
|
||||
TRACE("MSF %02u-%02u:%02u:%02u\n",
|
||||
MCI_TMSF_TRACK(dwTime), MCI_TMSF_MINUTE(dwTime),
|
||||
MCI_TMSF_SECOND(dwTime), MCI_TMSF_FRAME(dwTime));
|
||||
TRACE(cdaudio, "TMSF trackpos[%u]=%lu\n",
|
||||
TRACE("TMSF trackpos[%u]=%lu\n",
|
||||
wTrack, wmcda->wcda.lpdwTrackPos[wTrack - 1]);
|
||||
dwFrame = wmcda->wcda.lpdwTrackPos[wTrack - 1];
|
||||
dwFrame += CDFRAMES_PERMIN * MCI_TMSF_MINUTE(dwTime);
|
||||
|
@ -180,19 +180,19 @@ static DWORD CDAUDIO_CalcTime(WINE_MCICDAUDIO* wmcda, DWORD dwFrame)
|
|||
UINT16 wSeconds;
|
||||
UINT16 wFrames;
|
||||
|
||||
TRACE(cdaudio,"(%p, %08lX, %lu);\n", wmcda, wmcda->dwTimeFormat, dwFrame);
|
||||
TRACE("(%p, %08lX, %lu);\n", wmcda, wmcda->dwTimeFormat, dwFrame);
|
||||
|
||||
switch (wmcda->dwTimeFormat) {
|
||||
case MCI_FORMAT_MILLISECONDS:
|
||||
dwTime = (dwFrame * 1000) / CDFRAMES_PERSEC;
|
||||
TRACE(cdaudio, "MILLISECONDS %lu\n", dwTime);
|
||||
TRACE("MILLISECONDS %lu\n", dwTime);
|
||||
break;
|
||||
case MCI_FORMAT_MSF:
|
||||
wMinutes = dwFrame / CDFRAMES_PERMIN;
|
||||
wSeconds = (dwFrame - CDFRAMES_PERMIN * wMinutes) / CDFRAMES_PERSEC;
|
||||
wFrames = dwFrame - CDFRAMES_PERMIN * wMinutes - CDFRAMES_PERSEC * wSeconds;
|
||||
dwTime = MCI_MAKE_MSF(wMinutes, wSeconds, wFrames);
|
||||
TRACE(cdaudio,"MSF %02u:%02u:%02u -> dwTime=%lu\n",wMinutes, wSeconds, wFrames, dwTime);
|
||||
TRACE("MSF %02u:%02u:%02u -> dwTime=%lu\n",wMinutes, wSeconds, wFrames, dwTime);
|
||||
break;
|
||||
case MCI_FORMAT_TMSF:
|
||||
default:
|
||||
|
@ -207,7 +207,7 @@ static DWORD CDAUDIO_CalcTime(WINE_MCICDAUDIO* wmcda, DWORD dwFrame)
|
|||
wSeconds = (dwFrame - CDFRAMES_PERMIN * wMinutes) / CDFRAMES_PERSEC;
|
||||
wFrames = dwFrame - CDFRAMES_PERMIN * wMinutes - CDFRAMES_PERSEC * wSeconds;
|
||||
dwTime = MCI_MAKE_TMSF(wTrack, wMinutes, wSeconds, wFrames);
|
||||
TRACE(cdaudio, "%02u-%02u:%02u:%02u\n", wTrack, wMinutes, wSeconds, wFrames);
|
||||
TRACE("%02u-%02u:%02u:%02u\n", wTrack, wMinutes, wSeconds, wFrames);
|
||||
break;
|
||||
}
|
||||
return dwTime;
|
||||
|
@ -225,7 +225,7 @@ static DWORD CDAUDIO_mciOpen(UINT16 wDevID, DWORD dwFlags, LPMCI_OPEN_PARMSA lpO
|
|||
WINE_MCICDAUDIO* wmcda = CDAUDIO_drvGetDrv(wDevID);
|
||||
MCI_SEEK_PARMS seekParms;
|
||||
|
||||
TRACE(cdaudio,"(%04X, %08lX, %p);\n", wDevID, dwFlags, lpOpenParms);
|
||||
TRACE("(%04X, %08lX, %p);\n", wDevID, dwFlags, lpOpenParms);
|
||||
|
||||
if (lpOpenParms == NULL) return MCIERR_NULL_PARAMETER_BLOCK;
|
||||
if (wmcda == NULL) return MCIERR_INVALID_DEVICE_ID;
|
||||
|
@ -245,7 +245,7 @@ static DWORD CDAUDIO_mciOpen(UINT16 wDevID, DWORD dwFlags, LPMCI_OPEN_PARMSA lpO
|
|||
wmcda->fShareable = dwFlags & MCI_OPEN_SHAREABLE;
|
||||
}
|
||||
if (dwFlags & MCI_OPEN_ELEMENT) {
|
||||
TRACE(cdaudio,"MCI_OPEN_ELEMENT !\n");
|
||||
TRACE("MCI_OPEN_ELEMENT !\n");
|
||||
/* return MCIERR_NO_ELEMENT_ALLOWED; */
|
||||
}
|
||||
|
||||
|
@ -264,7 +264,7 @@ static DWORD CDAUDIO_mciOpen(UINT16 wDevID, DWORD dwFlags, LPMCI_OPEN_PARMSA lpO
|
|||
wmcda->mciMode = MCI_MODE_STOP;
|
||||
wmcda->dwTimeFormat = MCI_FORMAT_TMSF;
|
||||
if (!CDAUDIO_GetTracksInfo(&wmcda->wcda)) {
|
||||
WARN(cdaudio,"error reading TracksInfo !\n");
|
||||
WARN("error reading TracksInfo !\n");
|
||||
/* return MCIERR_INTERNAL; */
|
||||
}
|
||||
|
||||
|
@ -280,7 +280,7 @@ static DWORD CDAUDIO_mciClose(UINT16 wDevID, DWORD dwParam, LPMCI_GENERIC_PARMS
|
|||
{
|
||||
WINE_MCICDAUDIO* wmcda = CDAUDIO_mciGetOpenDrv(wDevID);
|
||||
|
||||
TRACE(cdaudio,"(%04X, %08lX, %p);\n", wDevID, dwParam, lpParms);
|
||||
TRACE("(%04X, %08lX, %p);\n", wDevID, dwParam, lpParms);
|
||||
|
||||
if (wmcda == NULL) return MCIERR_INVALID_DEVICE_ID;
|
||||
|
||||
|
@ -300,12 +300,12 @@ static DWORD CDAUDIO_mciClose(UINT16 wDevID, DWORD dwParam, LPMCI_GENERIC_PARMS
|
|||
static DWORD CDAUDIO_mciGetDevCaps(UINT16 wDevID, DWORD dwFlags,
|
||||
LPMCI_GETDEVCAPS_PARMS lpParms)
|
||||
{
|
||||
TRACE(cdaudio,"(%04X, %08lX, %p);\n", wDevID, dwFlags, lpParms);
|
||||
TRACE("(%04X, %08lX, %p);\n", wDevID, dwFlags, lpParms);
|
||||
|
||||
if (lpParms == NULL) return MCIERR_NULL_PARAMETER_BLOCK;
|
||||
|
||||
if (dwFlags & MCI_GETDEVCAPS_ITEM) {
|
||||
TRACE(cdaudio, "MCI_GETDEVCAPS_ITEM dwItem=%08lX;\n", lpParms->dwItem);
|
||||
TRACE("MCI_GETDEVCAPS_ITEM dwItem=%08lX;\n", lpParms->dwItem);
|
||||
|
||||
switch(lpParms->dwItem) {
|
||||
case MCI_GETDEVCAPS_CAN_RECORD:
|
||||
|
@ -339,7 +339,7 @@ static DWORD CDAUDIO_mciGetDevCaps(UINT16 wDevID, DWORD dwFlags,
|
|||
return MCIERR_UNRECOGNIZED_COMMAND;
|
||||
}
|
||||
}
|
||||
TRACE(cdaudio, "lpParms->dwReturn=%08lX;\n", lpParms->dwReturn);
|
||||
TRACE("lpParms->dwReturn=%08lX;\n", lpParms->dwReturn);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@ -352,21 +352,21 @@ static DWORD CDAUDIO_mciInfo(UINT16 wDevID, DWORD dwFlags, LPMCI_INFO_PARMS16 lp
|
|||
LPSTR str = 0;
|
||||
WINE_MCICDAUDIO* wmcda = CDAUDIO_mciGetOpenDrv(wDevID);
|
||||
|
||||
TRACE(cdaudio,"(%04X, %08lX, %p);\n", wDevID, dwFlags, lpParms);
|
||||
TRACE("(%04X, %08lX, %p);\n", wDevID, dwFlags, lpParms);
|
||||
|
||||
if (lpParms == NULL || lpParms->lpstrReturn == NULL) {
|
||||
ret = MCIERR_NULL_PARAMETER_BLOCK;
|
||||
} else if (wmcda == NULL) {
|
||||
ret = MCIERR_INVALID_DEVICE_ID;
|
||||
} else {
|
||||
TRACE(cdaudio, "buf=%p, len=%lu\n", lpParms->lpstrReturn, lpParms->dwRetSize);
|
||||
TRACE("buf=%p, len=%lu\n", lpParms->lpstrReturn, lpParms->dwRetSize);
|
||||
|
||||
switch(dwFlags) {
|
||||
case MCI_INFO_PRODUCT:
|
||||
str = "Wine's audio CD";
|
||||
break;
|
||||
default:
|
||||
WARN(cdaudio, "Don't know this info command (%lu)\n", dwFlags);
|
||||
WARN("Don't know this info command (%lu)\n", dwFlags);
|
||||
ret = MCIERR_UNRECOGNIZED_COMMAND;
|
||||
}
|
||||
}
|
||||
|
@ -387,7 +387,7 @@ static DWORD CDAUDIO_mciStatus(UINT16 wDevID, DWORD dwFlags, LPMCI_STATUS_PARMS
|
|||
WINE_MCICDAUDIO* wmcda = CDAUDIO_mciGetOpenDrv(wDevID);
|
||||
DWORD ret = 0;
|
||||
|
||||
TRACE(cdaudio,"(%04X, %08lX, %p);\n", wDevID, dwFlags, lpParms);
|
||||
TRACE("(%04X, %08lX, %p);\n", wDevID, dwFlags, lpParms);
|
||||
|
||||
if (lpParms == NULL) {
|
||||
ret = MCIERR_NULL_PARAMETER_BLOCK;
|
||||
|
@ -395,7 +395,7 @@ static DWORD CDAUDIO_mciStatus(UINT16 wDevID, DWORD dwFlags, LPMCI_STATUS_PARMS
|
|||
ret = MCIERR_INVALID_DEVICE_ID;
|
||||
} else {
|
||||
if (dwFlags & MCI_NOTIFY) {
|
||||
TRACE(cdaudio, "MCI_NOTIFY_SUCCESSFUL %08lX !\n", lpParms->dwCallback);
|
||||
TRACE("MCI_NOTIFY_SUCCESSFUL %08lX !\n", lpParms->dwCallback);
|
||||
mciDriverNotify16((HWND16)LOWORD(lpParms->dwCallback),
|
||||
wmcda->wNotifyDeviceID, MCI_NOTIFY_SUCCESSFUL);
|
||||
}
|
||||
|
@ -406,17 +406,17 @@ static DWORD CDAUDIO_mciStatus(UINT16 wDevID, DWORD dwFlags, LPMCI_STATUS_PARMS
|
|||
return CDAUDIO_mciGetError(wmcda);
|
||||
}
|
||||
lpParms->dwReturn = wmcda->wcda.nCurTrack;
|
||||
TRACE(cdaudio,"CURRENT_TRACK=%lu!\n", lpParms->dwReturn);
|
||||
TRACE("CURRENT_TRACK=%lu!\n", lpParms->dwReturn);
|
||||
return 0;
|
||||
case MCI_STATUS_LENGTH:
|
||||
if (wmcda->wcda.nTracks == 0) {
|
||||
if (!CDAUDIO_GetTracksInfo(&wmcda->wcda)) {
|
||||
WARN(cdaudio, "error reading TracksInfo !\n");
|
||||
WARN("error reading TracksInfo !\n");
|
||||
return CDAUDIO_mciGetError(wmcda);
|
||||
}
|
||||
}
|
||||
if (dwFlags & MCI_TRACK) {
|
||||
TRACE(cdaudio,"MCI_TRACK #%lu LENGTH=??? !\n", lpParms->dwTrack);
|
||||
TRACE("MCI_TRACK #%lu LENGTH=??? !\n", lpParms->dwTrack);
|
||||
if (lpParms->dwTrack > wmcda->wcda.nTracks || lpParms->dwTrack == 0)
|
||||
return MCIERR_OUTOFRANGE;
|
||||
lpParms->dwReturn = wmcda->wcda.lpdwTrackLen[lpParms->dwTrack - 1];
|
||||
|
@ -424,24 +424,24 @@ static DWORD CDAUDIO_mciStatus(UINT16 wDevID, DWORD dwFlags, LPMCI_STATUS_PARMS
|
|||
lpParms->dwReturn = wmcda->wcda.dwTotalLen;
|
||||
}
|
||||
lpParms->dwReturn = CDAUDIO_CalcTime(wmcda, lpParms->dwReturn);
|
||||
TRACE(cdaudio,"LENGTH=%lu !\n", lpParms->dwReturn);
|
||||
TRACE("LENGTH=%lu !\n", lpParms->dwReturn);
|
||||
return 0;
|
||||
case MCI_STATUS_MODE:
|
||||
if (!CDAUDIO_GetCDStatus(&wmcda->wcda))
|
||||
return CDAUDIO_mciGetError(wmcda);
|
||||
lpParms->dwReturn = CDAUDIO_mciMode(wmcda->wcda.cdaMode);
|
||||
if (!lpParms->dwReturn) lpParms->dwReturn = wmcda->mciMode;
|
||||
TRACE(cdaudio,"MCI_STATUS_MODE=%08lX !\n", lpParms->dwReturn);
|
||||
TRACE("MCI_STATUS_MODE=%08lX !\n", lpParms->dwReturn);
|
||||
return 0;
|
||||
case MCI_STATUS_MEDIA_PRESENT:
|
||||
if (!CDAUDIO_GetCDStatus(&wmcda->wcda))
|
||||
return CDAUDIO_mciGetError(wmcda);
|
||||
lpParms->dwReturn = (wmcda->wcda.nTracks > 0) ? TRUE : FALSE;
|
||||
TRACE(cdaudio,"MCI_STATUS_MEDIA_PRESENT =%s!\n", lpParms->dwReturn ? "Y" : "N");
|
||||
TRACE("MCI_STATUS_MEDIA_PRESENT =%s!\n", lpParms->dwReturn ? "Y" : "N");
|
||||
return 0;
|
||||
case MCI_STATUS_NUMBER_OF_TRACKS:
|
||||
lpParms->dwReturn = CDAUDIO_GetNumberOfTracks(&wmcda->wcda);
|
||||
TRACE(cdaudio,"MCI_STATUS_NUMBER_OF_TRACKS = %lu !\n", lpParms->dwReturn);
|
||||
TRACE("MCI_STATUS_NUMBER_OF_TRACKS = %lu !\n", lpParms->dwReturn);
|
||||
if (lpParms->dwReturn == (WORD)-1)
|
||||
return CDAUDIO_mciGetError(wmcda);
|
||||
return 0;
|
||||
|
@ -451,25 +451,25 @@ static DWORD CDAUDIO_mciStatus(UINT16 wDevID, DWORD dwFlags, LPMCI_STATUS_PARMS
|
|||
lpParms->dwReturn = wmcda->wcda.dwCurFrame;
|
||||
if (dwFlags & MCI_STATUS_START) {
|
||||
lpParms->dwReturn = wmcda->wcda.dwFirstOffset;
|
||||
TRACE(cdaudio,"get MCI_STATUS_START !\n");
|
||||
TRACE("get MCI_STATUS_START !\n");
|
||||
}
|
||||
if (dwFlags & MCI_TRACK) {
|
||||
if (lpParms->dwTrack > wmcda->wcda.nTracks || lpParms->dwTrack == 0)
|
||||
return MCIERR_OUTOFRANGE;
|
||||
lpParms->dwReturn = wmcda->wcda.lpdwTrackPos[lpParms->dwTrack - 1];
|
||||
TRACE(cdaudio,"get MCI_TRACK #%lu !\n", lpParms->dwTrack);
|
||||
TRACE("get MCI_TRACK #%lu !\n", lpParms->dwTrack);
|
||||
}
|
||||
lpParms->dwReturn = CDAUDIO_CalcTime(wmcda, lpParms->dwReturn);
|
||||
TRACE(cdaudio,"MCI_STATUS_POSITION=%08lX !\n", lpParms->dwReturn);
|
||||
TRACE("MCI_STATUS_POSITION=%08lX !\n", lpParms->dwReturn);
|
||||
return 0;
|
||||
case MCI_STATUS_READY:
|
||||
TRACE(cdaudio,"MCI_STATUS_READY !\n");
|
||||
TRACE("MCI_STATUS_READY !\n");
|
||||
lpParms->dwReturn = (wmcda->wcda.cdaMode != WINE_CDA_DONTKNOW && wmcda->wcda.cdaMode != WINE_CDA_NOTREADY);
|
||||
TRACE(cdaudio,"MCI_STATUS_READY=%ld!\n", lpParms->dwReturn);
|
||||
TRACE("MCI_STATUS_READY=%ld!\n", lpParms->dwReturn);
|
||||
return 0;
|
||||
case MCI_STATUS_TIME_FORMAT:
|
||||
lpParms->dwReturn = wmcda->dwTimeFormat;
|
||||
TRACE(cdaudio,"MCI_STATUS_TIME_FORMAT =%08lx!\n", lpParms->dwReturn);
|
||||
TRACE("MCI_STATUS_TIME_FORMAT =%08lx!\n", lpParms->dwReturn);
|
||||
return 0;
|
||||
case MCI_CDA_STATUS_TYPE_TRACK:
|
||||
if (!(dwFlags & MCI_TRACK))
|
||||
|
@ -478,15 +478,15 @@ static DWORD CDAUDIO_mciStatus(UINT16 wDevID, DWORD dwFlags, LPMCI_STATUS_PARMS
|
|||
return MCIERR_OUTOFRANGE;
|
||||
lpParms->dwReturn = (wmcda->wcda.lpbTrackFlags[lpParms->dwTrack - 1] &
|
||||
CDROM_DATA_TRACK) ? MCI_CDA_TRACK_OTHER : MCI_CDA_TRACK_AUDIO;
|
||||
TRACE(cdaudio, "MCI_CDA_STATUS_TYPE_TRACK[%ld]=%08lx\n", lpParms->dwTrack, lpParms->dwReturn);
|
||||
TRACE("MCI_CDA_STATUS_TYPE_TRACK[%ld]=%08lx\n", lpParms->dwTrack, lpParms->dwReturn);
|
||||
return 0;
|
||||
default:
|
||||
WARN(cdaudio, "unknown command %08lX !\n", lpParms->dwItem);
|
||||
WARN("unknown command %08lX !\n", lpParms->dwItem);
|
||||
return MCIERR_UNRECOGNIZED_COMMAND;
|
||||
}
|
||||
}
|
||||
}
|
||||
WARN(cdaudio, "not MCI_STATUS_ITEM !\n");
|
||||
WARN("not MCI_STATUS_ITEM !\n");
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@ -499,7 +499,7 @@ static DWORD CDAUDIO_mciPlay(UINT16 wDevID, DWORD dwFlags, LPMCI_PLAY_PARMS lpPa
|
|||
WINE_MCICDAUDIO* wmcda = CDAUDIO_mciGetOpenDrv(wDevID);
|
||||
DWORD ret = 0;
|
||||
|
||||
TRACE(cdaudio,"(%04X, %08lX, %p);\n", wDevID, dwFlags, lpParms);
|
||||
TRACE("(%04X, %08lX, %p);\n", wDevID, dwFlags, lpParms);
|
||||
|
||||
if (lpParms == NULL) {
|
||||
ret = MCIERR_NULL_PARAMETER_BLOCK;
|
||||
|
@ -508,7 +508,7 @@ static DWORD CDAUDIO_mciPlay(UINT16 wDevID, DWORD dwFlags, LPMCI_PLAY_PARMS lpPa
|
|||
} else {
|
||||
if (wmcda->wcda.nTracks == 0) {
|
||||
if (!CDAUDIO_GetTracksInfo(&wmcda->wcda)) {
|
||||
WARN(cdaudio, "error reading TracksInfo !\n");
|
||||
WARN("error reading TracksInfo !\n");
|
||||
return MCIERR_DRIVER_INTERNAL;
|
||||
}
|
||||
}
|
||||
|
@ -516,21 +516,21 @@ static DWORD CDAUDIO_mciPlay(UINT16 wDevID, DWORD dwFlags, LPMCI_PLAY_PARMS lpPa
|
|||
wmcda->wcda.nCurTrack = 1;
|
||||
if (dwFlags & MCI_FROM) {
|
||||
start = CDAUDIO_CalcFrame(wmcda, lpParms->dwFrom);
|
||||
TRACE(cdaudio,"MCI_FROM=%08lX -> %u \n", lpParms->dwFrom, start);
|
||||
TRACE("MCI_FROM=%08lX -> %u \n", lpParms->dwFrom, start);
|
||||
} else {
|
||||
if (!CDAUDIO_GetCDStatus(&wmcda->wcda)) return MCIERR_DRIVER_INTERNAL;
|
||||
start = wmcda->wcda.dwCurFrame;
|
||||
}
|
||||
if (dwFlags & MCI_TO) {
|
||||
end = CDAUDIO_CalcFrame(wmcda, lpParms->dwTo);
|
||||
TRACE(cdaudio, "MCI_TO=%08lX -> %u \n", lpParms->dwTo, end);
|
||||
TRACE("MCI_TO=%08lX -> %u \n", lpParms->dwTo, end);
|
||||
}
|
||||
|
||||
if (CDAUDIO_Play(&wmcda->wcda, start, end) == -1)
|
||||
return MCIERR_HARDWARE;
|
||||
wmcda->mciMode = MCI_MODE_PLAY;
|
||||
if (dwFlags & MCI_NOTIFY) {
|
||||
TRACE(cdaudio, "MCI_NOTIFY_SUCCESSFUL %08lX !\n", lpParms->dwCallback);
|
||||
TRACE("MCI_NOTIFY_SUCCESSFUL %08lX !\n", lpParms->dwCallback);
|
||||
/*
|
||||
mciDriverNotify((HWND16)LOWORD(lpParms->dwCallback),
|
||||
wmcda->wNotifyDeviceID, MCI_NOTIFY_SUCCESSFUL);
|
||||
|
@ -547,7 +547,7 @@ static DWORD CDAUDIO_mciStop(UINT16 wDevID, DWORD dwFlags, LPMCI_GENERIC_PARMS l
|
|||
{
|
||||
WINE_MCICDAUDIO* wmcda = CDAUDIO_mciGetOpenDrv(wDevID);
|
||||
|
||||
TRACE(cdaudio,"(%04X, %08lX, %p);\n", wDevID, dwFlags, lpParms);
|
||||
TRACE("(%04X, %08lX, %p);\n", wDevID, dwFlags, lpParms);
|
||||
|
||||
if (wmcda == NULL) return MCIERR_INVALID_DEVICE_ID;
|
||||
|
||||
|
@ -555,7 +555,7 @@ static DWORD CDAUDIO_mciStop(UINT16 wDevID, DWORD dwFlags, LPMCI_GENERIC_PARMS l
|
|||
return MCIERR_HARDWARE;
|
||||
wmcda->mciMode = MCI_MODE_STOP;
|
||||
if (lpParms && (dwFlags & MCI_NOTIFY)) {
|
||||
TRACE(cdaudio, "MCI_NOTIFY_SUCCESSFUL %08lX !\n", lpParms->dwCallback);
|
||||
TRACE("MCI_NOTIFY_SUCCESSFUL %08lX !\n", lpParms->dwCallback);
|
||||
mciDriverNotify16((HWND16)LOWORD(lpParms->dwCallback),
|
||||
wmcda->wNotifyDeviceID, MCI_NOTIFY_SUCCESSFUL);
|
||||
}
|
||||
|
@ -569,7 +569,7 @@ static DWORD CDAUDIO_mciPause(UINT16 wDevID, DWORD dwFlags, LPMCI_GENERIC_PARMS
|
|||
{
|
||||
WINE_MCICDAUDIO* wmcda = CDAUDIO_mciGetOpenDrv(wDevID);
|
||||
|
||||
TRACE(cdaudio,"(%04X, %08lX, %p);\n", wDevID, dwFlags, lpParms);
|
||||
TRACE("(%04X, %08lX, %p);\n", wDevID, dwFlags, lpParms);
|
||||
|
||||
if (wmcda == NULL) return MCIERR_INVALID_DEVICE_ID;
|
||||
|
||||
|
@ -577,7 +577,7 @@ static DWORD CDAUDIO_mciPause(UINT16 wDevID, DWORD dwFlags, LPMCI_GENERIC_PARMS
|
|||
return MCIERR_HARDWARE;
|
||||
wmcda->mciMode = MCI_MODE_PAUSE;
|
||||
if (lpParms && (dwFlags & MCI_NOTIFY)) {
|
||||
TRACE(cdaudio, "MCI_NOTIFY_SUCCESSFUL %08lX !\n", lpParms->dwCallback);
|
||||
TRACE("MCI_NOTIFY_SUCCESSFUL %08lX !\n", lpParms->dwCallback);
|
||||
mciDriverNotify16((HWND16)LOWORD(lpParms->dwCallback),
|
||||
wmcda->wNotifyDeviceID, MCI_NOTIFY_SUCCESSFUL);
|
||||
}
|
||||
|
@ -591,7 +591,7 @@ static DWORD CDAUDIO_mciResume(UINT16 wDevID, DWORD dwFlags, LPMCI_GENERIC_PARMS
|
|||
{
|
||||
WINE_MCICDAUDIO* wmcda = CDAUDIO_mciGetOpenDrv(wDevID);
|
||||
|
||||
TRACE(cdaudio,"(%04X, %08lX, %p);\n", wDevID, dwFlags, lpParms);
|
||||
TRACE("(%04X, %08lX, %p);\n", wDevID, dwFlags, lpParms);
|
||||
|
||||
if (wmcda == NULL) return MCIERR_INVALID_DEVICE_ID;
|
||||
|
||||
|
@ -599,7 +599,7 @@ static DWORD CDAUDIO_mciResume(UINT16 wDevID, DWORD dwFlags, LPMCI_GENERIC_PARMS
|
|||
return MCIERR_HARDWARE;
|
||||
wmcda->mciMode = MCI_MODE_STOP;
|
||||
if (lpParms && (dwFlags & MCI_NOTIFY)) {
|
||||
TRACE(cdaudio, "MCI_NOTIFY_SUCCESSFUL %08lX !\n", lpParms->dwCallback);
|
||||
TRACE("MCI_NOTIFY_SUCCESSFUL %08lX !\n", lpParms->dwCallback);
|
||||
mciDriverNotify16((HWND16)LOWORD(lpParms->dwCallback),
|
||||
wmcda->wNotifyDeviceID, MCI_NOTIFY_SUCCESSFUL);
|
||||
}
|
||||
|
@ -614,7 +614,7 @@ static DWORD CDAUDIO_mciSeek(UINT16 wDevID, DWORD dwFlags, LPMCI_SEEK_PARMS lpPa
|
|||
DWORD at;
|
||||
WINE_MCICDAUDIO* wmcda = CDAUDIO_mciGetOpenDrv(wDevID);
|
||||
|
||||
TRACE(cdaudio,"(%04X, %08lX, %p);\n", wDevID, dwFlags, lpParms);
|
||||
TRACE("(%04X, %08lX, %p);\n", wDevID, dwFlags, lpParms);
|
||||
|
||||
if (wmcda == NULL) return MCIERR_INVALID_DEVICE_ID;
|
||||
if (lpParms == NULL) return MCIERR_NULL_PARAMETER_BLOCK;
|
||||
|
@ -622,26 +622,26 @@ static DWORD CDAUDIO_mciSeek(UINT16 wDevID, DWORD dwFlags, LPMCI_SEEK_PARMS lpPa
|
|||
wmcda->mciMode = MCI_MODE_SEEK;
|
||||
switch (dwFlags & ~(MCI_NOTIFY|MCI_WAIT)) {
|
||||
case MCI_SEEK_TO_START:
|
||||
TRACE(cdaudio, "Seeking to start\n");
|
||||
TRACE("Seeking to start\n");
|
||||
at = 0;
|
||||
break;
|
||||
case MCI_SEEK_TO_END:
|
||||
TRACE(cdaudio, "Seeking to end\n");
|
||||
TRACE("Seeking to end\n");
|
||||
at = wmcda->wcda.dwTotalLen;
|
||||
break;
|
||||
case MCI_TO:
|
||||
TRACE(cdaudio, "Seeking to %lu\n", lpParms->dwTo);
|
||||
TRACE("Seeking to %lu\n", lpParms->dwTo);
|
||||
at = lpParms->dwTo;
|
||||
break;
|
||||
default:
|
||||
TRACE(cdaudio, "Seeking to ??=%lu\n", dwFlags);
|
||||
TRACE("Seeking to ??=%lu\n", dwFlags);
|
||||
return MCIERR_UNSUPPORTED_FUNCTION;
|
||||
}
|
||||
if (CDAUDIO_Seek(&wmcda->wcda, at) == -1) {
|
||||
return MCIERR_HARDWARE;
|
||||
}
|
||||
if (dwFlags & MCI_NOTIFY) {
|
||||
TRACE(cdaudio, "MCI_NOTIFY_SUCCESSFUL %08lX !\n", lpParms->dwCallback);
|
||||
TRACE("MCI_NOTIFY_SUCCESSFUL %08lX !\n", lpParms->dwCallback);
|
||||
mciDriverNotify16((HWND16)LOWORD(lpParms->dwCallback),
|
||||
wmcda->wNotifyDeviceID, MCI_NOTIFY_SUCCESSFUL);
|
||||
}
|
||||
|
@ -655,7 +655,7 @@ static DWORD CDAUDIO_mciSetDoor(UINT16 wDevID, int open)
|
|||
{
|
||||
WINE_MCICDAUDIO* wmcda = CDAUDIO_mciGetOpenDrv(wDevID);
|
||||
|
||||
TRACE(cdaudio, "(%04x, %s) !\n", wDevID, (open) ? "OPEN" : "CLOSE");
|
||||
TRACE("(%04x, %s) !\n", wDevID, (open) ? "OPEN" : "CLOSE");
|
||||
|
||||
if (wmcda == NULL) return MCIERR_INVALID_DEVICE_ID;
|
||||
|
||||
|
@ -672,7 +672,7 @@ static DWORD CDAUDIO_mciSet(UINT16 wDevID, DWORD dwFlags, LPMCI_SET_PARMS lpParm
|
|||
{
|
||||
WINE_MCICDAUDIO* wmcda = CDAUDIO_mciGetOpenDrv(wDevID);
|
||||
|
||||
TRACE(cdaudio,"(%04X, %08lX, %p);\n", wDevID, dwFlags, lpParms);
|
||||
TRACE("(%04X, %08lX, %p);\n", wDevID, dwFlags, lpParms);
|
||||
|
||||
if (wmcda == NULL) return MCIERR_INVALID_DEVICE_ID;
|
||||
if (lpParms == NULL) return MCIERR_NULL_PARAMETER_BLOCK;;
|
||||
|
@ -683,16 +683,16 @@ static DWORD CDAUDIO_mciSet(UINT16 wDevID, DWORD dwFlags, LPMCI_SET_PARMS lpParm
|
|||
if (dwFlags & MCI_SET_TIME_FORMAT) {
|
||||
switch (lpParms->dwTimeFormat) {
|
||||
case MCI_FORMAT_MILLISECONDS:
|
||||
TRACE(cdaudio, "MCI_FORMAT_MILLISECONDS !\n");
|
||||
TRACE("MCI_FORMAT_MILLISECONDS !\n");
|
||||
break;
|
||||
case MCI_FORMAT_MSF:
|
||||
TRACE(cdaudio,"MCI_FORMAT_MSF !\n");
|
||||
TRACE("MCI_FORMAT_MSF !\n");
|
||||
break;
|
||||
case MCI_FORMAT_TMSF:
|
||||
TRACE(cdaudio,"MCI_FORMAT_TMSF !\n");
|
||||
TRACE("MCI_FORMAT_TMSF !\n");
|
||||
break;
|
||||
default:
|
||||
WARN(cdaudio, "bad time format !\n");
|
||||
WARN("bad time format !\n");
|
||||
return MCIERR_BAD_TIME_FORMAT;
|
||||
}
|
||||
wmcda->dwTimeFormat = lpParms->dwTimeFormat;
|
||||
|
@ -707,7 +707,7 @@ static DWORD CDAUDIO_mciSet(UINT16 wDevID, DWORD dwFlags, LPMCI_SET_PARMS lpParm
|
|||
if (dwFlags & MCI_SET_ON) return MCIERR_UNSUPPORTED_FUNCTION;
|
||||
if (dwFlags & MCI_SET_OFF) return MCIERR_UNSUPPORTED_FUNCTION;
|
||||
if (dwFlags & MCI_NOTIFY) {
|
||||
TRACE(cdaudio, "MCI_NOTIFY_SUCCESSFUL %08lX !\n",
|
||||
TRACE("MCI_NOTIFY_SUCCESSFUL %08lX !\n",
|
||||
lpParms->dwCallback);
|
||||
mciDriverNotify16((HWND16)LOWORD(lpParms->dwCallback),
|
||||
wmcda->wNotifyDeviceID, MCI_NOTIFY_SUCCESSFUL);
|
||||
|
@ -763,14 +763,14 @@ LONG MCICDAUDIO_DriverProc(DWORD dwDevID, HDRVR hDriv, DWORD wMsg,
|
|||
case MCI_CUT:
|
||||
case MCI_DELETE:
|
||||
case MCI_PASTE:
|
||||
WARN(cdaudio, "Unsupported command=%s\n", MCI_CommandToString(wMsg));
|
||||
WARN("Unsupported command=%s\n", MCI_CommandToString(wMsg));
|
||||
break;
|
||||
case MCI_OPEN:
|
||||
case MCI_CLOSE:
|
||||
FIXME(cdaudio, "Shouldn't receive a MCI_OPEN or CLOSE message\n");
|
||||
FIXME("Shouldn't receive a MCI_OPEN or CLOSE message\n");
|
||||
break;
|
||||
default:
|
||||
TRACE(cdaudio, "Sending msg=%s to default driver proc\n", MCI_CommandToString(wMsg));
|
||||
TRACE("Sending msg=%s to default driver proc\n", MCI_CommandToString(wMsg));
|
||||
return DefDriverProc(dwDevID, hDriv, wMsg, dwParam1, dwParam2);
|
||||
}
|
||||
return MCIERR_UNRECOGNIZED_COMMAND;
|
||||
|
|
|
@ -27,7 +27,7 @@
|
|||
#include "user.h"
|
||||
#include "driver.h"
|
||||
#include "callback.h"
|
||||
#include "debug.h"
|
||||
#include "debugtools.h"
|
||||
#include "xmalloc.h"
|
||||
|
||||
DEFAULT_DEBUG_CHANNEL(mci)
|
||||
|
@ -50,10 +50,10 @@ DEFAULT_DEBUG_CHANNEL(mci)
|
|||
*/
|
||||
#define _MCI_STR(s) \
|
||||
do { \
|
||||
TRACE(mci, "-> returns '%s'\n", s); \
|
||||
TRACE("-> returns '%s'\n", s); \
|
||||
if (lpstrReturnString) { \
|
||||
lstrcpynA(lpstrReturnString, s, uReturnLength); \
|
||||
TRACE(mci, "--> '%s'\n", lpstrReturnString); \
|
||||
TRACE("--> '%s'\n", lpstrReturnString); \
|
||||
} \
|
||||
} while(0)
|
||||
|
||||
|
@ -103,7 +103,7 @@ _MCISTR_printtf(char *buf, UINT16 uDevType, DWORD timef, DWORD val)
|
|||
MCI_TMSF_FRAME(val));
|
||||
break;
|
||||
default:
|
||||
FIXME(mci, "missing timeformat for %ld, report.\n", timef);
|
||||
FIXME("missing timeformat for %ld, report.\n", timef);
|
||||
strcpy(buf, "0"); /* hmm */
|
||||
break;
|
||||
}
|
||||
|
@ -139,7 +139,7 @@ _MCISTR_convreturn(int type, DWORD dwReturn, LPSTR lpstrReturnString,
|
|||
case MCI_SEQ_SMPTE: _MCI_STR("smpte"); break;
|
||||
case MCI_SEQ_FILE: _MCI_STR("file"); break;
|
||||
case MCI_SEQ_MIDI: _MCI_STR("midi"); break;
|
||||
default:FIXME(mci, "missing sequencer mode %ld\n", dwReturn);
|
||||
default:FIXME("missing sequencer mode %ld\n", dwReturn);
|
||||
}
|
||||
break;
|
||||
case _MCISTR_mode:
|
||||
|
@ -182,7 +182,7 @@ _MCISTR_convreturn(int type, DWORD dwReturn, LPSTR lpstrReturnString,
|
|||
case MCI_FORMAT_MSF: _MCI_STR("msf"); break;
|
||||
case MCI_FORMAT_TMSF: _MCI_STR("tmsf"); break;
|
||||
default:
|
||||
FIXME(mci, "missing timefmt for %d, report.\n", timef);
|
||||
FIXME("missing timefmt for %d, report.\n", timef);
|
||||
break;
|
||||
}
|
||||
break;
|
||||
|
@ -207,12 +207,12 @@ _MCISTR_convreturn(int type, DWORD dwReturn, LPSTR lpstrReturnString,
|
|||
case MCI_DEVTYPE_OTHER: _MCI_STR("other"); break;
|
||||
case MCI_DEVTYPE_WAVEFORM_AUDIO:_MCI_STR("waveform audio"); break;
|
||||
case MCI_DEVTYPE_SEQUENCER: _MCI_STR("sequencer"); break;
|
||||
default:FIXME(mci, "unknown device type %ld, report.\n",
|
||||
default:FIXME("unknown device type %ld, report.\n",
|
||||
dwReturn);break;
|
||||
}
|
||||
break;
|
||||
default:
|
||||
FIXME(mci, "unknown resulttype %d, report.\n", type);
|
||||
FIXME("unknown resulttype %d, report.\n", type);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
@ -361,7 +361,7 @@ MCISTR_Open(_MCISTR_PROTO_)
|
|||
} else if (sscanf(keywords[i+1], "%ld", &st)) {
|
||||
pU->animopenParams.dwStyle |= st;
|
||||
} else
|
||||
FIXME(mci, "unknown 'style' keyword %s, please report.\n", keywords[i+1]);
|
||||
FIXME("unknown 'style' keyword %s, please report.\n", keywords[i+1]);
|
||||
i += 2;
|
||||
continue;
|
||||
}
|
||||
|
@ -387,7 +387,7 @@ MCISTR_Open(_MCISTR_PROTO_)
|
|||
} else if (sscanf(keywords[i+1], "%ld", &st)) {
|
||||
pU->dgvopenParams.dwStyle |= st;
|
||||
} else
|
||||
FIXME(mci, "unknown 'style' keyword %s, please report.\n", keywords[i+1]);
|
||||
FIXME("unknown 'style' keyword %s, please report.\n", keywords[i+1]);
|
||||
i += 2;
|
||||
continue;
|
||||
}
|
||||
|
@ -419,13 +419,13 @@ MCISTR_Open(_MCISTR_PROTO_)
|
|||
} else if (sscanf(keywords[i+1], "%ld", &st)) {
|
||||
pU->ovlyopenParams.dwStyle |= st;
|
||||
} else
|
||||
FIXME(mci, "unknown 'style' keyword %s, please report.\n", keywords[i+1]);
|
||||
FIXME("unknown 'style' keyword %s, please report.\n", keywords[i+1]);
|
||||
i += 2;
|
||||
continue;
|
||||
}
|
||||
break;
|
||||
}
|
||||
FIXME(mci, "unknown parameter passed %s, please report.\n",
|
||||
FIXME("unknown parameter passed %s, please report.\n",
|
||||
keywords[i]);
|
||||
i++;
|
||||
}
|
||||
|
@ -775,7 +775,7 @@ MCISTR_Status(_MCISTR_PROTO_) {
|
|||
ITEM2("window", "maximized",MCI_DGV_STATUS_WINDOW_MAXIMIZED , _MCISTR_bool);
|
||||
break;
|
||||
}
|
||||
FIXME(mci, "unknown keyword '%s'\n", keywords[i]);
|
||||
FIXME("unknown keyword '%s'\n", keywords[i]);
|
||||
i++;
|
||||
}
|
||||
if (!pU->statusParams.dwItem)
|
||||
|
@ -1251,7 +1251,7 @@ MCISTR_Record(_MCISTR_PROTO_) {
|
|||
parsestr="%d:%d:%d:%d";
|
||||
nrargs=4;
|
||||
break;
|
||||
default:FIXME(mci, "unknown timeformat %d, please report.\n", timef);
|
||||
default:FIXME("unknown timeformat %d, please report.\n", timef);
|
||||
parsestr="%d";
|
||||
nrargs=1;
|
||||
break;
|
||||
|
@ -1345,7 +1345,7 @@ MCISTR_Play(_MCISTR_PROTO_) {
|
|||
parsestr="%d:%d:%d:%d";
|
||||
nrargs=4;
|
||||
break;
|
||||
default:FIXME(mci, "unknown timeformat %d, please report.\n", timef);
|
||||
default:FIXME("unknown timeformat %d, please report.\n", timef);
|
||||
parsestr="%d";
|
||||
nrargs=1;
|
||||
break;
|
||||
|
@ -1448,7 +1448,7 @@ MCISTR_Seek(_MCISTR_PROTO_) {
|
|||
nrargs=4;
|
||||
break;
|
||||
default:
|
||||
FIXME(mci, "unknown timeformat %d, please report.\n", timef);
|
||||
FIXME("unknown timeformat %d, please report.\n", timef);
|
||||
parsestr="%d";
|
||||
nrargs=1;
|
||||
break;
|
||||
|
@ -1775,7 +1775,7 @@ MCISTR_Delete(_MCISTR_PROTO_) {
|
|||
parsestr="%d:%d:%d:%d";
|
||||
nrargs=4;
|
||||
break;
|
||||
default:FIXME(mci, "unknown timeformat %d, please report.\n", timef);
|
||||
default:FIXME("unknown timeformat %d, please report.\n", timef);
|
||||
parsestr="%d";
|
||||
nrargs=1;
|
||||
break;
|
||||
|
@ -2542,7 +2542,7 @@ DWORD WINAPI mciSendString16(LPCSTR lpstrCommand, LPSTR lpstrReturnString,
|
|||
DWORD dwFlags;
|
||||
int res = 0, i, nrofkeywords;
|
||||
|
||||
TRACE(mci, "('%s', %p, %d, %X)\n",
|
||||
TRACE("('%s', %p, %d, %X)\n",
|
||||
lpstrCommand, lpstrReturnString, uReturnLength, hwndCallback);
|
||||
|
||||
/* format is <command> <device> <optargs> */
|
||||
|
@ -2591,7 +2591,7 @@ DWORD WINAPI mciSendString16(LPCSTR lpstrCommand, LPSTR lpstrReturnString,
|
|||
*s = '\0';
|
||||
while (*++s == ' ');
|
||||
}
|
||||
TRACE(mci, "[%d] => '%s'\n", i-1, keywords[i-1]);
|
||||
TRACE("[%d] => '%s'\n", i-1, keywords[i-1]);
|
||||
}
|
||||
keywords[i] = NULL;
|
||||
} else {
|
||||
|
@ -2620,7 +2620,7 @@ DWORD WINAPI mciSendString16(LPCSTR lpstrCommand, LPSTR lpstrReturnString,
|
|||
if (STRCMP(cmd, "open") != 0) {
|
||||
wDevID = mciGetDeviceIDA(dev);
|
||||
if (wDevID == 0) {
|
||||
TRACE(mci, "Device '%s' not found!\n", dev);
|
||||
TRACE("Device '%s' not found!\n", dev);
|
||||
res = MCIERR_INVALID_DEVICE_NAME;
|
||||
goto the_end;
|
||||
}
|
||||
|
@ -2639,7 +2639,7 @@ DWORD WINAPI mciSendString16(LPCSTR lpstrCommand, LPSTR lpstrReturnString,
|
|||
}
|
||||
}
|
||||
if (MCISTR_cmdtable[i].cmd == NULL) {
|
||||
FIXME(mci, "('%s', %p, %u, %X): unimplemented, please report.\n",
|
||||
FIXME("('%s', %p, %u, %X): unimplemented, please report.\n",
|
||||
lpstrCommand, lpstrReturnString, uReturnLength, hwndCallback);
|
||||
res = MCIERR_MISSING_COMMAND_STRING;
|
||||
}
|
||||
|
@ -2681,7 +2681,7 @@ DWORD WINAPI mciExecute(LPCSTR lpstrCommand)
|
|||
char strRet[256];
|
||||
DWORD ret;
|
||||
|
||||
TRACE(mci, "(%s)!\n", lpstrCommand);
|
||||
TRACE("(%s)!\n", lpstrCommand);
|
||||
|
||||
ret = mciSendString16(lpstrCommand, strRet, sizeof(strRet), 0);
|
||||
if (ret != 0) {
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
#include "heap.h"
|
||||
#include "file.h"
|
||||
#include "mmsystem.h"
|
||||
#include "debug.h"
|
||||
#include "debugtools.h"
|
||||
#include "xmalloc.h"
|
||||
|
||||
DEFAULT_DEBUG_CHANNEL(mmio)
|
||||
|
@ -24,7 +24,7 @@ DEFAULT_DEBUG_CHANNEL(mmio)
|
|||
* mmioDosIOProc [internal]
|
||||
*/
|
||||
static LRESULT mmioDosIOProc(LPMMIOINFO16 lpmmioinfo, UINT16 uMessage, LPARAM lParam1, LPARAM lParam2) {
|
||||
TRACE(mmio, "(%p, %X, %ld, %ld);\n", lpmmioinfo, uMessage, lParam1, lParam2);
|
||||
TRACE("(%p, %X, %ld, %ld);\n", lpmmioinfo, uMessage, lParam1, lParam2);
|
||||
|
||||
switch (uMessage) {
|
||||
|
||||
|
@ -40,7 +40,7 @@ static LRESULT mmioDosIOProc(LPMMIOINFO16 lpmmioinfo, UINT16 uMessage, LPARAM lP
|
|||
LPSTR szFileName = (LPSTR) lParam1;
|
||||
|
||||
if (lpmmioinfo->dwFlags & MMIO_GETTEMP) {
|
||||
FIXME(mmio, "MMIO_GETTEMP not implemented\n");
|
||||
FIXME("MMIO_GETTEMP not implemented\n");
|
||||
return MMIOERR_CANNOTOPEN;
|
||||
}
|
||||
|
||||
|
@ -145,12 +145,12 @@ static LRESULT mmioDosIOProc(LPMMIOINFO16 lpmmioinfo, UINT16 uMessage, LPARAM lP
|
|||
* Returns: zero on success, non-zero on failure
|
||||
*/
|
||||
|
||||
FIXME(mmio, "MMIOM_RENAME unimplemented\n");
|
||||
FIXME("MMIOM_RENAME unimplemented\n");
|
||||
return MMIOERR_FILENOTFOUND;
|
||||
}
|
||||
|
||||
default:
|
||||
FIXME(mmio, "unexpected message %u\n", uMessage);
|
||||
FIXME("unexpected message %u\n", uMessage);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@ -161,7 +161,7 @@ static LRESULT mmioDosIOProc(LPMMIOINFO16 lpmmioinfo, UINT16 uMessage, LPARAM lP
|
|||
* mmioMemIOProc [internal]
|
||||
*/
|
||||
static LRESULT mmioMemIOProc(LPMMIOINFO16 lpmmioinfo, UINT16 uMessage, LPARAM lParam1, LPARAM lParam2) {
|
||||
TRACE(mmio,"(%p,0x%04x,0x%08lx,0x%08lx)\n",lpmmioinfo,uMessage,lParam1,lParam2);
|
||||
TRACE("(%p,0x%04x,0x%08lx,0x%08lx)\n",lpmmioinfo,uMessage,lParam1,lParam2);
|
||||
switch (uMessage) {
|
||||
|
||||
case MMIOM_OPEN: {
|
||||
|
@ -201,7 +201,7 @@ static LRESULT mmioMemIOProc(LPMMIOINFO16 lpmmioinfo, UINT16 uMessage, LPARAM lP
|
|||
/* HPSTR pch = (HPSTR) lParam1; */
|
||||
/* LONG cch = (LONG) lParam2; */
|
||||
|
||||
FIXME(mmio,"MMIOM_READ on memory files should not occur, buffer may be lost!\n");
|
||||
FIXME("MMIOM_READ on memory files should not occur, buffer may be lost!\n");
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@ -220,7 +220,7 @@ static LRESULT mmioMemIOProc(LPMMIOINFO16 lpmmioinfo, UINT16 uMessage, LPARAM lP
|
|||
/* HPSTR pch = (HPSTR) lParam1; */
|
||||
/* LONG cch = (LONG) lParam2; */
|
||||
|
||||
FIXME(mmio,"MMIOM_WRITE on memory files should not occur, buffer may be lost!\n");
|
||||
FIXME("MMIOM_WRITE on memory files should not occur, buffer may be lost!\n");
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@ -235,12 +235,12 @@ static LRESULT mmioMemIOProc(LPMMIOINFO16 lpmmioinfo, UINT16 uMessage, LPARAM lP
|
|||
/* LONG Offset = (LONG) lParam1; */
|
||||
/* LONG Whence = (LONG) lParam2; */
|
||||
|
||||
FIXME(mmio,"MMIOM_SEEK on memory files should not occur, buffer may be lost!\n");
|
||||
FIXME("MMIOM_SEEK on memory files should not occur, buffer may be lost!\n");
|
||||
return -1;
|
||||
}
|
||||
|
||||
default:
|
||||
FIXME(mmio, "unexpected message %u\n", uMessage);
|
||||
FIXME("unexpected message %u\n", uMessage);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@ -257,7 +257,7 @@ static HMMIO16 MMIO_Open(LPSTR szFileName, MMIOINFO16 * lpmmioinfo,
|
|||
HMMIO16 hmmio;
|
||||
UINT16 result;
|
||||
|
||||
TRACE(mmio, "('%s', %p, %08lX);\n", szFileName, lpmmioinfo, dwOpenFlags);
|
||||
TRACE("('%s', %p, %08lX);\n", szFileName, lpmmioinfo, dwOpenFlags);
|
||||
|
||||
if (dwOpenFlags & MMIO_PARSE) {
|
||||
char buffer[MAX_PATH];
|
||||
|
@ -366,7 +366,7 @@ MMRESULT WINAPI mmioClose(HMMIO hmmio, UINT uFlags)
|
|||
LPMMIOINFO16 lpmminfo;
|
||||
MMRESULT result;
|
||||
|
||||
TRACE(mmio, "(%04X, %04X);\n", hmmio, uFlags);
|
||||
TRACE("(%04X, %04X);\n", hmmio, uFlags);
|
||||
|
||||
lpmminfo = (LPMMIOINFO16) GlobalLock16(hmmio);
|
||||
if (lpmminfo == NULL)
|
||||
|
@ -405,7 +405,7 @@ LONG WINAPI mmioRead(HMMIO hmmio, HPSTR pch, LONG cch)
|
|||
LONG count;
|
||||
LPMMIOINFO16 lpmminfo;
|
||||
|
||||
TRACE(mmio, "(%04X, %p, %ld);\n", hmmio, pch, cch);
|
||||
TRACE("(%04X, %p, %ld);\n", hmmio, pch, cch);
|
||||
|
||||
lpmminfo = (LPMMIOINFO16)GlobalLock16(hmmio);
|
||||
if (lpmminfo == NULL)
|
||||
|
@ -449,7 +449,7 @@ LONG WINAPI mmioRead(HMMIO hmmio, HPSTR pch, LONG cch)
|
|||
}
|
||||
|
||||
GlobalUnlock16(hmmio);
|
||||
TRACE(mmio, "count=%ld\n", count);
|
||||
TRACE("count=%ld\n", count);
|
||||
return count;
|
||||
}
|
||||
|
||||
|
@ -469,7 +469,7 @@ LONG WINAPI mmioWrite(HMMIO hmmio, HPCSTR pch, LONG cch)
|
|||
LONG count;
|
||||
LPMMIOINFO16 lpmminfo;
|
||||
|
||||
TRACE(mmio, "(%04X, %p, %ld);\n", hmmio, pch, cch);
|
||||
TRACE("(%04X, %p, %ld);\n", hmmio, pch, cch);
|
||||
|
||||
lpmminfo = (LPMMIOINFO16)GlobalLock16(hmmio);
|
||||
if (lpmminfo == NULL)
|
||||
|
@ -490,7 +490,7 @@ LONG WINAPI mmioWrite(HMMIO hmmio, HPCSTR pch, LONG cch)
|
|||
if (lpmminfo->fccIOProc==FOURCC_MEM) {
|
||||
if (lpmminfo->adwInfo[0]) {
|
||||
/* from where would we get the memory handle? */
|
||||
FIXME(mmio, "memory file expansion not implemented!\n");
|
||||
FIXME("memory file expansion not implemented!\n");
|
||||
} else break;
|
||||
}
|
||||
|
||||
|
@ -503,7 +503,7 @@ LONG WINAPI mmioWrite(HMMIO hmmio, HPCSTR pch, LONG cch)
|
|||
}
|
||||
|
||||
GlobalUnlock16(hmmio);
|
||||
TRACE(mmio, "count=%ld\n", count);
|
||||
TRACE("count=%ld\n", count);
|
||||
return count;
|
||||
}
|
||||
|
||||
|
@ -523,7 +523,7 @@ LONG WINAPI mmioSeek(HMMIO hmmio, LONG lOffset, INT iOrigin)
|
|||
int offset;
|
||||
LPMMIOINFO16 lpmminfo;
|
||||
|
||||
TRACE(mmio, "(%04X, %08lX, %d);\n", hmmio, lOffset, iOrigin);
|
||||
TRACE("(%04X, %08lX, %d);\n", hmmio, lOffset, iOrigin);
|
||||
|
||||
lpmminfo = (LPMMIOINFO16)GlobalLock16(hmmio);
|
||||
if (lpmminfo == NULL)
|
||||
|
@ -566,7 +566,7 @@ LONG WINAPI mmioSeek16(HMMIO16 hmmio, LONG lOffset, INT16 iOrigin)
|
|||
UINT16 WINAPI mmioGetInfo16(HMMIO16 hmmio, MMIOINFO16 * lpmmioinfo, UINT16 uFlags)
|
||||
{
|
||||
LPMMIOINFO16 lpmminfo;
|
||||
TRACE(mmio, "mmioGetInfo\n");
|
||||
TRACE("mmioGetInfo\n");
|
||||
lpmminfo = (LPMMIOINFO16)GlobalLock16(hmmio);
|
||||
if (lpmminfo == NULL) return 0;
|
||||
memcpy(lpmmioinfo, lpmminfo, sizeof(MMIOINFO16));
|
||||
|
@ -583,7 +583,7 @@ UINT WINAPI mmioGetInfo(HMMIO hmmio, MMIOINFO*lpmmioinfo, UINT uFlags)
|
|||
LPMMIOINFO16 lpmminfo=&mmioinfo;
|
||||
UINT16 ret;
|
||||
|
||||
TRACE(mmio, "(0x%04x,%p,0x%08x)\n",hmmio,lpmmioinfo,uFlags);
|
||||
TRACE("(0x%04x,%p,0x%08x)\n",hmmio,lpmmioinfo,uFlags);
|
||||
ret = mmioGetInfo16(hmmio,&mmioinfo,uFlags);
|
||||
if (!ret)
|
||||
return 0;
|
||||
|
@ -612,7 +612,7 @@ UINT WINAPI mmioGetInfo(HMMIO hmmio, MMIOINFO*lpmmioinfo, UINT uFlags)
|
|||
UINT16 WINAPI mmioSetInfo16(HMMIO16 hmmio, const MMIOINFO16 * lpmmioinfo, UINT16 uFlags)
|
||||
{
|
||||
LPMMIOINFO16 lpmminfo;
|
||||
TRACE(mmio, "mmioSetInfo\n");
|
||||
TRACE("mmioSetInfo\n");
|
||||
lpmminfo = (LPMMIOINFO16)GlobalLock16(hmmio);
|
||||
if (lpmminfo == NULL) return 0;
|
||||
lpmminfo->pchNext = lpmmioinfo->pchNext;
|
||||
|
@ -627,7 +627,7 @@ UINT16 WINAPI mmioSetInfo16(HMMIO16 hmmio, const MMIOINFO16 * lpmmioinfo, UINT16
|
|||
UINT WINAPI mmioSetInfo(HMMIO hmmio, const MMIOINFO * lpmmioinfo, UINT uFlags)
|
||||
{
|
||||
LPMMIOINFO16 lpmminfo;
|
||||
TRACE(mmio, "mmioSetInfo\n");
|
||||
TRACE("mmioSetInfo\n");
|
||||
lpmminfo = (LPMMIOINFO16)GlobalLock16(hmmio);
|
||||
if (lpmminfo == NULL) return 0;
|
||||
lpmminfo->pchNext = lpmmioinfo->pchNext;
|
||||
|
@ -647,7 +647,7 @@ UINT WINAPI mmioSetBuffer(HMMIO hmmio, LPSTR pchBuffer,
|
|||
if (mmioFlush(hmmio, MMIO_EMPTYBUF) != 0)
|
||||
return MMIOERR_CANNOTWRITE;
|
||||
|
||||
TRACE(mmio, "(hmmio=%04x, pchBuf=%p, cchBuf=%ld, uFlags=%#08x)\n",
|
||||
TRACE("(hmmio=%04x, pchBuf=%p, cchBuf=%ld, uFlags=%#08x)\n",
|
||||
hmmio, pchBuffer, cchBuffer, uFlags);
|
||||
|
||||
lpmminfo = (LPMMIOINFO16)GlobalLock16(hmmio);
|
||||
|
@ -707,7 +707,7 @@ UINT16 WINAPI mmioSetBuffer16(HMMIO16 hmmio, LPSTR pchBuffer,
|
|||
UINT WINAPI mmioFlush(HMMIO hmmio, UINT uFlags)
|
||||
{
|
||||
LPMMIOINFO16 lpmminfo;
|
||||
TRACE(mmio, "(%04X, %04X)\n", hmmio, uFlags);
|
||||
TRACE("(%04X, %04X)\n", hmmio, uFlags);
|
||||
lpmminfo = (LPMMIOINFO16)GlobalLock16(hmmio);
|
||||
if (lpmminfo == NULL) return 0;
|
||||
|
||||
|
@ -755,7 +755,7 @@ UINT16 WINAPI mmioFlush16(HMMIO16 hmmio, UINT16 uFlags)
|
|||
UINT WINAPI mmioAdvance(HMMIO hmmio,MMIOINFO*lpmmioinfo,UINT uFlags)
|
||||
{
|
||||
LPMMIOINFO16 lpmminfo;
|
||||
TRACE(mmio, "mmioAdvance\n");
|
||||
TRACE("mmioAdvance\n");
|
||||
lpmminfo = (LPMMIOINFO16)GlobalLock16(hmmio);
|
||||
if (lpmminfo == NULL) return 0;
|
||||
if (!lpmminfo->cchBuffer) {
|
||||
|
@ -789,7 +789,7 @@ UINT WINAPI mmioAdvance(HMMIO hmmio,MMIOINFO*lpmmioinfo,UINT uFlags)
|
|||
UINT16 WINAPI mmioAdvance16(HMMIO16 hmmio,MMIOINFO16*lpmmioinfo,UINT16 uFlags)
|
||||
{
|
||||
LPMMIOINFO16 lpmminfo;
|
||||
TRACE(mmio, "mmioAdvance\n");
|
||||
TRACE("mmioAdvance\n");
|
||||
lpmminfo = (LPMMIOINFO16)GlobalLock16(hmmio);
|
||||
if (lpmminfo == NULL) return 0;
|
||||
if (!lpmminfo->cchBuffer) {
|
||||
|
@ -851,11 +851,11 @@ FOURCC WINAPI mmioStringToFOURCC16(LPCSTR sz, UINT16 uFlags)
|
|||
LPMMIOPROC16 WINAPI mmioInstallIOProc16(FOURCC fccIOProc,
|
||||
LPMMIOPROC16 pIOProc, DWORD dwFlags)
|
||||
{
|
||||
TRACE(mmio, "(%ld, %p, %08lX)\n",
|
||||
TRACE("(%ld, %p, %08lX)\n",
|
||||
fccIOProc, pIOProc, dwFlags);
|
||||
|
||||
if (dwFlags & MMIO_GLOBALPROC) {
|
||||
FIXME(mmio, " global procedures not implemented\n");
|
||||
FIXME(" global procedures not implemented\n");
|
||||
}
|
||||
|
||||
/* just handle the known procedures for now */
|
||||
|
@ -882,7 +882,7 @@ LPMMIOPROC16 WINAPI mmioInstallIOProc16(FOURCC fccIOProc,
|
|||
LPMMIOPROC WINAPI mmioInstallIOProcA(FOURCC fccIOProc,
|
||||
LPMMIOPROC pIOProc, DWORD dwFlags)
|
||||
{
|
||||
FIXME(mmio, "(%c%c%c%c,%p,0x%08lx) -- empty stub \n",
|
||||
FIXME("(%c%c%c%c,%p,0x%08lx) -- empty stub \n",
|
||||
(char)((fccIOProc&0xff000000)>>24),
|
||||
(char)((fccIOProc&0x00ff0000)>>16),
|
||||
(char)((fccIOProc&0x0000ff00)>> 8),
|
||||
|
@ -916,10 +916,10 @@ LRESULT WINAPI mmioSendMessage(HMMIO16 hmmio, UINT16 uMessage,
|
|||
#endif
|
||||
|
||||
if (msg)
|
||||
TRACE(mmio, "(%04X, %s, %ld, %ld)\n",
|
||||
TRACE("(%04X, %s, %ld, %ld)\n",
|
||||
hmmio, msg, lParam1, lParam2);
|
||||
else
|
||||
TRACE(mmio, "(%04X, %u, %ld, %ld)\n",
|
||||
TRACE("(%04X, %u, %ld, %ld)\n",
|
||||
hmmio, uMessage, lParam1, lParam2);
|
||||
|
||||
lpmminfo = (LPMMIOINFO16)GlobalLock16(hmmio);
|
||||
|
@ -944,19 +944,19 @@ UINT16 WINAPI mmioDescend(HMMIO16 hmmio, LPMMCKINFO lpck,
|
|||
MMCKINFO searchcki;
|
||||
char ckid[5],fcc[5];
|
||||
|
||||
TRACE(mmio,"(%04X, %p, %p, %04X);\n",hmmio,lpck,lpckParent,uFlags);
|
||||
TRACE("(%04X, %p, %p, %04X);\n",hmmio,lpck,lpckParent,uFlags);
|
||||
|
||||
if (lpck == NULL)
|
||||
return MMSYSERR_INVALPARAM;
|
||||
|
||||
dwOldPos = mmioSeek(hmmio, 0, SEEK_CUR);
|
||||
TRACE(mmio, "dwOldPos=%ld\n", dwOldPos);
|
||||
TRACE("dwOldPos=%ld\n", dwOldPos);
|
||||
|
||||
if (lpckParent != NULL) {
|
||||
TRACE(mmio, "seek inside parent at %ld !\n", lpckParent->dwDataOffset);
|
||||
TRACE("seek inside parent at %ld !\n", lpckParent->dwDataOffset);
|
||||
/* EPP: was dwOldPos = mmioSeek(hmmio,lpckParent->dwDataOffset,SEEK_SET); */
|
||||
if (dwOldPos < lpckParent->dwDataOffset || dwOldPos >= lpckParent->dwDataOffset + lpckParent->cksize) {
|
||||
ERR(mmio, "outside parent chunk\n");
|
||||
ERR("outside parent chunk\n");
|
||||
return MMIOERR_CHUNKNOTFOUND;
|
||||
}
|
||||
}
|
||||
|
@ -980,7 +980,7 @@ UINT16 WINAPI mmioDescend(HMMIO16 hmmio, LPMMCKINFO lpck,
|
|||
}
|
||||
memcpy(&fcc,&(searchcki.fccType),4);fcc[4]=0;
|
||||
memcpy(&ckid,&(searchcki.ckid),4);ckid[4]=0;
|
||||
TRACE(mmio,"searching for %s.%s\n",ckid,searchcki.fccType?fcc:"<any>");
|
||||
TRACE("searching for %s.%s\n",ckid,searchcki.fccType?fcc:"<any>");
|
||||
|
||||
if (uFlags & (MMIO_FINDCHUNK|MMIO_FINDLIST|MMIO_FINDRIFF)) {
|
||||
while (TRUE) {
|
||||
|
@ -989,18 +989,18 @@ UINT16 WINAPI mmioDescend(HMMIO16 hmmio, LPMMCKINFO lpck,
|
|||
ix = mmioRead(hmmio, (LPSTR)lpck, 3 * sizeof(DWORD));
|
||||
if (ix < 2*sizeof(DWORD)) {
|
||||
mmioSeek(hmmio, dwOldPos, SEEK_SET);
|
||||
WARN(mmio, "return ChunkNotFound\n");
|
||||
WARN("return ChunkNotFound\n");
|
||||
return MMIOERR_CHUNKNOTFOUND;
|
||||
}
|
||||
lpck->dwDataOffset = dwOldPos + 2 * sizeof(DWORD);
|
||||
if (ix < lpck->dwDataOffset - dwOldPos) {
|
||||
mmioSeek(hmmio, dwOldPos, SEEK_SET);
|
||||
WARN(mmio, "return ChunkNotFound\n");
|
||||
WARN("return ChunkNotFound\n");
|
||||
return MMIOERR_CHUNKNOTFOUND;
|
||||
}
|
||||
memcpy(ckid,&lpck->ckid,4);
|
||||
memcpy(fcc,&lpck->fccType,4);
|
||||
TRACE(mmio, "ckid=%s fcc=%s cksize=%08lX !\n",
|
||||
TRACE("ckid=%s fcc=%s cksize=%08lX !\n",
|
||||
ckid, searchcki.fccType?fcc:"<unused>",
|
||||
lpck->cksize);
|
||||
if ((searchcki.ckid == lpck->ckid) &&
|
||||
|
@ -1023,7 +1023,7 @@ UINT16 WINAPI mmioDescend(HMMIO16 hmmio, LPMMCKINFO lpck,
|
|||
/* FIXME: unverified, does it do this? */
|
||||
if (mmioRead(hmmio, (LPSTR)lpck, 3 * sizeof(DWORD)) < 3 * sizeof(DWORD)) {
|
||||
mmioSeek(hmmio, dwOldPos, SEEK_SET);
|
||||
WARN(mmio, "return ChunkNotFound 2nd\n");
|
||||
WARN("return ChunkNotFound 2nd\n");
|
||||
return MMIOERR_CHUNKNOTFOUND;
|
||||
}
|
||||
lpck->dwDataOffset = dwOldPos + 2 * sizeof(DWORD);
|
||||
|
@ -1033,9 +1033,9 @@ UINT16 WINAPI mmioDescend(HMMIO16 hmmio, LPMMCKINFO lpck,
|
|||
}
|
||||
mmioSeek(hmmio, lpck->dwDataOffset, SEEK_SET);
|
||||
memcpy(ckid,&(lpck->ckid),4);
|
||||
TRACE(mmio, "lpck->ckid=%s lpck->cksize=%ld !\n", ckid, lpck->cksize);
|
||||
TRACE("lpck->ckid=%s lpck->cksize=%ld !\n", ckid, lpck->cksize);
|
||||
memcpy(fcc,&(lpck->fccType),4);
|
||||
TRACE(mmio, "lpck->fccType=%08lX (%s)!\n", lpck->fccType,searchcki.fccType?fcc:"");
|
||||
TRACE("lpck->fccType=%08lX (%s)!\n", lpck->fccType,searchcki.fccType?fcc:"");
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@ -1044,23 +1044,23 @@ UINT16 WINAPI mmioDescend(HMMIO16 hmmio, LPMMCKINFO lpck,
|
|||
*/
|
||||
UINT WINAPI mmioAscend(HMMIO hmmio, MMCKINFO * lpck, UINT uFlags)
|
||||
{
|
||||
TRACE(mmio, "(%04X, %p, %04X);\n",
|
||||
TRACE("(%04X, %p, %04X);\n",
|
||||
hmmio, lpck, uFlags);
|
||||
if (lpck->dwFlags&MMIO_DIRTY) {
|
||||
DWORD dwOldPos, dwNewSize, dwSizePos;
|
||||
|
||||
TRACE(mmio, "chunk is marked MMIO_DIRTY, correcting chunk size\n");
|
||||
TRACE("chunk is marked MMIO_DIRTY, correcting chunk size\n");
|
||||
dwOldPos = mmioSeek(hmmio, 0, SEEK_CUR);
|
||||
TRACE(mmio, "dwOldPos=%ld\n", dwOldPos);
|
||||
TRACE("dwOldPos=%ld\n", dwOldPos);
|
||||
dwNewSize = dwOldPos - lpck->dwDataOffset;
|
||||
if (dwNewSize != lpck->cksize) {
|
||||
TRACE(mmio, "dwNewSize=%ld\n", dwNewSize);
|
||||
TRACE("dwNewSize=%ld\n", dwNewSize);
|
||||
lpck->cksize = dwNewSize;
|
||||
|
||||
dwSizePos = lpck->dwDataOffset - sizeof(DWORD);
|
||||
if (lpck->ckid == FOURCC_RIFF || lpck->ckid == FOURCC_LIST)
|
||||
dwSizePos -= sizeof(DWORD);
|
||||
TRACE(mmio, "dwSizePos=%ld\n", dwSizePos);
|
||||
TRACE("dwSizePos=%ld\n", dwSizePos);
|
||||
|
||||
mmioSeek(hmmio, dwSizePos, SEEK_SET);
|
||||
mmioWrite(hmmio, (LPSTR)&dwNewSize, sizeof(DWORD));
|
||||
|
@ -1087,18 +1087,18 @@ UINT16 WINAPI mmioCreateChunk16(HMMIO16 hmmio, MMCKINFO * lpck, UINT16 uFlags)
|
|||
DWORD dwOldPos;
|
||||
LONG ix;
|
||||
|
||||
TRACE(mmio, "(%04X, %p, %04X);\n",
|
||||
TRACE("(%04X, %p, %04X);\n",
|
||||
hmmio, lpck, uFlags);
|
||||
|
||||
dwOldPos = mmioSeek(hmmio, 0, SEEK_CUR);
|
||||
TRACE(mmio, "dwOldPos=%ld\n", dwOldPos);
|
||||
TRACE("dwOldPos=%ld\n", dwOldPos);
|
||||
|
||||
if (uFlags == MMIO_CREATELIST)
|
||||
lpck->ckid = FOURCC_LIST;
|
||||
else if (uFlags == MMIO_CREATERIFF)
|
||||
lpck->ckid = FOURCC_RIFF;
|
||||
|
||||
TRACE(mmio, "ckid=%08lX\n", lpck->ckid);
|
||||
TRACE("ckid=%08lX\n", lpck->ckid);
|
||||
|
||||
lpck->dwDataOffset = dwOldPos + 2 * sizeof(DWORD);
|
||||
if (lpck->ckid == FOURCC_RIFF || lpck->ckid == FOURCC_LIST)
|
||||
|
@ -1106,11 +1106,11 @@ UINT16 WINAPI mmioCreateChunk16(HMMIO16 hmmio, MMCKINFO * lpck, UINT16 uFlags)
|
|||
lpck->dwFlags = MMIO_DIRTY;
|
||||
|
||||
ix = mmioWrite(hmmio, (LPSTR)lpck, lpck->dwDataOffset - dwOldPos);
|
||||
TRACE(mmio, "after mmioWrite ix = %ld req = %ld, errno = %d\n",ix,lpck->dwDataOffset - dwOldPos,errno);
|
||||
TRACE("after mmioWrite ix = %ld req = %ld, errno = %d\n",ix,lpck->dwDataOffset - dwOldPos,errno);
|
||||
if (ix < lpck->dwDataOffset - dwOldPos) {
|
||||
|
||||
mmioSeek(hmmio, dwOldPos, SEEK_SET);
|
||||
WARN(mmio, "return CannotWrite\n");
|
||||
WARN("return CannotWrite\n");
|
||||
return MMIOERR_CANNOTWRITE;
|
||||
}
|
||||
|
||||
|
@ -1135,7 +1135,7 @@ UINT16 WINAPI mmioRename16(LPCSTR szFileName, LPCSTR szNewFileName,
|
|||
LPMMIOINFO16 lpmminfo;
|
||||
HMMIO16 hmmio;
|
||||
|
||||
TRACE(mmio, "('%s', '%s', %p, %08lX);\n",
|
||||
TRACE("('%s', '%s', %p, %08lX);\n",
|
||||
szFileName, szNewFileName, lpmmioinfo, dwRenameFlags);
|
||||
|
||||
hmmio = GlobalAlloc16(GHND, sizeof(MMIOINFO16));
|
||||
|
@ -1173,7 +1173,7 @@ UINT16 WINAPI mmioRename16(LPCSTR szFileName, LPCSTR szNewFileName,
|
|||
UINT WINAPI mmioRenameA(LPCSTR szFileName, LPCSTR szNewFileName,
|
||||
MMIOINFO* lpmmioinfo, DWORD dwRenameFlags)
|
||||
{
|
||||
FIXME(mmio, "This may fail\n");
|
||||
FIXME("This may fail\n");
|
||||
return mmioRename16(szFileName, szNewFileName, (MMIOINFO16*)lpmmioinfo, dwRenameFlags);
|
||||
}
|
||||
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
#include "vfw.h"
|
||||
#include "wine/winestring.h"
|
||||
#include "driver.h"
|
||||
#include "debug.h"
|
||||
#include "debugtools.h"
|
||||
|
||||
DEFAULT_DEBUG_CHANNEL(msvideo)
|
||||
|
||||
|
@ -40,7 +40,7 @@ ICInfo(
|
|||
char type[5],buf[2000];
|
||||
|
||||
memcpy(type,&fccType,4);type[4]=0;
|
||||
TRACE(msvideo,"(%s,%ld,%p).\n",type,fccHandler,lpicinfo);
|
||||
TRACE("(%s,%ld,%p).\n",type,fccHandler,lpicinfo);
|
||||
/* does OpenDriver/CloseDriver */
|
||||
lpicinfo->dwSize = sizeof(ICINFO);
|
||||
lpicinfo->fccType = fccType;
|
||||
|
@ -73,7 +73,7 @@ ICOpen(DWORD fccType,DWORD fccHandler,UINT wMode) {
|
|||
|
||||
memcpy(type,&fccType,4);type[4]=0;
|
||||
memcpy(handler,&fccHandler,4);handler[4]=0;
|
||||
TRACE(msvideo,"(%s,%s,0x%08lx)\n",type,handler,(DWORD)wMode);
|
||||
TRACE("(%s,%s,0x%08lx)\n",type,handler,(DWORD)wMode);
|
||||
sprintf(codecname,"%s.%s",type,handler);
|
||||
|
||||
/* Well, lParam2 is in fact a LPVIDEO_OPEN_PARMS, but it has the
|
||||
|
@ -108,7 +108,7 @@ FARPROC lpfnHandler) {
|
|||
|
||||
memcpy(type,&fccType,4);type[4]=0;
|
||||
memcpy(handler,&fccHandler,4);handler[4]=0;
|
||||
FIXME(msvideo,"(%s,%s,%d,%p), stub!\n",type,handler,wMode,lpfnHandler);
|
||||
FIXME("(%s,%s,%d,%p), stub!\n",type,handler,wMode,lpfnHandler);
|
||||
hic = ICOpen(fccType,fccHandler,wMode);
|
||||
if (!hic)
|
||||
return hic;
|
||||
|
@ -122,9 +122,9 @@ LRESULT WINAPI
|
|||
ICGetInfo(HIC hic,ICINFO *picinfo,DWORD cb) {
|
||||
LRESULT ret;
|
||||
|
||||
TRACE(msvideo,"(0x%08lx,%p,%ld)\n",(DWORD)hic,picinfo,cb);
|
||||
TRACE("(0x%08lx,%p,%ld)\n",(DWORD)hic,picinfo,cb);
|
||||
ret = ICSendMessage(hic,ICM_GETINFO,(DWORD)picinfo,cb);
|
||||
TRACE(msvideo," -> 0x%08lx\n",ret);
|
||||
TRACE(" -> 0x%08lx\n",ret);
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
@ -150,7 +150,7 @@ ICLocate(
|
|||
querymsg = ICM_DRAW_QUERY;
|
||||
break;
|
||||
default:
|
||||
FIXME(msvideo,"Unknown mode (%d)\n",wMode);
|
||||
FIXME("Unknown mode (%d)\n",wMode);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@ -168,7 +168,7 @@ ICLocate(
|
|||
if (hic)
|
||||
return hic;
|
||||
}
|
||||
FIXME(msvideo,"(%s,%s,%p,%p,0x%04x),unhandled!\n",type,handler,lpbiIn,lpbiOut,wMode);
|
||||
FIXME("(%s,%s,%p,%p,0x%04x),unhandled!\n",type,handler,lpbiIn,lpbiOut,wMode);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@ -179,7 +179,7 @@ HIC VFWAPI ICGetDisplayFormat(
|
|||
HIC tmphic = hic;
|
||||
LRESULT lres;
|
||||
|
||||
FIXME(msvideo,"(0x%08lx,%p,%p,%d,%d,%d),stub!\n",(DWORD)hic,lpbiIn,lpbiOut,depth,dx,dy);
|
||||
FIXME("(0x%08lx,%p,%p,%d,%d,%d),stub!\n",(DWORD)hic,lpbiIn,lpbiOut,depth,dx,dy);
|
||||
if (!tmphic) {
|
||||
tmphic=ICLocate(ICTYPE_VIDEO,0,lpbiIn,NULL,ICMODE_DECOMPRESS);
|
||||
if (!tmphic)
|
||||
|
@ -260,7 +260,7 @@ ICSendMessage(HIC hic,UINT msg,DWORD lParam1,DWORD lParam2) {
|
|||
LRESULT ret;
|
||||
WINE_HIC *whic = (WINE_HIC*)hic;
|
||||
|
||||
#define XX(x) case x: TRACE(msvideo,"(0x%08lx,"#x",0x%08lx,0x%08lx)\n",(DWORD)hic,lParam1,lParam2);break;
|
||||
#define XX(x) case x: TRACE("(0x%08lx,"#x",0x%08lx,0x%08lx)\n",(DWORD)hic,lParam1,lParam2);break;
|
||||
|
||||
switch (msg) {
|
||||
XX(ICM_ABOUT)
|
||||
|
@ -304,16 +304,16 @@ ICSendMessage(HIC hic,UINT msg,DWORD lParam1,DWORD lParam2) {
|
|||
XX(ICM_DECOMPRESSEX_END)
|
||||
XX(ICM_SET_STATUS_PROC)
|
||||
default:
|
||||
FIXME(msvideo,"(0x%08lx,0x%08lx,0x%08lx,0x%08lx)\n",(DWORD)hic,(DWORD)msg,lParam1,lParam2);
|
||||
FIXME("(0x%08lx,0x%08lx,0x%08lx,0x%08lx)\n",(DWORD)hic,(DWORD)msg,lParam1,lParam2);
|
||||
}
|
||||
#if 0
|
||||
if (whic->driverproc) {
|
||||
FIXME(msvideo,"(0x%08lx,0x%08lx,0x%08lx,0x%08lx), calling %p\n",(DWORD)hic,(DWORD)msg,lParam1,lParam2,whic->driverproc);
|
||||
FIXME("(0x%08lx,0x%08lx,0x%08lx,0x%08lx), calling %p\n",(DWORD)hic,(DWORD)msg,lParam1,lParam2,whic->driverproc);
|
||||
ret = whic->driverproc(whic->hdrv,1,msg,lParam1,lParam2);
|
||||
} else
|
||||
#endif
|
||||
ret = SendDriverMessage(whic->hdrv,msg,lParam1,lParam2);
|
||||
TRACE(msvideo," -> 0x%08lx\n",ret);
|
||||
TRACE(" -> 0x%08lx\n",ret);
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
@ -370,7 +370,7 @@ DWORD VFWAPIV ICDraw(
|
|||
|
||||
LRESULT WINAPI ICClose(HIC hic) {
|
||||
WINE_HIC *whic = (WINE_HIC*)hic;
|
||||
TRACE(msvideo,"(%d).\n",hic);
|
||||
TRACE("(%d).\n",hic);
|
||||
/* FIXME: correct? */
|
||||
CloseDriver(whic->hdrv,0,0);
|
||||
HeapFree(GetProcessHeap(),0,whic);
|
||||
|
@ -379,7 +379,7 @@ LRESULT WINAPI ICClose(HIC hic) {
|
|||
|
||||
HANDLE /* HDRAWDIB */ WINAPI
|
||||
DrawDibOpen( void ) {
|
||||
FIXME(msvideo,"stub!\n");
|
||||
FIXME("stub!\n");
|
||||
return 0xdead;
|
||||
}
|
||||
|
||||
|
@ -391,7 +391,7 @@ BOOL VFWAPI DrawDibBegin(HANDLE /*HDRAWDIB*/ hdd,
|
|||
INT dxSrc,
|
||||
INT dySrc,
|
||||
UINT wFlags) {
|
||||
FIXME(msvideo,"(%d,0x%lx,%d,%d,%p,%d,%d,0x%08lx), stub!\n",
|
||||
FIXME("(%d,0x%lx,%d,%d,%p,%d,%d,0x%08lx), stub!\n",
|
||||
hdd,(DWORD)hdc,dxDst,dyDst,lpbi,dxSrc,dySrc,(DWORD)wFlags
|
||||
);
|
||||
return TRUE;
|
||||
|
@ -400,28 +400,28 @@ BOOL VFWAPI DrawDibBegin(HANDLE /*HDRAWDIB*/ hdd,
|
|||
|
||||
BOOL VFWAPI
|
||||
DrawDibSetPalette(HANDLE /*HDRAWDIB*/ hdd, HPALETTE hpal) {
|
||||
FIXME(msvideo,"(%d,%d),stub!\n",hdd,hpal);
|
||||
FIXME("(%d,%d),stub!\n",hdd,hpal);
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
UINT VFWAPI DrawDibRealize(HANDLE /*HDRAWDIB*/ hdd, HDC hdc, BOOL fBackground) {
|
||||
FIXME(msvideo,"(0x%08lx,0x%08lx,%d),stub!\n",(DWORD)hdd,(DWORD)hdc,fBackground);
|
||||
FIXME("(0x%08lx,0x%08lx,%d),stub!\n",(DWORD)hdd,(DWORD)hdc,fBackground);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
HWND VFWAPIV MCIWndCreate (HWND hwndParent, HINSTANCE hInstance,
|
||||
DWORD dwStyle,LPVOID szFile)
|
||||
{ FIXME(msvideo,"%x %x %lx %p\n",hwndParent, hInstance, dwStyle, szFile);
|
||||
{ FIXME("%x %x %lx %p\n",hwndParent, hInstance, dwStyle, szFile);
|
||||
return 0;
|
||||
}
|
||||
HWND VFWAPIV MCIWndCreateA(HWND hwndParent, HINSTANCE hInstance,
|
||||
DWORD dwStyle,LPCSTR szFile)
|
||||
{ FIXME(msvideo,"%x %x %lx %s\n",hwndParent, hInstance, dwStyle, szFile);
|
||||
{ FIXME("%x %x %lx %s\n",hwndParent, hInstance, dwStyle, szFile);
|
||||
return 0;
|
||||
}
|
||||
HWND VFWAPIV MCIWndCreateW(HWND hwndParent, HINSTANCE hInstance,
|
||||
DWORD dwStyle,LPCWSTR szFile)
|
||||
{ FIXME(msvideo,"%x %x %lx %s\n",hwndParent, hInstance, dwStyle, debugstr_w(szFile));
|
||||
{ FIXME("%x %x %lx %s\n",hwndParent, hInstance, dwStyle, debugstr_w(szFile));
|
||||
return 0;
|
||||
}
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
#include <assert.h>
|
||||
#include "winerror.h"
|
||||
#include "debug.h"
|
||||
#include "debugtools.h"
|
||||
#include "heap.h"
|
||||
#include "winuser.h"
|
||||
#include "file.h"
|
||||
|
@ -128,7 +128,7 @@ HRESULT WINAPI AntiMonikerImpl_QueryInterface(IMoniker* iface,REFIID riid,void**
|
|||
{
|
||||
ICOM_THIS(AntiMonikerImpl,iface);
|
||||
|
||||
TRACE(ole,"(%p,%p,%p)\n",This,riid,ppvObject);
|
||||
TRACE("(%p,%p,%p)\n",This,riid,ppvObject);
|
||||
|
||||
/* Perform a sanity check on the parameters.*/
|
||||
if ( (This==0) || (ppvObject==0) )
|
||||
|
@ -164,7 +164,7 @@ ULONG WINAPI AntiMonikerImpl_AddRef(IMoniker* iface)
|
|||
{
|
||||
ICOM_THIS(AntiMonikerImpl,iface);
|
||||
|
||||
TRACE(ole,"(%p)\n",This);
|
||||
TRACE("(%p)\n",This);
|
||||
|
||||
return ++(This->ref);
|
||||
}
|
||||
|
@ -176,7 +176,7 @@ ULONG WINAPI AntiMonikerImpl_Release(IMoniker* iface)
|
|||
{
|
||||
ICOM_THIS(AntiMonikerImpl,iface);
|
||||
|
||||
TRACE(ole,"(%p)\n",This);
|
||||
TRACE("(%p)\n",This);
|
||||
|
||||
This->ref--;
|
||||
|
||||
|
@ -195,7 +195,7 @@ ULONG WINAPI AntiMonikerImpl_Release(IMoniker* iface)
|
|||
******************************************************************************/
|
||||
HRESULT WINAPI AntiMonikerImpl_GetClassID(const IMoniker* iface,CLSID *pClassID)
|
||||
{
|
||||
TRACE(ole,"(%p,%p),stub!\n",iface,pClassID);
|
||||
TRACE("(%p,%p),stub!\n",iface,pClassID);
|
||||
|
||||
if (pClassID==NULL)
|
||||
return E_POINTER;
|
||||
|
@ -214,7 +214,7 @@ HRESULT WINAPI AntiMonikerImpl_IsDirty(IMoniker* iface)
|
|||
method in the OLE-provided moniker interfaces always return S_FALSE because
|
||||
their internal state never changes. */
|
||||
|
||||
TRACE(ole,"(%p)\n",iface);
|
||||
TRACE("(%p)\n",iface);
|
||||
|
||||
return S_FALSE;
|
||||
}
|
||||
|
@ -256,7 +256,7 @@ HRESULT WINAPI AntiMonikerImpl_Save(IMoniker* iface,IStream* pStm,BOOL fClearDir
|
|||
HRESULT WINAPI AntiMonikerImpl_GetSizeMax(IMoniker* iface,
|
||||
ULARGE_INTEGER* pcbSize)/* Pointer to size of stream needed to save object */
|
||||
{
|
||||
TRACE(ole,"(%p,%p)\n",iface,pcbSize);
|
||||
TRACE("(%p,%p)\n",iface,pcbSize);
|
||||
|
||||
if (pcbSize!=NULL)
|
||||
return E_POINTER;
|
||||
|
@ -278,7 +278,7 @@ HRESULT WINAPI AntiMonikerImpl_GetSizeMax(IMoniker* iface,
|
|||
HRESULT WINAPI AntiMonikerImpl_Construct(AntiMonikerImpl* This)
|
||||
{
|
||||
|
||||
TRACE(ole,"(%p)\n",This);
|
||||
TRACE("(%p)\n",This);
|
||||
|
||||
/* Initialize the virtual fgunction table. */
|
||||
This->lpvtbl1 = &VT_AntiMonikerImpl;
|
||||
|
@ -293,7 +293,7 @@ HRESULT WINAPI AntiMonikerImpl_Construct(AntiMonikerImpl* This)
|
|||
*******************************************************************************/
|
||||
HRESULT WINAPI AntiMonikerImpl_Destroy(AntiMonikerImpl* This)
|
||||
{
|
||||
TRACE(ole,"(%p)\n",This);
|
||||
TRACE("(%p)\n",This);
|
||||
|
||||
return HeapFree(GetProcessHeap(),0,This);
|
||||
}
|
||||
|
@ -307,7 +307,7 @@ HRESULT WINAPI AntiMonikerImpl_BindToObject(IMoniker* iface,
|
|||
REFIID riid,
|
||||
VOID** ppvResult)
|
||||
{
|
||||
TRACE(ole,"(%p,%p,%p,%p,%p)\n",iface,pbc,pmkToLeft,riid,ppvResult);
|
||||
TRACE("(%p,%p,%p,%p,%p)\n",iface,pbc,pmkToLeft,riid,ppvResult);
|
||||
return E_NOTIMPL;
|
||||
}
|
||||
|
||||
|
@ -320,7 +320,7 @@ HRESULT WINAPI AntiMonikerImpl_BindToStorage(IMoniker* iface,
|
|||
REFIID riid,
|
||||
VOID** ppvResult)
|
||||
{
|
||||
TRACE(ole,"(%p,%p,%p,%p,%p)\n",iface,pbc,pmkToLeft,riid,ppvResult);
|
||||
TRACE("(%p,%p,%p,%p,%p)\n",iface,pbc,pmkToLeft,riid,ppvResult);
|
||||
return E_NOTIMPL;
|
||||
}
|
||||
|
||||
|
@ -333,7 +333,7 @@ HRESULT WINAPI AntiMonikerImpl_Reduce(IMoniker* iface,
|
|||
IMoniker** ppmkToLeft,
|
||||
IMoniker** ppmkReduced)
|
||||
{
|
||||
TRACE(ole,"(%p,%p,%ld,%p,%p)\n",iface,pbc,dwReduceHowFar,ppmkToLeft,ppmkReduced);
|
||||
TRACE("(%p,%p,%ld,%p,%p)\n",iface,pbc,dwReduceHowFar,ppmkToLeft,ppmkReduced);
|
||||
|
||||
if (ppmkReduced==NULL)
|
||||
return E_POINTER;
|
||||
|
@ -353,7 +353,7 @@ HRESULT WINAPI AntiMonikerImpl_ComposeWith(IMoniker* iface,
|
|||
IMoniker** ppmkComposite)
|
||||
{
|
||||
|
||||
TRACE(ole,"(%p,%p,%d,%p)\n",iface,pmkRight,fOnlyIfNotGeneric,ppmkComposite);
|
||||
TRACE("(%p,%p,%d,%p)\n",iface,pmkRight,fOnlyIfNotGeneric,ppmkComposite);
|
||||
|
||||
if ((ppmkComposite==NULL)||(pmkRight==NULL))
|
||||
return E_POINTER;
|
||||
|
@ -371,7 +371,7 @@ HRESULT WINAPI AntiMonikerImpl_ComposeWith(IMoniker* iface,
|
|||
******************************************************************************/
|
||||
HRESULT WINAPI AntiMonikerImpl_Enum(IMoniker* iface,BOOL fForward, IEnumMoniker** ppenumMoniker)
|
||||
{
|
||||
TRACE(ole,"(%p,%d,%p)\n",iface,fForward,ppenumMoniker);
|
||||
TRACE("(%p,%d,%p)\n",iface,fForward,ppenumMoniker);
|
||||
|
||||
if (ppenumMoniker == NULL)
|
||||
return E_POINTER;
|
||||
|
@ -388,7 +388,7 @@ HRESULT WINAPI AntiMonikerImpl_IsEqual(IMoniker* iface,IMoniker* pmkOtherMoniker
|
|||
{
|
||||
DWORD mkSys;
|
||||
|
||||
TRACE(ole,"(%p,%p)\n",iface,pmkOtherMoniker);
|
||||
TRACE("(%p,%p)\n",iface,pmkOtherMoniker);
|
||||
|
||||
if (pmkOtherMoniker==NULL)
|
||||
return S_FALSE;
|
||||
|
@ -425,7 +425,7 @@ HRESULT WINAPI AntiMonikerImpl_IsRunning(IMoniker* iface,
|
|||
IRunningObjectTable* rot;
|
||||
HRESULT res;
|
||||
|
||||
TRACE(ole,"(%p,%p,%p,%p)\n",iface,pbc,pmkToLeft,pmkNewlyRunning);
|
||||
TRACE("(%p,%p,%p,%p)\n",iface,pbc,pmkToLeft,pmkNewlyRunning);
|
||||
|
||||
if (pbc==NULL)
|
||||
return E_INVALIDARG;
|
||||
|
@ -450,7 +450,7 @@ HRESULT WINAPI AntiMonikerImpl_GetTimeOfLastChange(IMoniker* iface,
|
|||
IMoniker* pmkToLeft,
|
||||
FILETIME* pAntiTime)
|
||||
{
|
||||
TRACE(ole,"(%p,%p,%p,%p)\n",iface,pbc,pmkToLeft,pAntiTime);
|
||||
TRACE("(%p,%p,%p,%p)\n",iface,pbc,pmkToLeft,pAntiTime);
|
||||
return E_NOTIMPL;
|
||||
}
|
||||
|
||||
|
@ -459,7 +459,7 @@ HRESULT WINAPI AntiMonikerImpl_GetTimeOfLastChange(IMoniker* iface,
|
|||
******************************************************************************/
|
||||
HRESULT WINAPI AntiMonikerImpl_Inverse(IMoniker* iface,IMoniker** ppmk)
|
||||
{
|
||||
TRACE(ole,"(%p,%p)\n",iface,ppmk);
|
||||
TRACE("(%p,%p)\n",iface,ppmk);
|
||||
|
||||
if (ppmk==NULL)
|
||||
return E_POINTER;
|
||||
|
@ -497,7 +497,7 @@ HRESULT WINAPI AntiMonikerImpl_CommonPrefixWith(IMoniker* iface,IMoniker* pmkOth
|
|||
******************************************************************************/
|
||||
HRESULT WINAPI AntiMonikerImpl_RelativePathTo(IMoniker* iface,IMoniker* pmOther, IMoniker** ppmkRelPath)
|
||||
{
|
||||
TRACE(ole,"(%p,%p,%p)\n",iface,pmOther,ppmkRelPath);
|
||||
TRACE("(%p,%p,%p)\n",iface,pmOther,ppmkRelPath);
|
||||
|
||||
if (ppmkRelPath==NULL)
|
||||
return E_POINTER;
|
||||
|
@ -519,13 +519,13 @@ HRESULT WINAPI AntiMonikerImpl_GetDisplayName(IMoniker* iface,
|
|||
{
|
||||
WCHAR back[]={'\\','.','.',0};
|
||||
|
||||
TRACE(ole,"(%p,%p,%p,%p)\n",iface,pbc,pmkToLeft,ppszDisplayName);
|
||||
TRACE("(%p,%p,%p,%p)\n",iface,pbc,pmkToLeft,ppszDisplayName);
|
||||
|
||||
if (ppszDisplayName==NULL)
|
||||
return E_POINTER;
|
||||
|
||||
if (pmkToLeft!=NULL){
|
||||
FIXME(ole,"() pmkToLeft!=NULL not implemented \n");
|
||||
FIXME("() pmkToLeft!=NULL not implemented \n");
|
||||
return E_NOTIMPL;
|
||||
}
|
||||
|
||||
|
@ -549,7 +549,7 @@ HRESULT WINAPI AntiMonikerImpl_ParseDisplayName(IMoniker* iface,
|
|||
ULONG* pchEaten,
|
||||
IMoniker** ppmkOut)
|
||||
{
|
||||
TRACE(ole,"(%p,%p,%p,%p,%p,%p)\n",iface,pbc,pmkToLeft,pszDisplayName,pchEaten,ppmkOut);
|
||||
TRACE("(%p,%p,%p,%p,%p,%p)\n",iface,pbc,pmkToLeft,pszDisplayName,pchEaten,ppmkOut);
|
||||
return E_NOTIMPL;
|
||||
}
|
||||
|
||||
|
@ -558,7 +558,7 @@ HRESULT WINAPI AntiMonikerImpl_ParseDisplayName(IMoniker* iface,
|
|||
******************************************************************************/
|
||||
HRESULT WINAPI AntiMonikerImpl_IsSystemMoniker(IMoniker* iface,DWORD* pwdMksys)
|
||||
{
|
||||
TRACE(ole,"(%p,%p)\n",iface,pwdMksys);
|
||||
TRACE("(%p,%p)\n",iface,pwdMksys);
|
||||
|
||||
if (!pwdMksys)
|
||||
return E_POINTER;
|
||||
|
@ -576,7 +576,7 @@ HRESULT WINAPI AntiMonikerROTDataImpl_QueryInterface(IROTData *iface,REFIID riid
|
|||
|
||||
ICOM_THIS_From_IROTData(IMoniker, iface);
|
||||
|
||||
TRACE(ole,"(%p,%p,%p)\n",iface,riid,ppvObject);
|
||||
TRACE("(%p,%p,%p)\n",iface,riid,ppvObject);
|
||||
|
||||
return AntiMonikerImpl_QueryInterface(This, riid, ppvObject);
|
||||
}
|
||||
|
@ -588,7 +588,7 @@ ULONG WINAPI AntiMonikerROTDataImpl_AddRef(IROTData *iface)
|
|||
{
|
||||
ICOM_THIS_From_IROTData(IMoniker, iface);
|
||||
|
||||
TRACE(ole,"(%p)\n",iface);
|
||||
TRACE("(%p)\n",iface);
|
||||
|
||||
return AntiMonikerImpl_AddRef(This);
|
||||
}
|
||||
|
@ -600,7 +600,7 @@ ULONG WINAPI AntiMonikerROTDataImpl_Release(IROTData* iface)
|
|||
{
|
||||
ICOM_THIS_From_IROTData(IMoniker, iface);
|
||||
|
||||
TRACE(ole,"(%p)\n",iface);
|
||||
TRACE("(%p)\n",iface);
|
||||
|
||||
return AntiMonikerImpl_Release(This);
|
||||
}
|
||||
|
@ -613,7 +613,7 @@ HRESULT WINAPI AntiMonikerROTDataImpl_GetComparaisonData(IROTData* iface,
|
|||
ULONG cbMax,
|
||||
ULONG* pcbData)
|
||||
{
|
||||
FIXME(ole,"(),stub!\n");
|
||||
FIXME("(),stub!\n");
|
||||
return E_NOTIMPL;
|
||||
}
|
||||
|
||||
|
@ -626,7 +626,7 @@ HRESULT WINAPI CreateAntiMoniker(LPMONIKER * ppmk)
|
|||
HRESULT hr = S_OK;
|
||||
IID riid=IID_IMoniker;
|
||||
|
||||
TRACE(ole,"(%p)\n",ppmk);
|
||||
TRACE("(%p)\n",ppmk);
|
||||
|
||||
newAntiMoniker = HeapAlloc(GetProcessHeap(), 0, sizeof(AntiMonikerImpl));
|
||||
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
#include <assert.h>
|
||||
#include "winerror.h"
|
||||
#include "wine/obj_moniker.h"
|
||||
#include "debug.h"
|
||||
#include "debugtools.h"
|
||||
#include "heap.h"
|
||||
|
||||
DEFAULT_DEBUG_CHANNEL(ole)
|
||||
|
@ -91,7 +91,7 @@ HRESULT WINAPI BindCtxImpl_QueryInterface(IBindCtx* iface,REFIID riid,void** ppv
|
|||
{
|
||||
ICOM_THIS(BindCtxImpl,iface);
|
||||
|
||||
TRACE(ole,"(%p,%p,%p)\n",This,riid,ppvObject);
|
||||
TRACE("(%p,%p,%p)\n",This,riid,ppvObject);
|
||||
|
||||
/* Perform a sanity check on the parameters.*/
|
||||
if ( (This==0) || (ppvObject==0) )
|
||||
|
@ -124,7 +124,7 @@ ULONG WINAPI BindCtxImpl_AddRef(IBindCtx* iface)
|
|||
{
|
||||
ICOM_THIS(BindCtxImpl,iface);
|
||||
|
||||
TRACE(ole,"(%p)\n",This);
|
||||
TRACE("(%p)\n",This);
|
||||
|
||||
return ++(This->ref);
|
||||
}
|
||||
|
@ -136,7 +136,7 @@ ULONG WINAPI BindCtxImpl_Release(IBindCtx* iface)
|
|||
{
|
||||
ICOM_THIS(BindCtxImpl,iface);
|
||||
|
||||
TRACE(ole,"(%p)\n",This);
|
||||
TRACE("(%p)\n",This);
|
||||
|
||||
This->ref--;
|
||||
|
||||
|
@ -158,7 +158,7 @@ ULONG WINAPI BindCtxImpl_Release(IBindCtx* iface)
|
|||
*******************************************************************************/
|
||||
HRESULT WINAPI BindCtxImpl_Construct(BindCtxImpl* This)
|
||||
{
|
||||
TRACE(ole,"(%p)\n",This);
|
||||
TRACE("(%p)\n",This);
|
||||
|
||||
/* Initialize the virtual function table.*/
|
||||
This->lpvtbl = &VT_BindCtxImpl;
|
||||
|
@ -191,7 +191,7 @@ HRESULT WINAPI BindCtxImpl_Construct(BindCtxImpl* This)
|
|||
*******************************************************************************/
|
||||
HRESULT WINAPI BindCtxImpl_Destroy(BindCtxImpl* This)
|
||||
{
|
||||
TRACE(ole,"(%p)\n",This);
|
||||
TRACE("(%p)\n",This);
|
||||
|
||||
/* free the table space memory */
|
||||
HeapFree(GetProcessHeap(),0,This->bindCtxTable);
|
||||
|
@ -213,7 +213,7 @@ HRESULT WINAPI BindCtxImpl_RegisterObjectBound(IBindCtx* iface,IUnknown* punk)
|
|||
DWORD lastIndex=This->bindCtxTableLastIndex;
|
||||
BindCtxObject cell;
|
||||
|
||||
TRACE(ole,"(%p,%p)\n",This,punk);
|
||||
TRACE("(%p,%p)\n",This,punk);
|
||||
|
||||
if (punk==NULL)
|
||||
return E_POINTER;
|
||||
|
@ -230,7 +230,7 @@ HRESULT WINAPI BindCtxImpl_RegisterObjectBound(IBindCtx* iface,IUnknown* punk)
|
|||
if (lastIndex == This->bindCtxTableSize){ /* the table is full so it must be resized */
|
||||
|
||||
if (This->bindCtxTableSize > (MAX_TAB_SIZE-BLOCK_TAB_SIZE)){
|
||||
FIXME(ole,"This->bindCtxTableSize: %ld is out of data limite \n",This->bindCtxTableSize);
|
||||
FIXME("This->bindCtxTableSize: %ld is out of data limite \n",This->bindCtxTableSize);
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
|
@ -253,7 +253,7 @@ HRESULT WINAPI BindCtxImpl_RevokeObjectBound(IBindCtx* iface, IUnknown* punk)
|
|||
|
||||
ICOM_THIS(BindCtxImpl,iface);
|
||||
|
||||
TRACE(ole,"(%p,%p)\n",This,punk);
|
||||
TRACE("(%p,%p)\n",This,punk);
|
||||
|
||||
/* check if the object was registred or not */
|
||||
if (BindCtxImpl_GetObjectIndex(This,punk,NULL,&index)==S_FALSE)
|
||||
|
@ -280,7 +280,7 @@ HRESULT WINAPI BindCtxImpl_ReleaseBoundObjects(IBindCtx* iface)
|
|||
|
||||
ICOM_THIS(BindCtxImpl,iface);
|
||||
|
||||
TRACE(ole,"(%p)\n",This);
|
||||
TRACE("(%p)\n",This);
|
||||
|
||||
for(i=0;i<This->bindCtxTableLastIndex;i++)
|
||||
IUnknown_Release(This->bindCtxTable[i].pObj);
|
||||
|
@ -297,7 +297,7 @@ HRESULT WINAPI BindCtxImpl_SetBindOptions(IBindCtx* iface,LPBIND_OPTS2 pbindopts
|
|||
{
|
||||
ICOM_THIS(BindCtxImpl,iface);
|
||||
|
||||
TRACE(ole,"(%p,%p)\n",This,pbindopts);
|
||||
TRACE("(%p,%p)\n",This,pbindopts);
|
||||
|
||||
if (pbindopts==NULL)
|
||||
return E_POINTER;
|
||||
|
@ -314,7 +314,7 @@ HRESULT WINAPI BindCtxImpl_GetBindOptions(IBindCtx* iface,LPBIND_OPTS2 pbindopts
|
|||
{
|
||||
ICOM_THIS(BindCtxImpl,iface);
|
||||
|
||||
TRACE(ole,"(%p,%p)\n",This,pbindopts);
|
||||
TRACE("(%p,%p)\n",This,pbindopts);
|
||||
|
||||
if (pbindopts==NULL)
|
||||
return E_POINTER;
|
||||
|
@ -333,7 +333,7 @@ HRESULT WINAPI BindCtxImpl_GetRunningObjectTable(IBindCtx* iface,IRunningObjectT
|
|||
|
||||
ICOM_THIS(BindCtxImpl,iface);
|
||||
|
||||
TRACE(ole,"(%p,%p)\n",This,pprot);
|
||||
TRACE("(%p,%p)\n",This,pprot);
|
||||
|
||||
if (pprot==NULL)
|
||||
return E_POINTER;
|
||||
|
@ -350,7 +350,7 @@ HRESULT WINAPI BindCtxImpl_RegisterObjectParam(IBindCtx* iface,LPOLESTR pszkey,
|
|||
{
|
||||
ICOM_THIS(BindCtxImpl,iface);
|
||||
|
||||
TRACE(ole,"(%p,%p,%p)\n",This,pszkey,punk);
|
||||
TRACE("(%p,%p,%p)\n",This,pszkey,punk);
|
||||
|
||||
if (punk==NULL)
|
||||
return E_INVALIDARG;
|
||||
|
@ -381,7 +381,7 @@ HRESULT WINAPI BindCtxImpl_RegisterObjectParam(IBindCtx* iface,LPOLESTR pszkey,
|
|||
This->bindCtxTableSize+=BLOCK_TAB_SIZE; /* new table size */
|
||||
|
||||
if (This->bindCtxTableSize > (MAX_TAB_SIZE-BLOCK_TAB_SIZE)){
|
||||
FIXME(ole,"This->bindCtxTableSize: %ld is out of data limite \n",This->bindCtxTableSize);
|
||||
FIXME("This->bindCtxTableSize: %ld is out of data limite \n",This->bindCtxTableSize);
|
||||
return E_FAIL;
|
||||
}
|
||||
This->bindCtxTable = HeapReAlloc(GetProcessHeap(),HEAP_ZERO_MEMORY,This->bindCtxTable,
|
||||
|
@ -399,7 +399,7 @@ HRESULT WINAPI BindCtxImpl_GetObjectParam(IBindCtx* iface,LPOLESTR pszkey, IUnkn
|
|||
DWORD index;
|
||||
ICOM_THIS(BindCtxImpl,iface);
|
||||
|
||||
TRACE(ole,"(%p,%p,%p)\n",This,pszkey,punk);
|
||||
TRACE("(%p,%p,%p)\n",This,pszkey,punk);
|
||||
|
||||
if (punk==NULL)
|
||||
return E_POINTER;
|
||||
|
@ -425,7 +425,7 @@ HRESULT WINAPI BindCtxImpl_RevokeObjectParam(IBindCtx* iface,LPOLESTR ppenum)
|
|||
|
||||
ICOM_THIS(BindCtxImpl,iface);
|
||||
|
||||
TRACE(ole,"(%p,%p)\n",This,ppenum);
|
||||
TRACE("(%p,%p)\n",This,ppenum);
|
||||
|
||||
if (BindCtxImpl_GetObjectIndex(This,NULL,ppenum,&index)==S_FALSE)
|
||||
return E_FAIL;
|
||||
|
@ -447,7 +447,7 @@ HRESULT WINAPI BindCtxImpl_RevokeObjectParam(IBindCtx* iface,LPOLESTR ppenum)
|
|||
******************************************************************************/
|
||||
HRESULT WINAPI BindCtxImpl_EnumObjectParam(IBindCtx* iface,IEnumString** pszkey)
|
||||
{
|
||||
FIXME(ole,"(%p,%p),stub!\n",iface,pszkey);
|
||||
FIXME("(%p,%p),stub!\n",iface,pszkey);
|
||||
return E_NOTIMPL;
|
||||
}
|
||||
|
||||
|
@ -463,7 +463,7 @@ HRESULT WINAPI BindCtxImpl_GetObjectIndex(BindCtxImpl* This,
|
|||
DWORD i;
|
||||
BYTE found=0;
|
||||
|
||||
TRACE(ole,"(%p,%p,%p,%p)\n",This,punk,pszkey,index);
|
||||
TRACE("(%p,%p,%p,%p)\n",This,punk,pszkey,index);
|
||||
|
||||
if (punk==NULL)
|
||||
/* search object identified by a register key */
|
||||
|
@ -501,7 +501,7 @@ HRESULT WINAPI BindCtxImpl_GetObjectIndex(BindCtxImpl* This,
|
|||
******************************************************************************/
|
||||
HRESULT WINAPI CreateBindCtx16(DWORD reserved, LPBC * ppbc)
|
||||
{
|
||||
FIXME(ole,"(%ld,%p),stub!\n",reserved,ppbc);
|
||||
FIXME("(%ld,%p),stub!\n",reserved,ppbc);
|
||||
return E_NOTIMPL;
|
||||
}
|
||||
|
||||
|
@ -514,7 +514,7 @@ HRESULT WINAPI CreateBindCtx(DWORD reserved, LPBC * ppbc)
|
|||
HRESULT hr;
|
||||
IID riid=IID_IBindCtx;
|
||||
|
||||
TRACE(ole,"(%ld,%p)\n",reserved,ppbc);
|
||||
TRACE("(%ld,%p)\n",reserved,ppbc);
|
||||
|
||||
newBindCtx = HeapAlloc(GetProcessHeap(), 0, sizeof(BindCtxImpl));
|
||||
|
||||
|
|
|
@ -39,7 +39,7 @@
|
|||
#include "winerror.h"
|
||||
#include "ole.h"
|
||||
#include "ole2ver.h"
|
||||
#include "debug.h"
|
||||
#include "debugtools.h"
|
||||
#include "file.h"
|
||||
#include "heap.h"
|
||||
#include "ldt.h"
|
||||
|
@ -190,7 +190,7 @@ static void COM_RevokeAllClasses();
|
|||
*/
|
||||
DWORD WINAPI CoBuildVersion(void)
|
||||
{
|
||||
TRACE(ole,"(void)\n");
|
||||
TRACE("(void)\n");
|
||||
return (rmm<<16)+rup;
|
||||
}
|
||||
|
||||
|
@ -249,11 +249,11 @@ HRESULT WINAPI CoInitializeEx(
|
|||
{
|
||||
HRESULT hr;
|
||||
|
||||
TRACE(ole, "(%p, %x)\n", lpReserved, (int)dwCoInit);
|
||||
TRACE("(%p, %x)\n", lpReserved, (int)dwCoInit);
|
||||
|
||||
if (lpReserved!=NULL)
|
||||
{
|
||||
ERR(ole,"(%p, %x) - Bad parameter passed-in %p, must be an old Windows Application\n", lpReserved, (int)dwCoInit, lpReserved);
|
||||
ERR("(%p, %x) - Bad parameter passed-in %p, must be an old Windows Application\n", lpReserved, (int)dwCoInit, lpReserved);
|
||||
}
|
||||
|
||||
/*
|
||||
|
@ -261,7 +261,7 @@ HRESULT WINAPI CoInitializeEx(
|
|||
*/
|
||||
if (dwCoInit!=COINIT_APARTMENTTHREADED)
|
||||
{
|
||||
FIXME(ole, ":(%p,%x): unsupported flag %x\n", lpReserved, (int)dwCoInit, (int)dwCoInit);
|
||||
FIXME(":(%p,%x): unsupported flag %x\n", lpReserved, (int)dwCoInit, (int)dwCoInit);
|
||||
/* Hope for the best and continue anyway */
|
||||
}
|
||||
|
||||
|
@ -274,7 +274,7 @@ HRESULT WINAPI CoInitializeEx(
|
|||
/*
|
||||
* Initialize the various COM libraries and data structures.
|
||||
*/
|
||||
TRACE(ole, "() - Initializing the COM libraries\n");
|
||||
TRACE("() - Initializing the COM libraries\n");
|
||||
|
||||
RunningObjectTableImpl_Initialize();
|
||||
|
||||
|
@ -299,7 +299,7 @@ HRESULT WINAPI CoInitializeEx(
|
|||
*/
|
||||
void WINAPI CoUninitialize16(void)
|
||||
{
|
||||
TRACE(ole,"()\n");
|
||||
TRACE("()\n");
|
||||
CoFreeAllLibraries();
|
||||
}
|
||||
|
||||
|
@ -312,7 +312,7 @@ void WINAPI CoUninitialize16(void)
|
|||
*/
|
||||
void WINAPI CoUninitialize(void)
|
||||
{
|
||||
TRACE(ole,"()\n");
|
||||
TRACE("()\n");
|
||||
|
||||
/*
|
||||
* Decrease the reference count.
|
||||
|
@ -328,7 +328,7 @@ void WINAPI CoUninitialize(void)
|
|||
/*
|
||||
* Release the various COM libraries and data structures.
|
||||
*/
|
||||
TRACE(ole, "() - Releasing the COM libraries\n");
|
||||
TRACE("() - Releasing the COM libraries\n");
|
||||
|
||||
RunningObjectTableImpl_UnInitialize();
|
||||
/*
|
||||
|
@ -396,7 +396,7 @@ HRESULT WINAPI CoCreateStandardMalloc16(DWORD dwMemContext,
|
|||
*/
|
||||
HRESULT WINAPI CoDisconnectObject( LPUNKNOWN lpUnk, DWORD reserved )
|
||||
{
|
||||
TRACE(ole,"%p %lx\n",lpUnk,reserved);
|
||||
TRACE("%p %lx\n",lpUnk,reserved);
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
@ -450,7 +450,7 @@ HRESULT WINAPI CLSIDFromString16(
|
|||
int i;
|
||||
BYTE table[256];
|
||||
|
||||
TRACE(ole,"%s -> %p\n", idstr, id);
|
||||
TRACE("%s -> %p\n", idstr, id);
|
||||
|
||||
/* quick lookup table */
|
||||
memset(table, 0, 256);
|
||||
|
@ -701,7 +701,7 @@ sizeof((i).ifr_name)+(i).ifr_addr.sa_len)
|
|||
((unsigned char*)pguid->Data4)[6] = a[4];
|
||||
((unsigned char*)pguid->Data4)[7] = a[5];
|
||||
|
||||
TRACE(ole, "%p", pguid);
|
||||
TRACE("%p", pguid);
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
@ -742,7 +742,7 @@ HRESULT WINE_StringFromCLSID(
|
|||
int i;
|
||||
|
||||
if (!id)
|
||||
{ ERR(ole,"called with id=Null\n");
|
||||
{ ERR("called with id=Null\n");
|
||||
*idstr = 0x00;
|
||||
return E_FAIL;
|
||||
}
|
||||
|
@ -761,7 +761,7 @@ HRESULT WINE_StringFromCLSID(
|
|||
*s++ = '}';
|
||||
*s++ = '\0';
|
||||
|
||||
TRACE(ole,"%p->%s\n", id, idstr);
|
||||
TRACE("%p->%s\n", id, idstr);
|
||||
|
||||
return OLE_OK;
|
||||
}
|
||||
|
@ -800,7 +800,7 @@ HRESULT WINAPI StringFromCLSID16(
|
|||
(LPVOID)args,
|
||||
(LPDWORD)idstr
|
||||
)) {
|
||||
WARN(ole,"CallTo16 IMalloc16 failed\n");
|
||||
WARN("CallTo16 IMalloc16 failed\n");
|
||||
return E_FAIL;
|
||||
}
|
||||
return WINE_StringFromCLSID(id,PTR_SEG_TO_LIN(*idstr));
|
||||
|
@ -910,7 +910,7 @@ HRESULT WINAPI CLSIDFromProgID(
|
|||
*/
|
||||
HRESULT WINAPI WriteClassStm(IStream *pStm,REFCLSID rclsid)
|
||||
{
|
||||
TRACE(ole,"(%p,%p)\n",pStm,rclsid);
|
||||
TRACE("(%p,%p)\n",pStm,rclsid);
|
||||
|
||||
if (rclsid==NULL)
|
||||
return E_INVALIDARG;
|
||||
|
@ -928,7 +928,7 @@ HRESULT WINAPI ReadClassStm(IStream *pStm,REFCLSID rclsid)
|
|||
ULONG nbByte;
|
||||
HRESULT res;
|
||||
|
||||
TRACE(ole,"(%p,%p)\n",pStm,rclsid);
|
||||
TRACE("(%p,%p)\n",pStm,rclsid);
|
||||
|
||||
if (rclsid==NULL)
|
||||
return E_INVALIDARG;
|
||||
|
@ -949,7 +949,7 @@ HRESULT WINAPI ReadClassStm(IStream *pStm,REFCLSID rclsid)
|
|||
* LookupETask (COMPOBJ.94)
|
||||
*/
|
||||
OLESTATUS WINAPI LookupETask16(HTASK16 *hTask,LPVOID p) {
|
||||
FIXME(ole,"(%p,%p),stub!\n",hTask,p);
|
||||
FIXME("(%p,%p),stub!\n",hTask,p);
|
||||
if ((*hTask = GetCurrentTask()) == hETask) {
|
||||
memcpy(p, Table_ETask, sizeof(Table_ETask));
|
||||
}
|
||||
|
@ -961,7 +961,7 @@ OLESTATUS WINAPI LookupETask16(HTASK16 *hTask,LPVOID p) {
|
|||
* SetETask (COMPOBJ.95)
|
||||
*/
|
||||
OLESTATUS WINAPI SetETask16(HTASK16 hTask, LPVOID p) {
|
||||
FIXME(ole,"(%04x,%p),stub!\n",hTask,p);
|
||||
FIXME("(%04x,%p),stub!\n",hTask,p);
|
||||
hETask = hTask;
|
||||
return 0;
|
||||
}
|
||||
|
@ -971,7 +971,7 @@ OLESTATUS WINAPI SetETask16(HTASK16 hTask, LPVOID p) {
|
|||
* CallObjectInWOW (COMPOBJ.201)
|
||||
*/
|
||||
OLESTATUS WINAPI CallObjectInWOW(LPVOID p1,LPVOID p2) {
|
||||
FIXME(ole,"(%p,%p),stub!\n",p1,p2);
|
||||
FIXME("(%p,%p),stub!\n",p1,p2);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@ -991,7 +991,7 @@ HRESULT WINAPI CoRegisterClassObject16(
|
|||
|
||||
WINE_StringFromCLSID(rclsid,buf);
|
||||
|
||||
FIXME(ole,"(%s,%p,0x%08lx,0x%08lx,%p),stub\n",
|
||||
FIXME("(%s,%p,0x%08lx,0x%08lx,%p),stub\n",
|
||||
buf,pUnk,dwClsContext,flags,lpdwRegister
|
||||
);
|
||||
return 0;
|
||||
|
@ -1083,7 +1083,7 @@ HRESULT WINAPI CoRegisterClassObject(
|
|||
|
||||
WINE_StringFromCLSID(rclsid,buf);
|
||||
|
||||
TRACE(ole,"(%s,%p,0x%08lx,0x%08lx,%p)\n",
|
||||
TRACE("(%s,%p,0x%08lx,0x%08lx,%p)\n",
|
||||
buf,pUnk,dwClsContext,flags,lpdwRegister);
|
||||
|
||||
/*
|
||||
|
@ -1166,7 +1166,7 @@ HRESULT WINAPI CoRevokeClassObject(
|
|||
RegisteredClass** prevClassLink;
|
||||
RegisteredClass* curClass;
|
||||
|
||||
TRACE(ole,"(%08lx)\n",dwRegister);
|
||||
TRACE("(%08lx)\n",dwRegister);
|
||||
|
||||
/*
|
||||
* Iterate through the whole list and try to match the cookie.
|
||||
|
@ -1231,7 +1231,7 @@ HRESULT WINAPI CoGetClassObject(REFCLSID rclsid, DWORD dwClsContext,
|
|||
|
||||
WINE_StringFromCLSID((LPCLSID)rclsid,xclsid);
|
||||
WINE_StringFromCLSID((LPCLSID)iid,xiid);
|
||||
TRACE(ole,"\n\tCLSID:\t%s,\n\tIID:\t%s\n",xclsid,xiid);
|
||||
TRACE("\n\tCLSID:\t%s,\n\tIID:\t%s\n",xclsid,xiid);
|
||||
|
||||
/*
|
||||
* First, try and see if we can't match the class ID with one of the
|
||||
|
@ -1256,7 +1256,7 @@ HRESULT WINAPI CoGetClassObject(REFCLSID rclsid, DWORD dwClsContext,
|
|||
|
||||
/* out of process and remote servers not supported yet */
|
||||
if ((CLSCTX_LOCAL_SERVER|CLSCTX_REMOTE_SERVER) & dwClsContext) {
|
||||
FIXME(ole, "CLSCTX_LOCAL_SERVER and CLSCTX_REMOTE_SERVER not supported!\n");
|
||||
FIXME("CLSCTX_LOCAL_SERVER and CLSCTX_REMOTE_SERVER not supported!\n");
|
||||
return E_ACCESSDENIED;
|
||||
}
|
||||
|
||||
|
@ -1279,18 +1279,18 @@ HRESULT WINAPI CoGetClassObject(REFCLSID rclsid, DWORD dwClsContext,
|
|||
RegCloseKey(CLSIDkey);
|
||||
if (hres != ERROR_SUCCESS)
|
||||
return REGDB_E_READREGDB;
|
||||
TRACE(ole,"found InprocServer32 dll %s\n", dllName);
|
||||
TRACE("found InprocServer32 dll %s\n", dllName);
|
||||
|
||||
/* open dll, call DllGetClassFactory */
|
||||
hLibrary = CoLoadLibrary(dllName, TRUE);
|
||||
if (hLibrary == 0) {
|
||||
TRACE(ole,"couldn't load InprocServer32 dll %s\n", dllName);
|
||||
TRACE("couldn't load InprocServer32 dll %s\n", dllName);
|
||||
return E_ACCESSDENIED; /* or should this be CO_E_DLLNOTFOUND? */
|
||||
}
|
||||
DllGetClassObject = (DllGetClassObjectFunc)GetProcAddress(hLibrary, "DllGetClassObject");
|
||||
if (!DllGetClassObject) {
|
||||
/* not sure if this should be called here CoFreeLibrary(hLibrary);*/
|
||||
TRACE(ole,"couldn't find function DllGetClassObject in %s\n", dllName);
|
||||
TRACE("couldn't find function DllGetClassObject in %s\n", dllName);
|
||||
return E_ACCESSDENIED;
|
||||
}
|
||||
|
||||
|
@ -1317,7 +1317,7 @@ HRESULT WINAPI GetClassFile(LPOLESTR filePathName,CLSID *pclsid)
|
|||
LPOLESTR *pathDec=0,absFile=0,progId=0;
|
||||
WCHAR extention[100]={0};
|
||||
|
||||
TRACE(ole,"()\n");
|
||||
TRACE("()\n");
|
||||
|
||||
/* if the file contain a storage object the return the CLSID writen by IStorage_SetClass method*/
|
||||
if((StgIsStorageFile(filePathName))==S_OK){
|
||||
|
@ -1401,7 +1401,7 @@ HRESULT WINAPI CoRegisterMessageFilter16(
|
|||
LPMESSAGEFILTER lpMessageFilter,
|
||||
LPMESSAGEFILTER *lplpMessageFilter
|
||||
) {
|
||||
FIXME(ole,"(%p,%p),stub!\n",lpMessageFilter,lplpMessageFilter);
|
||||
FIXME("(%p,%p),stub!\n",lpMessageFilter,lplpMessageFilter);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@ -1473,7 +1473,7 @@ HRESULT WINAPI CoCreateInstanceEx(
|
|||
return E_INVALIDARG;
|
||||
|
||||
if (pServerInfo!=NULL)
|
||||
FIXME(ole, "() non-NULL pServerInfo not supported!\n");
|
||||
FIXME("() non-NULL pServerInfo not supported!\n");
|
||||
|
||||
/*
|
||||
* Initialize all the "out" parameters.
|
||||
|
@ -1673,7 +1673,7 @@ HINSTANCE WINAPI CoLoadLibrary(LPOLESTR16 lpszLibName, BOOL bAutoFree)
|
|||
OpenDll *ptr;
|
||||
OpenDll *tmp;
|
||||
|
||||
TRACE(ole,"CoLoadLibrary(%p, %d\n", lpszLibName, bAutoFree);
|
||||
TRACE("CoLoadLibrary(%p, %d\n", lpszLibName, bAutoFree);
|
||||
|
||||
hLibrary = LoadLibraryA(lpszLibName);
|
||||
|
||||
|
@ -1712,7 +1712,7 @@ HINSTANCE WINAPI CoLoadLibrary(LPOLESTR16 lpszLibName, BOOL bAutoFree)
|
|||
* CoInitializeWOW (OLE32.27)
|
||||
*/
|
||||
HRESULT WINAPI CoInitializeWOW(DWORD x,DWORD y) {
|
||||
FIXME(ole,"(0x%08lx,0x%08lx),stub!\n",x,y);
|
||||
FIXME("(0x%08lx,0x%08lx),stub!\n",x,y);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@ -1724,7 +1724,7 @@ HRESULT WINAPI CoLockObjectExternal16(
|
|||
BOOL16 fLock, /* [in] do lock */
|
||||
BOOL16 fLastUnlockReleases /* [in] ? */
|
||||
) {
|
||||
FIXME(ole,"(%p,%d,%d),stub!\n",pUnk,fLock,fLastUnlockReleases);
|
||||
FIXME("(%p,%d,%d),stub!\n",pUnk,fLock,fLastUnlockReleases);
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
@ -1762,7 +1762,7 @@ HRESULT WINAPI CoLockObjectExternal(
|
|||
*/
|
||||
HRESULT WINAPI CoGetState16(LPDWORD state)
|
||||
{
|
||||
FIXME(ole, "(%p),stub!\n", state);
|
||||
FIXME("(%p),stub!\n", state);
|
||||
*state = 0;
|
||||
return S_OK;
|
||||
}
|
||||
|
@ -1771,7 +1771,7 @@ HRESULT WINAPI CoGetState16(LPDWORD state)
|
|||
*/
|
||||
HRESULT WINAPI CoSetState(LPDWORD state)
|
||||
{
|
||||
FIXME(ole, "(%p),stub!\n", state);
|
||||
FIXME("(%p),stub!\n", state);
|
||||
if (state) *state = 0;
|
||||
return S_OK;
|
||||
}
|
||||
|
@ -1996,7 +1996,7 @@ static void COM_ExternalLockDelete(
|
|||
*/
|
||||
BOOL WINAPI COMPOBJ_DllEntryPoint(DWORD Reason, HINSTANCE16 hInst, WORD ds, WORD HeapSize, DWORD res1, WORD res2)
|
||||
{
|
||||
TRACE(ole, "(%08lx, %04x, %04x, %04x, %08lx, %04x)\n", Reason, hInst, ds, HeapSize,
|
||||
TRACE("(%08lx, %04x, %04x, %04x, %08lx, %04x)\n", Reason, hInst, ds, HeapSize,
|
||||
res1, res2);
|
||||
switch(Reason)
|
||||
{
|
||||
|
@ -2004,7 +2004,7 @@ BOOL WINAPI COMPOBJ_DllEntryPoint(DWORD Reason, HINSTANCE16 hInst, WORD ds, WORD
|
|||
COMPOBJ_Attach++;
|
||||
if(COMPOBJ_hInstance)
|
||||
{
|
||||
ERR(ole, "compobj.dll instantiated twice!\n");
|
||||
ERR("compobj.dll instantiated twice!\n");
|
||||
/*
|
||||
* We should return FALSE here, but that will break
|
||||
* most apps that use CreateProcess because we do
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
#include <assert.h>
|
||||
#include "winerror.h"
|
||||
#include "debug.h"
|
||||
#include "debugtools.h"
|
||||
#include "heap.h"
|
||||
#include "winuser.h"
|
||||
#include "file.h"
|
||||
|
@ -185,7 +185,7 @@ HRESULT WINAPI CompositeMonikerImpl_QueryInterface(IMoniker* iface,REFIID riid,v
|
|||
{
|
||||
ICOM_THIS(CompositeMonikerImpl,iface);
|
||||
|
||||
TRACE(ole,"(%p,%p,%p)\n",This,riid,ppvObject);
|
||||
TRACE("(%p,%p,%p)\n",This,riid,ppvObject);
|
||||
|
||||
/* Perform a sanity check on the parameters.*/
|
||||
if ( (This==0) || (ppvObject==0) )
|
||||
|
@ -221,7 +221,7 @@ ULONG WINAPI CompositeMonikerImpl_AddRef(IMoniker* iface)
|
|||
{
|
||||
ICOM_THIS(CompositeMonikerImpl,iface);
|
||||
|
||||
TRACE(ole,"(%p)\n",This);
|
||||
TRACE("(%p)\n",This);
|
||||
|
||||
return ++(This->ref);
|
||||
}
|
||||
|
@ -234,7 +234,7 @@ ULONG WINAPI CompositeMonikerImpl_Release(IMoniker* iface)
|
|||
ICOM_THIS(CompositeMonikerImpl,iface);
|
||||
ULONG i;
|
||||
|
||||
TRACE(ole,"(%p)\n",This);
|
||||
TRACE("(%p)\n",This);
|
||||
|
||||
This->ref--;
|
||||
|
||||
|
@ -257,7 +257,7 @@ ULONG WINAPI CompositeMonikerImpl_Release(IMoniker* iface)
|
|||
******************************************************************************/
|
||||
HRESULT WINAPI CompositeMonikerImpl_GetClassID(const IMoniker* iface,CLSID *pClassID)
|
||||
{
|
||||
TRACE(ole,"(%p,%p),stub!\n",iface,pClassID);
|
||||
TRACE("(%p,%p),stub!\n",iface,pClassID);
|
||||
|
||||
if (pClassID==NULL)
|
||||
return E_POINTER;
|
||||
|
@ -276,7 +276,7 @@ HRESULT WINAPI CompositeMonikerImpl_IsDirty(IMoniker* iface)
|
|||
method in the OLE-provided moniker interfaces always return S_FALSE because
|
||||
their internal state never changes. */
|
||||
|
||||
TRACE(ole,"(%p)\n",iface);
|
||||
TRACE("(%p)\n",iface);
|
||||
|
||||
return S_FALSE;
|
||||
}
|
||||
|
@ -293,7 +293,7 @@ HRESULT WINAPI CompositeMonikerImpl_Load(IMoniker* iface,IStream* pStm)
|
|||
|
||||
ICOM_THIS(CompositeMonikerImpl,iface);
|
||||
|
||||
TRACE(ole,"(%p,%p)\n",iface,pStm);
|
||||
TRACE("(%p,%p)\n",iface,pStm);
|
||||
|
||||
/* this function call OleLoadFromStream function for each moniker within this object */
|
||||
|
||||
|
@ -340,7 +340,7 @@ HRESULT WINAPI CompositeMonikerImpl_Load(IMoniker* iface,IStream* pStm)
|
|||
return E_FAIL;
|
||||
|
||||
else{
|
||||
FIXME(ole,"()");
|
||||
FIXME("()");
|
||||
break;
|
||||
return E_NOTIMPL;
|
||||
}
|
||||
|
@ -369,7 +369,7 @@ HRESULT WINAPI CompositeMonikerImpl_Save(IMoniker* iface,IStream* pStm,BOOL fCle
|
|||
IMoniker *pmk;
|
||||
DWORD constant=3;
|
||||
|
||||
TRACE(ole,"(%p,%p,%d)\n",iface,pStm,fClearDirty);
|
||||
TRACE("(%p,%p,%d)\n",iface,pStm,fClearDirty);
|
||||
|
||||
/* this function call OleSaveToStream function for each moniker within this object */
|
||||
|
||||
|
@ -409,7 +409,7 @@ HRESULT WINAPI CompositeMonikerImpl_GetSizeMax(IMoniker* iface,ULARGE_INTEGER* p
|
|||
/* the sizeMax of this object is calculated by calling GetSizeMax on each moniker within this object then */
|
||||
/* suming all returned sizemax */
|
||||
|
||||
TRACE(ole,"(%p,%p)\n",iface,pcbSize);
|
||||
TRACE("(%p,%p)\n",iface,pcbSize);
|
||||
|
||||
if (pcbSize!=NULL)
|
||||
return E_POINTER;
|
||||
|
@ -444,7 +444,7 @@ HRESULT WINAPI CompositeMonikerImpl_Construct(CompositeMonikerImpl* This,LPMONIK
|
|||
IMoniker *tempMk;
|
||||
HRESULT res;
|
||||
|
||||
TRACE(ole,"(%p,%p,%p)\n",This,pmkFirst,pmkRest);
|
||||
TRACE("(%p,%p,%p)\n",This,pmkFirst,pmkRest);
|
||||
|
||||
/* Initialize the virtual fgunction table. */
|
||||
This->lpvtbl1 = &VT_CompositeMonikerImpl;
|
||||
|
@ -581,7 +581,7 @@ HRESULT WINAPI CompositeMonikerImpl_Construct(CompositeMonikerImpl* This,LPMONIK
|
|||
*******************************************************************************/
|
||||
HRESULT WINAPI CompositeMonikerImpl_Destroy(CompositeMonikerImpl* This)
|
||||
{
|
||||
TRACE(ole,"(%p)\n",This);
|
||||
TRACE("(%p)\n",This);
|
||||
|
||||
HeapFree(GetProcessHeap(),0,This->tabMoniker);
|
||||
|
||||
|
@ -604,7 +604,7 @@ HRESULT WINAPI CompositeMonikerImpl_BindToObject(IMoniker* iface,
|
|||
IMoniker *tempMk,*antiMk,*mostRigthMk;
|
||||
IEnumMoniker *enumMoniker;
|
||||
|
||||
TRACE(ole,"(%p,%p,%p,%p,%p)\n",iface,pbc,pmkToLeft,riid,ppvResult);
|
||||
TRACE("(%p,%p,%p,%p,%p)\n",iface,pbc,pmkToLeft,riid,ppvResult);
|
||||
|
||||
if (ppvResult==NULL)
|
||||
return E_POINTER;
|
||||
|
@ -659,7 +659,7 @@ HRESULT WINAPI CompositeMonikerImpl_BindToStorage(IMoniker* iface,
|
|||
IMoniker *tempMk,*antiMk,*mostRigthMk;
|
||||
IEnumMoniker *enumMoniker;
|
||||
|
||||
TRACE(ole,"(%p,%p,%p,%p,%p)\n",iface,pbc,pmkToLeft,riid,ppvResult);
|
||||
TRACE("(%p,%p,%p,%p,%p)\n",iface,pbc,pmkToLeft,riid,ppvResult);
|
||||
|
||||
*ppvResult=0;
|
||||
|
||||
|
@ -701,7 +701,7 @@ HRESULT WINAPI CompositeMonikerImpl_Reduce(IMoniker* iface,
|
|||
IMoniker *tempMk,*antiMk,*mostRigthMk,*leftReducedComposedMk,*mostRigthReducedMk;
|
||||
IEnumMoniker *enumMoniker;
|
||||
|
||||
TRACE(ole,"(%p,%p,%ld,%p,%p)\n",iface,pbc,dwReduceHowFar,ppmkToLeft,ppmkReduced);
|
||||
TRACE("(%p,%p,%ld,%p,%p)\n",iface,pbc,dwReduceHowFar,ppmkToLeft,ppmkReduced);
|
||||
|
||||
if (ppmkReduced==NULL)
|
||||
return E_POINTER;
|
||||
|
@ -763,7 +763,7 @@ HRESULT WINAPI CompositeMonikerImpl_ComposeWith(IMoniker* iface,
|
|||
BOOL fOnlyIfNotGeneric,
|
||||
IMoniker** ppmkComposite)
|
||||
{
|
||||
TRACE(ole,"(%p,%p,%d,%p)\n",iface,pmkRight,fOnlyIfNotGeneric,ppmkComposite);
|
||||
TRACE("(%p,%p,%d,%p)\n",iface,pmkRight,fOnlyIfNotGeneric,ppmkComposite);
|
||||
|
||||
if ((ppmkComposite==NULL)||(pmkRight==NULL))
|
||||
return E_POINTER;
|
||||
|
@ -787,7 +787,7 @@ HRESULT WINAPI CompositeMonikerImpl_Enum(IMoniker* iface,BOOL fForward, IEnumMon
|
|||
{
|
||||
ICOM_THIS(CompositeMonikerImpl,iface);
|
||||
|
||||
TRACE(ole,"(%p,%d,%p)\n",iface,fForward,ppenumMoniker);
|
||||
TRACE("(%p,%d,%p)\n",iface,fForward,ppenumMoniker);
|
||||
|
||||
if (ppenumMoniker == NULL)
|
||||
return E_POINTER;
|
||||
|
@ -804,7 +804,7 @@ HRESULT WINAPI CompositeMonikerImpl_IsEqual(IMoniker* iface,IMoniker* pmkOtherMo
|
|||
IMoniker *tempMk1,*tempMk2;
|
||||
HRESULT res1,res2,res;
|
||||
|
||||
TRACE(ole,"(%p,%p)\n",iface,pmkOtherMoniker);
|
||||
TRACE("(%p,%p)\n",iface,pmkOtherMoniker);
|
||||
|
||||
if (pmkOtherMoniker==NULL)
|
||||
return S_FALSE;
|
||||
|
@ -858,7 +858,7 @@ HRESULT WINAPI CompositeMonikerImpl_IsEqual(IMoniker* iface,IMoniker* pmkOtherMo
|
|||
******************************************************************************/
|
||||
HRESULT WINAPI CompositeMonikerImpl_Hash(IMoniker* iface,DWORD* pdwHash)
|
||||
{
|
||||
FIXME(ole,"(),stub!\n");
|
||||
FIXME("(),stub!\n");
|
||||
|
||||
return E_NOTIMPL;
|
||||
}
|
||||
|
@ -876,7 +876,7 @@ HRESULT WINAPI CompositeMonikerImpl_IsRunning(IMoniker* iface,
|
|||
IMoniker *tempMk,*antiMk,*mostRigthMk;
|
||||
IEnumMoniker *enumMoniker;
|
||||
|
||||
TRACE(ole,"(%p,%p,%p,%p)\n",iface,pbc,pmkToLeft,pmkNewlyRunning);
|
||||
TRACE("(%p,%p,%p,%p)\n",iface,pbc,pmkToLeft,pmkNewlyRunning);
|
||||
|
||||
/* If pmkToLeft is non-NULL, this method composes pmkToLeft with this moniker and calls IsRunning on the result.*/
|
||||
if (pmkToLeft!=NULL){
|
||||
|
@ -955,7 +955,7 @@ HRESULT WINAPI CompositeMonikerImpl_GetTimeOfLastChange(IMoniker* iface,
|
|||
IMoniker *tempMk,*antiMk,*mostRigthMk;
|
||||
IEnumMoniker *enumMoniker;
|
||||
|
||||
TRACE(ole,"(%p,%p,%p,%p)\n",iface,pbc,pmkToLeft,pCompositeTime);
|
||||
TRACE("(%p,%p,%p,%p)\n",iface,pbc,pmkToLeft,pCompositeTime);
|
||||
|
||||
if (pCompositeTime==NULL)
|
||||
return E_INVALIDARG;
|
||||
|
@ -1005,7 +1005,7 @@ HRESULT WINAPI CompositeMonikerImpl_Inverse(IMoniker* iface,IMoniker** ppmk)
|
|||
IMoniker *tempMk,*antiMk,*mostRigthMk,*tempInvMk,*mostRigthInvMk;
|
||||
IEnumMoniker *enumMoniker;
|
||||
|
||||
TRACE(ole,"(%p,%p)\n",iface,ppmk);
|
||||
TRACE("(%p,%p)\n",iface,ppmk);
|
||||
|
||||
if (ppmk==NULL)
|
||||
return E_POINTER;
|
||||
|
@ -1265,7 +1265,7 @@ HRESULT WINAPI CompositeMonikerImpl_RelativePathTo(IMoniker* iface,IMoniker* pmk
|
|||
HRESULT res;
|
||||
IMoniker *restOtherMk=0,*restThisMk=0,*invRestThisMk=0,*commonMk=0;
|
||||
|
||||
TRACE(ole,"(%p,%p,%p)\n",iface,pmkOther,ppmkRelPath);
|
||||
TRACE("(%p,%p,%p)\n",iface,pmkOther,ppmkRelPath);
|
||||
|
||||
if (ppmkRelPath==NULL)
|
||||
return E_POINTER;
|
||||
|
@ -1330,7 +1330,7 @@ HRESULT WINAPI CompositeMonikerImpl_GetDisplayName(IMoniker* iface,
|
|||
IMoniker* tempMk;
|
||||
LPOLESTR tempStr;
|
||||
|
||||
TRACE(ole,"(%p,%p,%p,%p)\n",iface,pbc,pmkToLeft,ppszDisplayName);
|
||||
TRACE("(%p,%p,%p,%p)\n",iface,pbc,pmkToLeft,ppszDisplayName);
|
||||
|
||||
if (ppszDisplayName==NULL)
|
||||
return E_POINTER;
|
||||
|
@ -1402,7 +1402,7 @@ HRESULT WINAPI CompositeMonikerImpl_ParseDisplayName(IMoniker* iface,
|
|||
******************************************************************************/
|
||||
HRESULT WINAPI CompositeMonikerImpl_IsSystemMoniker(IMoniker* iface,DWORD* pwdMksys)
|
||||
{
|
||||
TRACE(ole,"(%p,%p)\n",iface,pwdMksys);
|
||||
TRACE("(%p,%p)\n",iface,pwdMksys);
|
||||
|
||||
if (!pwdMksys)
|
||||
return E_POINTER;
|
||||
|
@ -1420,7 +1420,7 @@ HRESULT WINAPI CompositeMonikerROTDataImpl_QueryInterface(IROTData *iface,REFIID
|
|||
|
||||
ICOM_THIS_From_IROTData(IMoniker, iface);
|
||||
|
||||
TRACE(ole,"(%p,%p,%p)\n",iface,riid,ppvObject);
|
||||
TRACE("(%p,%p,%p)\n",iface,riid,ppvObject);
|
||||
|
||||
return CompositeMonikerImpl_QueryInterface(This, riid, ppvObject);
|
||||
}
|
||||
|
@ -1432,7 +1432,7 @@ ULONG WINAPI CompositeMonikerROTDataImpl_AddRef(IROTData *iface)
|
|||
{
|
||||
ICOM_THIS_From_IROTData(IMoniker, iface);
|
||||
|
||||
TRACE(ole,"(%p)\n",iface);
|
||||
TRACE("(%p)\n",iface);
|
||||
|
||||
return CompositeMonikerImpl_AddRef(This);
|
||||
}
|
||||
|
@ -1444,7 +1444,7 @@ ULONG WINAPI CompositeMonikerROTDataImpl_Release(IROTData* iface)
|
|||
{
|
||||
ICOM_THIS_From_IROTData(IMoniker, iface);
|
||||
|
||||
TRACE(ole,"(%p)\n",iface);
|
||||
TRACE("(%p)\n",iface);
|
||||
|
||||
return CompositeMonikerImpl_Release(This);
|
||||
}
|
||||
|
@ -1457,7 +1457,7 @@ HRESULT WINAPI CompositeMonikerROTDataImpl_GetComparaisonData(IROTData* iface,
|
|||
ULONG cbMax,
|
||||
ULONG* pcbData)
|
||||
{
|
||||
FIXME(ole,"(),stub!\n");
|
||||
FIXME("(),stub!\n");
|
||||
return E_NOTIMPL;
|
||||
}
|
||||
|
||||
|
@ -1468,7 +1468,7 @@ HRESULT WINAPI EnumMonikerImpl_QueryInterface(IEnumMoniker* iface,REFIID riid,vo
|
|||
{
|
||||
ICOM_THIS(EnumMonikerImpl,iface);
|
||||
|
||||
TRACE(ole,"(%p,%p,%p)\n",This,riid,ppvObject);
|
||||
TRACE("(%p,%p,%p)\n",This,riid,ppvObject);
|
||||
|
||||
/* Perform a sanity check on the parameters.*/
|
||||
if ( (This==0) || (ppvObject==0) )
|
||||
|
@ -1498,7 +1498,7 @@ ULONG WINAPI EnumMonikerImpl_AddRef(IEnumMoniker* iface)
|
|||
{
|
||||
ICOM_THIS(EnumMonikerImpl,iface);
|
||||
|
||||
TRACE(ole,"(%p)\n",This);
|
||||
TRACE("(%p)\n",This);
|
||||
|
||||
return ++(This->ref);
|
||||
|
||||
|
@ -1512,7 +1512,7 @@ ULONG WINAPI EnumMonikerImpl_Release(IEnumMoniker* iface)
|
|||
ICOM_THIS(EnumMonikerImpl,iface);
|
||||
ULONG i
|
||||
;
|
||||
TRACE(ole,"(%p)\n",This);
|
||||
TRACE("(%p)\n",This);
|
||||
|
||||
This->ref--;
|
||||
|
||||
|
@ -1648,7 +1648,7 @@ HRESULT WINAPI CreateGenericComposite(LPMONIKER pmkFirst, LPMONIKER pmkRest, LPM
|
|||
CompositeMonikerImpl* newCompositeMoniker = 0;
|
||||
HRESULT hr = S_OK;
|
||||
|
||||
TRACE(ole,"(%p,%p,%p)\n",pmkFirst,pmkRest,ppmkComposite);
|
||||
TRACE("(%p,%p,%p)\n",pmkFirst,pmkRest,ppmkComposite);
|
||||
|
||||
if (ppmkComposite==NULL)
|
||||
return E_POINTER;
|
||||
|
@ -1694,7 +1694,7 @@ HRESULT WINAPI CreateGenericComposite(LPMONIKER pmkFirst, LPMONIKER pmkRest, LPM
|
|||
******************************************************************************/
|
||||
HRESULT WINAPI MonikerCommonPrefixWith(IMoniker* pmkThis,IMoniker* pmkOther,IMoniker** ppmkCommon)
|
||||
{
|
||||
FIXME(ole,"(),stub!\n");
|
||||
FIXME("(),stub!\n");
|
||||
return E_NOTIMPL;
|
||||
}
|
||||
|
||||
|
|
|
@ -35,7 +35,7 @@
|
|||
#include "winuser.h"
|
||||
#include "winerror.h"
|
||||
#include "ole2.h"
|
||||
#include "debug.h"
|
||||
#include "debugtools.h"
|
||||
|
||||
DEFAULT_DEBUG_CHANNEL(ole)
|
||||
|
||||
|
@ -449,7 +449,7 @@ HRESULT WINAPI CreateDataCache(
|
|||
WINE_StringFromCLSID((LPCLSID)rclsid,xclsid);
|
||||
WINE_StringFromCLSID((LPCLSID)riid,xriid);
|
||||
|
||||
TRACE(ole, "(%s, %p, %s, %p)\n", xclsid, pUnkOuter, xriid, ppvObj);
|
||||
TRACE("(%s, %p, %s, %p)\n", xclsid, pUnkOuter, xriid, ppvObj);
|
||||
|
||||
/*
|
||||
* Sanity check
|
||||
|
@ -550,7 +550,7 @@ static DataCache* DataCache_Construct(
|
|||
static void DataCache_Destroy(
|
||||
DataCache* ptrToDestroy)
|
||||
{
|
||||
TRACE(ole, "()\n");
|
||||
TRACE("()\n");
|
||||
|
||||
if (ptrToDestroy->sinkInterface != NULL)
|
||||
{
|
||||
|
@ -650,7 +650,7 @@ static void DataCache_FireOnViewChange(
|
|||
DWORD aspect,
|
||||
LONG lindex)
|
||||
{
|
||||
TRACE(ole, "(%p, %lx, %ld)\n", this, aspect, lindex);
|
||||
TRACE("(%p, %lx, %ld)\n", this, aspect, lindex);
|
||||
|
||||
/*
|
||||
* The sink supplies a filter when it registers
|
||||
|
@ -888,7 +888,7 @@ static HRESULT WINAPI DataCache_NDIUnknown_QueryInterface(
|
|||
|
||||
WINE_StringFromCLSID((LPCLSID)riid,clsid);
|
||||
|
||||
WARN(ole,
|
||||
WARN(
|
||||
"() : asking for un supported interface %s\n",
|
||||
clsid);
|
||||
|
||||
|
@ -1004,7 +1004,7 @@ static HRESULT WINAPI DataCache_GetData(
|
|||
LPFORMATETC pformatetcIn,
|
||||
STGMEDIUM* pmedium)
|
||||
{
|
||||
FIXME(ole,"stub\n");
|
||||
FIXME("stub\n");
|
||||
return E_NOTIMPL;
|
||||
}
|
||||
|
||||
|
@ -1013,7 +1013,7 @@ static HRESULT WINAPI DataCache_GetDataHere(
|
|||
LPFORMATETC pformatetc,
|
||||
STGMEDIUM* pmedium)
|
||||
{
|
||||
FIXME(ole,"stub\n");
|
||||
FIXME("stub\n");
|
||||
return E_NOTIMPL;
|
||||
}
|
||||
|
||||
|
@ -1021,7 +1021,7 @@ static HRESULT WINAPI DataCache_QueryGetData(
|
|||
IDataObject* iface,
|
||||
LPFORMATETC pformatetc)
|
||||
{
|
||||
FIXME(ole,"stub\n");
|
||||
FIXME("stub\n");
|
||||
return E_NOTIMPL;
|
||||
}
|
||||
|
||||
|
@ -1037,7 +1037,7 @@ static HRESULT WINAPI DataCache_GetCanonicalFormatEtc(
|
|||
LPFORMATETC pformatectIn,
|
||||
LPFORMATETC pformatetcOut)
|
||||
{
|
||||
TRACE(ole,"()\n");
|
||||
TRACE("()\n");
|
||||
return E_NOTIMPL;
|
||||
}
|
||||
|
||||
|
@ -1057,7 +1057,7 @@ static HRESULT WINAPI DataCache_IDataObject_SetData(
|
|||
IOleCache2* oleCache = NULL;
|
||||
HRESULT hres;
|
||||
|
||||
TRACE(ole,"(%p, %p, %p, %d)\n", iface, pformatetc, pmedium, fRelease);
|
||||
TRACE("(%p, %p, %p, %d)\n", iface, pformatetc, pmedium, fRelease);
|
||||
|
||||
hres = IDataObject_QueryInterface(iface, &IID_IOleCache2, (void**)&oleCache);
|
||||
|
||||
|
@ -1083,7 +1083,7 @@ static HRESULT WINAPI DataCache_EnumFormatEtc(
|
|||
DWORD dwDirection,
|
||||
IEnumFORMATETC** ppenumFormatEtc)
|
||||
{
|
||||
TRACE(ole,"()\n");
|
||||
TRACE("()\n");
|
||||
return E_NOTIMPL;
|
||||
}
|
||||
|
||||
|
@ -1101,7 +1101,7 @@ static HRESULT WINAPI DataCache_DAdvise(
|
|||
IAdviseSink* pAdvSink,
|
||||
DWORD* pdwConnection)
|
||||
{
|
||||
TRACE(ole,"()\n");
|
||||
TRACE("()\n");
|
||||
return OLE_E_ADVISENOTSUPPORTED;
|
||||
}
|
||||
|
||||
|
@ -1116,7 +1116,7 @@ static HRESULT WINAPI DataCache_DUnadvise(
|
|||
IDataObject* iface,
|
||||
DWORD dwConnection)
|
||||
{
|
||||
TRACE(ole,"()\n");
|
||||
TRACE("()\n");
|
||||
return OLE_E_NOCONNECTION;
|
||||
}
|
||||
|
||||
|
@ -1131,7 +1131,7 @@ static HRESULT WINAPI DataCache_EnumDAdvise(
|
|||
IDataObject* iface,
|
||||
IEnumSTATDATA** ppenumAdvise)
|
||||
{
|
||||
TRACE(ole,"()\n");
|
||||
TRACE("()\n");
|
||||
return OLE_E_ADVISENOTSUPPORTED;
|
||||
}
|
||||
|
||||
|
@ -1192,7 +1192,7 @@ static HRESULT WINAPI DataCache_GetClassID(
|
|||
const IPersistStorage* iface,
|
||||
CLSID* pClassID)
|
||||
{
|
||||
TRACE(ole,"(%p, %p)\n", iface, pClassID);
|
||||
TRACE("(%p, %p)\n", iface, pClassID);
|
||||
return E_NOTIMPL;
|
||||
}
|
||||
|
||||
|
@ -1207,7 +1207,7 @@ static HRESULT WINAPI DataCache_GetClassID(
|
|||
static HRESULT WINAPI DataCache_IsDirty(
|
||||
IPersistStorage* iface)
|
||||
{
|
||||
TRACE(ole,"(%p)\n", iface);
|
||||
TRACE("(%p)\n", iface);
|
||||
|
||||
return S_FALSE;
|
||||
}
|
||||
|
@ -1224,7 +1224,7 @@ static HRESULT WINAPI DataCache_InitNew(
|
|||
IPersistStorage* iface,
|
||||
IStorage* pStg)
|
||||
{
|
||||
TRACE(ole, "(%p, %p)\n", iface, pStg);
|
||||
TRACE("(%p, %p)\n", iface, pStg);
|
||||
|
||||
return DataCache_Load(iface, pStg);
|
||||
}
|
||||
|
@ -1245,7 +1245,7 @@ static HRESULT WINAPI DataCache_Load(
|
|||
{
|
||||
_ICOM_THIS_From_IPersistStorage(DataCache, iface);
|
||||
|
||||
TRACE(ole, "(%p, %p)\n", iface, pStg);
|
||||
TRACE("(%p, %p)\n", iface, pStg);
|
||||
|
||||
if (this->presentationStorage != NULL)
|
||||
{
|
||||
|
@ -1279,7 +1279,7 @@ static HRESULT WINAPI DataCache_Save(
|
|||
{
|
||||
_ICOM_THIS_From_IPersistStorage(DataCache, iface);
|
||||
|
||||
TRACE(ole, "(%p, %p, %d)\n", iface, pStg, fSameAsLoad);
|
||||
TRACE("(%p, %p, %d)\n", iface, pStg, fSameAsLoad);
|
||||
|
||||
if ( (!fSameAsLoad) &&
|
||||
(this->presentationStorage!=NULL) )
|
||||
|
@ -1306,7 +1306,7 @@ static HRESULT WINAPI DataCache_SaveCompleted(
|
|||
IPersistStorage* iface,
|
||||
IStorage* pStgNew)
|
||||
{
|
||||
TRACE(ole, "(%p, %p)\n", iface, pStgNew);
|
||||
TRACE("(%p, %p)\n", iface, pStgNew);
|
||||
|
||||
/*
|
||||
* First, make sure we get our hands off any storage we have.
|
||||
|
@ -1334,7 +1334,7 @@ static HRESULT WINAPI DataCache_HandsOffStorage(
|
|||
{
|
||||
_ICOM_THIS_From_IPersistStorage(DataCache, iface);
|
||||
|
||||
TRACE(ole,"(%p)\n", iface);
|
||||
TRACE("(%p)\n", iface);
|
||||
|
||||
if (this->presentationStorage != NULL)
|
||||
{
|
||||
|
@ -1418,7 +1418,7 @@ static HRESULT WINAPI DataCache_Draw(
|
|||
|
||||
_ICOM_THIS_From_IViewObject2(DataCache, iface);
|
||||
|
||||
TRACE(ole,"(%p, %lx, %ld, %p, %x, %x, %p, %p, %p, %lx)\n",
|
||||
TRACE("(%p, %lx, %ld, %p, %x, %x, %p, %p, %p, %lx)\n",
|
||||
iface,
|
||||
dwDrawAspect,
|
||||
lindex,
|
||||
|
@ -1515,7 +1515,7 @@ static HRESULT WINAPI DataCache_GetColorSet(
|
|||
HDC hicTargetDevice,
|
||||
LOGPALETTE** ppColorSet)
|
||||
{
|
||||
FIXME(ole,"stub\n");
|
||||
FIXME("stub\n");
|
||||
return E_NOTIMPL;
|
||||
}
|
||||
|
||||
|
@ -1526,7 +1526,7 @@ static HRESULT WINAPI DataCache_Freeze(
|
|||
void* pvAspect,
|
||||
DWORD* pdwFreeze)
|
||||
{
|
||||
FIXME(ole,"stub\n");
|
||||
FIXME("stub\n");
|
||||
return E_NOTIMPL;
|
||||
}
|
||||
|
||||
|
@ -1534,7 +1534,7 @@ static HRESULT WINAPI DataCache_Unfreeze(
|
|||
IViewObject2* iface,
|
||||
DWORD dwFreeze)
|
||||
{
|
||||
FIXME(ole,"stub\n");
|
||||
FIXME("stub\n");
|
||||
return E_NOTIMPL;
|
||||
}
|
||||
|
||||
|
@ -1554,7 +1554,7 @@ static HRESULT WINAPI DataCache_SetAdvise(
|
|||
{
|
||||
_ICOM_THIS_From_IViewObject2(DataCache, iface);
|
||||
|
||||
TRACE(ole,"(%p, %lx, %lx, %p)\n", iface, aspects, advf, pAdvSink);
|
||||
TRACE("(%p, %lx, %lx, %p)\n", iface, aspects, advf, pAdvSink);
|
||||
|
||||
/*
|
||||
* A call to this function removes the previous sink
|
||||
|
@ -1609,7 +1609,7 @@ static HRESULT WINAPI DataCache_GetAdvise(
|
|||
{
|
||||
_ICOM_THIS_From_IViewObject2(DataCache, iface);
|
||||
|
||||
TRACE(ole,"(%p, %p, %p, %p)\n", iface, pAspects, pAdvf, ppAdvSink);
|
||||
TRACE("(%p, %p, %p, %p)\n", iface, pAspects, pAdvf, ppAdvSink);
|
||||
|
||||
/*
|
||||
* Just copy all the requested values.
|
||||
|
@ -1649,7 +1649,7 @@ static HRESULT WINAPI DataCache_GetExtent(
|
|||
|
||||
_ICOM_THIS_From_IViewObject2(DataCache, iface);
|
||||
|
||||
TRACE(ole, "(%p, %lx, %ld, %p, %p)\n",
|
||||
TRACE("(%p, %lx, %ld, %p, %p)\n",
|
||||
iface, dwDrawAspect, lindex, ptd, lpsizel);
|
||||
|
||||
/*
|
||||
|
@ -1668,14 +1668,14 @@ static HRESULT WINAPI DataCache_GetExtent(
|
|||
* This flag should be set to -1.
|
||||
*/
|
||||
if (lindex!=-1)
|
||||
FIXME(ole, "Unimplemented flag lindex = %ld\n", lindex);
|
||||
FIXME("Unimplemented flag lindex = %ld\n", lindex);
|
||||
|
||||
/*
|
||||
* Right now, we suport only the callback from
|
||||
* the default handler.
|
||||
*/
|
||||
if (ptd!=NULL)
|
||||
FIXME(ole, "Unimplemented ptd = %p\n", ptd);
|
||||
FIXME("Unimplemented ptd = %p\n", ptd);
|
||||
|
||||
/*
|
||||
* Get the presentation information from the
|
||||
|
@ -1753,7 +1753,7 @@ static HRESULT WINAPI DataCache_Cache(
|
|||
DWORD advf,
|
||||
DWORD* pdwConnection)
|
||||
{
|
||||
FIXME(ole,"stub\n");
|
||||
FIXME("stub\n");
|
||||
return E_NOTIMPL;
|
||||
}
|
||||
|
||||
|
@ -1761,7 +1761,7 @@ static HRESULT WINAPI DataCache_Uncache(
|
|||
IOleCache2* iface,
|
||||
DWORD dwConnection)
|
||||
{
|
||||
FIXME(ole,"stub\n");
|
||||
FIXME("stub\n");
|
||||
return E_NOTIMPL;
|
||||
}
|
||||
|
||||
|
@ -1769,7 +1769,7 @@ static HRESULT WINAPI DataCache_EnumCache(
|
|||
IOleCache2* iface,
|
||||
IEnumSTATDATA** ppenumSTATDATA)
|
||||
{
|
||||
FIXME(ole,"stub\n");
|
||||
FIXME("stub\n");
|
||||
return E_NOTIMPL;
|
||||
}
|
||||
|
||||
|
@ -1777,7 +1777,7 @@ static HRESULT WINAPI DataCache_InitCache(
|
|||
IOleCache2* iface,
|
||||
IDataObject* pDataObject)
|
||||
{
|
||||
FIXME(ole,"stub\n");
|
||||
FIXME("stub\n");
|
||||
return E_NOTIMPL;
|
||||
}
|
||||
|
||||
|
@ -1787,7 +1787,7 @@ static HRESULT WINAPI DataCache_IOleCache2_SetData(
|
|||
STGMEDIUM* pmedium,
|
||||
BOOL fRelease)
|
||||
{
|
||||
FIXME(ole,"stub\n");
|
||||
FIXME("stub\n");
|
||||
return E_NOTIMPL;
|
||||
}
|
||||
|
||||
|
@ -1797,7 +1797,7 @@ static HRESULT WINAPI DataCache_UpdateCache(
|
|||
DWORD grfUpdf,
|
||||
LPVOID pReserved)
|
||||
{
|
||||
FIXME(ole,"stub\n");
|
||||
FIXME("stub\n");
|
||||
return E_NOTIMPL;
|
||||
}
|
||||
|
||||
|
@ -1805,7 +1805,7 @@ static HRESULT WINAPI DataCache_DiscardCache(
|
|||
IOleCache2* iface,
|
||||
DWORD dwDiscardOptions)
|
||||
{
|
||||
FIXME(ole,"stub\n");
|
||||
FIXME("stub\n");
|
||||
return E_NOTIMPL;
|
||||
}
|
||||
|
||||
|
@ -1860,14 +1860,14 @@ static HRESULT WINAPI DataCache_OnRun(
|
|||
IOleCacheControl* iface,
|
||||
LPDATAOBJECT pDataObject)
|
||||
{
|
||||
FIXME(ole,"stub\n");
|
||||
FIXME("stub\n");
|
||||
return E_NOTIMPL;
|
||||
}
|
||||
|
||||
static HRESULT WINAPI DataCache_OnStop(
|
||||
IOleCacheControl* iface)
|
||||
{
|
||||
FIXME(ole,"stub\n");
|
||||
FIXME("stub\n");
|
||||
return E_NOTIMPL;
|
||||
}
|
||||
|
||||
|
|
|
@ -35,7 +35,7 @@
|
|||
#include "winuser.h"
|
||||
#include "winerror.h"
|
||||
#include "ole2.h"
|
||||
#include "debug.h"
|
||||
#include "debugtools.h"
|
||||
|
||||
DEFAULT_DEBUG_CHANNEL(ole)
|
||||
|
||||
|
@ -387,7 +387,7 @@ HRESULT WINAPI OleCreateDefaultHandler(
|
|||
WINE_StringFromCLSID((LPCLSID)clsid,xclsid);
|
||||
WINE_StringFromCLSID((LPCLSID)riid,xriid);
|
||||
|
||||
TRACE(ole, "(%s, %p, %s, %p)\n", xclsid, pUnkOuter, xriid, ppvObj);
|
||||
TRACE("(%s, %p, %s, %p)\n", xclsid, pUnkOuter, xriid, ppvObj);
|
||||
|
||||
/*
|
||||
* Sanity check
|
||||
|
@ -623,7 +623,7 @@ static HRESULT WINAPI DefaultHandler_NDIUnknown_QueryInterface(
|
|||
|
||||
WINE_StringFromCLSID((LPCLSID)riid,clsid);
|
||||
|
||||
WARN(ole,
|
||||
WARN(
|
||||
"() : asking for un supported interface %s\n",
|
||||
clsid);
|
||||
|
||||
|
@ -748,7 +748,7 @@ static HRESULT WINAPI DefaultHandler_SetClientSite(
|
|||
{
|
||||
_ICOM_THIS_From_IOleObject(DefaultHandler, iface);
|
||||
|
||||
TRACE(ole, "(%p, %p)\n", iface, pClientSite);
|
||||
TRACE("(%p, %p)\n", iface, pClientSite);
|
||||
|
||||
/*
|
||||
* Make sure we release the previous client site if there
|
||||
|
@ -814,7 +814,7 @@ static HRESULT WINAPI DefaultHandler_SetHostNames(
|
|||
{
|
||||
_ICOM_THIS_From_IOleObject(DefaultHandler, iface);
|
||||
|
||||
TRACE(ole, "(%p, %s, %s)\n",
|
||||
TRACE("(%p, %s, %s)\n",
|
||||
iface,
|
||||
debugstr_w(szContainerApp),
|
||||
debugstr_w(szContainerObj));
|
||||
|
@ -858,7 +858,7 @@ static HRESULT WINAPI DefaultHandler_Close(
|
|||
IOleObject* iface,
|
||||
DWORD dwSaveOption)
|
||||
{
|
||||
TRACE(ole, "()\n");
|
||||
TRACE("()\n");
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
@ -874,7 +874,7 @@ static HRESULT WINAPI DefaultHandler_SetMoniker(
|
|||
DWORD dwWhichMoniker,
|
||||
IMoniker* pmk)
|
||||
{
|
||||
TRACE(ole, "(%p, %ld, %p)\n",
|
||||
TRACE("(%p, %ld, %p)\n",
|
||||
iface,
|
||||
dwWhichMoniker,
|
||||
pmk);
|
||||
|
@ -897,7 +897,7 @@ static HRESULT WINAPI DefaultHandler_GetMoniker(
|
|||
{
|
||||
_ICOM_THIS_From_IOleObject(DefaultHandler, iface);
|
||||
|
||||
TRACE(ole, "(%p, %ld, %ld, %p)\n",
|
||||
TRACE("(%p, %ld, %ld, %p)\n",
|
||||
iface, dwAssign, dwWhichMoniker, ppmk);
|
||||
|
||||
if (this->clientSite)
|
||||
|
@ -925,7 +925,7 @@ static HRESULT WINAPI DefaultHandler_InitFromData(
|
|||
BOOL fCreation,
|
||||
DWORD dwReserved)
|
||||
{
|
||||
TRACE(ole, "(%p, %p, %d, %ld)\n",
|
||||
TRACE("(%p, %p, %d, %ld)\n",
|
||||
iface, pDataObject, fCreation, dwReserved);
|
||||
|
||||
return OLE_E_NOTRUNNING;
|
||||
|
@ -943,7 +943,7 @@ static HRESULT WINAPI DefaultHandler_GetClipboardData(
|
|||
DWORD dwReserved,
|
||||
IDataObject** ppDataObject)
|
||||
{
|
||||
TRACE(ole, "(%p, %ld, %p)\n",
|
||||
TRACE("(%p, %ld, %p)\n",
|
||||
iface, dwReserved, ppDataObject);
|
||||
|
||||
return OLE_E_NOTRUNNING;
|
||||
|
@ -958,7 +958,7 @@ static HRESULT WINAPI DefaultHandler_DoVerb(
|
|||
HWND hwndParent,
|
||||
LPCRECT lprcPosRect)
|
||||
{
|
||||
FIXME(ole, ": Stub\n");
|
||||
FIXME(": Stub\n");
|
||||
return E_NOTIMPL;
|
||||
}
|
||||
|
||||
|
@ -976,7 +976,7 @@ static HRESULT WINAPI DefaultHandler_EnumVerbs(
|
|||
{
|
||||
_ICOM_THIS_From_IOleObject(DefaultHandler, iface);
|
||||
|
||||
TRACE(ole, "(%p, %p)\n", iface, ppEnumOleVerb);
|
||||
TRACE("(%p, %p)\n", iface, ppEnumOleVerb);
|
||||
|
||||
return OleRegEnumVerbs(&this->clsid, ppEnumOleVerb);
|
||||
}
|
||||
|
@ -984,7 +984,7 @@ static HRESULT WINAPI DefaultHandler_EnumVerbs(
|
|||
static HRESULT WINAPI DefaultHandler_Update(
|
||||
IOleObject* iface)
|
||||
{
|
||||
FIXME(ole, ": Stub\n");
|
||||
FIXME(": Stub\n");
|
||||
return E_NOTIMPL;
|
||||
}
|
||||
|
||||
|
@ -998,7 +998,7 @@ static HRESULT WINAPI DefaultHandler_Update(
|
|||
static HRESULT WINAPI DefaultHandler_IsUpToDate(
|
||||
IOleObject* iface)
|
||||
{
|
||||
TRACE(ole, "(%p)\n", iface);
|
||||
TRACE("(%p)\n", iface);
|
||||
|
||||
return OLE_E_NOTRUNNING;
|
||||
}
|
||||
|
@ -1016,7 +1016,7 @@ static HRESULT WINAPI DefaultHandler_GetUserClassID(
|
|||
{
|
||||
_ICOM_THIS_From_IOleObject(DefaultHandler, iface);
|
||||
|
||||
TRACE(ole, "(%p, %p)\n", iface, pClsid);
|
||||
TRACE("(%p, %p)\n", iface, pClsid);
|
||||
|
||||
/*
|
||||
* Sanity check.
|
||||
|
@ -1044,7 +1044,7 @@ static HRESULT WINAPI DefaultHandler_GetUserType(
|
|||
{
|
||||
_ICOM_THIS_From_IOleObject(DefaultHandler, iface);
|
||||
|
||||
TRACE(ole, "(%p, %ld, %p)\n", iface, dwFormOfType, pszUserType);
|
||||
TRACE("(%p, %ld, %p)\n", iface, dwFormOfType, pszUserType);
|
||||
|
||||
return OleRegGetUserType(&this->clsid, dwFormOfType, pszUserType);
|
||||
}
|
||||
|
@ -1061,7 +1061,7 @@ static HRESULT WINAPI DefaultHandler_SetExtent(
|
|||
DWORD dwDrawAspect,
|
||||
SIZEL* psizel)
|
||||
{
|
||||
TRACE(ole, "(%p, %lx, (%d,%d))\n", iface, dwDrawAspect, psizel->cx, psizel->cy);
|
||||
TRACE("(%p, %lx, (%d,%d))\n", iface, dwDrawAspect, psizel->cx, psizel->cy);
|
||||
return OLE_E_NOTRUNNING;
|
||||
}
|
||||
|
||||
|
@ -1084,7 +1084,7 @@ static HRESULT WINAPI DefaultHandler_GetExtent(
|
|||
|
||||
_ICOM_THIS_From_IOleObject(DefaultHandler, iface);
|
||||
|
||||
TRACE(ole, "(%p, %lx, %p)\n", iface, dwDrawAspect, psizel);
|
||||
TRACE("(%p, %lx, %p)\n", iface, dwDrawAspect, psizel);
|
||||
|
||||
hres = IUnknown_QueryInterface(this->dataCache, &IID_IViewObject2, (void**)&cacheView);
|
||||
|
||||
|
@ -1131,7 +1131,7 @@ static HRESULT WINAPI DefaultHandler_Advise(
|
|||
HRESULT hres = S_OK;
|
||||
_ICOM_THIS_From_IOleObject(DefaultHandler, iface);
|
||||
|
||||
TRACE(ole, "(%p, %p, %p)\n", iface, pAdvSink, pdwConnection);
|
||||
TRACE("(%p, %p, %p)\n", iface, pAdvSink, pdwConnection);
|
||||
|
||||
/*
|
||||
* Make sure we have an advise holder before we start.
|
||||
|
@ -1165,7 +1165,7 @@ static HRESULT WINAPI DefaultHandler_Unadvise(
|
|||
{
|
||||
_ICOM_THIS_From_IOleObject(DefaultHandler, iface);
|
||||
|
||||
TRACE(ole, "(%p, %ld)\n", iface, dwConnection);
|
||||
TRACE("(%p, %ld)\n", iface, dwConnection);
|
||||
|
||||
/*
|
||||
* If we don't have an advise holder yet, it means we don't have
|
||||
|
@ -1192,7 +1192,7 @@ static HRESULT WINAPI DefaultHandler_EnumAdvise(
|
|||
{
|
||||
_ICOM_THIS_From_IOleObject(DefaultHandler, iface);
|
||||
|
||||
TRACE(ole, "(%p, %p)\n", iface, ppenumAdvise);
|
||||
TRACE("(%p, %p)\n", iface, ppenumAdvise);
|
||||
|
||||
/*
|
||||
* Sanity check
|
||||
|
@ -1228,7 +1228,7 @@ static HRESULT WINAPI DefaultHandler_GetMiscStatus(
|
|||
HRESULT hres;
|
||||
_ICOM_THIS_From_IOleObject(DefaultHandler, iface);
|
||||
|
||||
TRACE(ole, "(%p, %lx, %p)\n", iface, dwAspect, pdwStatus);
|
||||
TRACE("(%p, %lx, %p)\n", iface, dwAspect, pdwStatus);
|
||||
|
||||
hres = OleRegGetMiscStatus(&(this->clsid), dwAspect, pdwStatus);
|
||||
|
||||
|
@ -1249,7 +1249,7 @@ static HRESULT WINAPI DefaultHandler_SetColorScheme(
|
|||
IOleObject* iface,
|
||||
LOGPALETTE* pLogpal)
|
||||
{
|
||||
TRACE(ole, "(%p, %p))\n", iface, pLogpal);
|
||||
TRACE("(%p, %p))\n", iface, pLogpal);
|
||||
return OLE_E_NOTRUNNING;
|
||||
}
|
||||
|
||||
|
@ -1304,7 +1304,7 @@ static HRESULT WINAPI DefaultHandler_GetData(
|
|||
LPFORMATETC pformatetcIn,
|
||||
STGMEDIUM* pmedium)
|
||||
{
|
||||
FIXME(ole, ": Stub\n");
|
||||
FIXME(": Stub\n");
|
||||
return E_NOTIMPL;
|
||||
}
|
||||
|
||||
|
@ -1313,7 +1313,7 @@ static HRESULT WINAPI DefaultHandler_GetDataHere(
|
|||
LPFORMATETC pformatetc,
|
||||
STGMEDIUM* pmedium)
|
||||
{
|
||||
FIXME(ole, ": Stub\n");
|
||||
FIXME(": Stub\n");
|
||||
return E_NOTIMPL;
|
||||
}
|
||||
|
||||
|
@ -1334,7 +1334,7 @@ static HRESULT WINAPI DefaultHandler_QueryGetData(
|
|||
|
||||
_ICOM_THIS_From_IDataObject(DefaultHandler, iface);
|
||||
|
||||
TRACE(ole, "(%p, %p)\n", iface, pformatetc);
|
||||
TRACE("(%p, %p)\n", iface, pformatetc);
|
||||
|
||||
hres = IUnknown_QueryInterface(this->dataCache,
|
||||
&IID_IDataObject,
|
||||
|
@ -1363,7 +1363,7 @@ static HRESULT WINAPI DefaultHandler_GetCanonicalFormatEtc(
|
|||
LPFORMATETC pformatectIn,
|
||||
LPFORMATETC pformatetcOut)
|
||||
{
|
||||
FIXME(ole, "(%p, %p, %p)\n", iface, pformatectIn, pformatetcOut);
|
||||
FIXME("(%p, %p, %p)\n", iface, pformatectIn, pformatetcOut);
|
||||
|
||||
return OLE_E_NOTRUNNING;
|
||||
}
|
||||
|
@ -1387,7 +1387,7 @@ static HRESULT WINAPI DefaultHandler_SetData(
|
|||
|
||||
_ICOM_THIS_From_IDataObject(DefaultHandler, iface);
|
||||
|
||||
TRACE(ole, "(%p, %p, %p, %d)\n", iface, pformatetc, pmedium, fRelease);
|
||||
TRACE("(%p, %p, %p, %d)\n", iface, pformatetc, pmedium, fRelease);
|
||||
|
||||
hres = IUnknown_QueryInterface(this->dataCache,
|
||||
&IID_IDataObject,
|
||||
|
@ -1422,7 +1422,7 @@ static HRESULT WINAPI DefaultHandler_EnumFormatEtc(
|
|||
HRESULT hres;
|
||||
_ICOM_THIS_From_IDataObject(DefaultHandler, iface);
|
||||
|
||||
TRACE(ole, "(%p, %lx, %p)\n", iface, dwDirection, ppenumFormatEtc);
|
||||
TRACE("(%p, %lx, %p)\n", iface, dwDirection, ppenumFormatEtc);
|
||||
|
||||
hres = OleRegEnumFormatEtc(&(this->clsid), dwDirection, ppenumFormatEtc);
|
||||
|
||||
|
@ -1447,7 +1447,7 @@ static HRESULT WINAPI DefaultHandler_DAdvise(
|
|||
HRESULT hres = S_OK;
|
||||
_ICOM_THIS_From_IDataObject(DefaultHandler, iface);
|
||||
|
||||
TRACE(ole, "(%p, %p, %ld, %p, %p)\n",
|
||||
TRACE("(%p, %p, %ld, %p, %p)\n",
|
||||
iface, pformatetc, advf, pAdvSink, pdwConnection);
|
||||
|
||||
/*
|
||||
|
@ -1485,7 +1485,7 @@ static HRESULT WINAPI DefaultHandler_DUnadvise(
|
|||
{
|
||||
_ICOM_THIS_From_IDataObject(DefaultHandler, iface);
|
||||
|
||||
TRACE(ole, "(%p, %ld)\n", iface, dwConnection);
|
||||
TRACE("(%p, %ld)\n", iface, dwConnection);
|
||||
|
||||
/*
|
||||
* If we don't have a data advise holder yet, it means that
|
||||
|
@ -1514,7 +1514,7 @@ static HRESULT WINAPI DefaultHandler_EnumDAdvise(
|
|||
{
|
||||
_ICOM_THIS_From_IDataObject(DefaultHandler, iface);
|
||||
|
||||
TRACE(ole, "(%p, %p)\n", iface, ppenumAdvise);
|
||||
TRACE("(%p, %p)\n", iface, ppenumAdvise);
|
||||
|
||||
/*
|
||||
* Sanity check
|
||||
|
@ -1598,7 +1598,7 @@ static HRESULT WINAPI DefaultHandler_GetRunningClass(
|
|||
IRunnableObject* iface,
|
||||
LPCLSID lpClsid)
|
||||
{
|
||||
TRACE(ole, "()\n");
|
||||
TRACE("()\n");
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
@ -1606,7 +1606,7 @@ static HRESULT WINAPI DefaultHandler_Run(
|
|||
IRunnableObject* iface,
|
||||
IBindCtx* pbc)
|
||||
{
|
||||
FIXME(ole, ": Stub\n");
|
||||
FIXME(": Stub\n");
|
||||
return E_NOTIMPL;
|
||||
}
|
||||
|
||||
|
@ -1622,7 +1622,7 @@ static HRESULT WINAPI DefaultHandler_Run(
|
|||
static BOOL WINAPI DefaultHandler_IsRunning(
|
||||
IRunnableObject* iface)
|
||||
{
|
||||
TRACE(ole, "()\n");
|
||||
TRACE("()\n");
|
||||
return S_FALSE;
|
||||
}
|
||||
|
||||
|
@ -1640,7 +1640,7 @@ static HRESULT WINAPI DefaultHandler_LockRunning(
|
|||
BOOL fLock,
|
||||
BOOL fLastUnlockCloses)
|
||||
{
|
||||
TRACE(ole, "()\n");
|
||||
TRACE("()\n");
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
@ -1657,7 +1657,7 @@ static HRESULT WINAPI DefaultHandler_SetContainedObject(
|
|||
IRunnableObject* iface,
|
||||
BOOL fContained)
|
||||
{
|
||||
TRACE(ole, "()\n");
|
||||
TRACE("()\n");
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
#include <assert.h>
|
||||
#include "winerror.h"
|
||||
#include "debug.h"
|
||||
#include "debugtools.h"
|
||||
#include "heap.h"
|
||||
#include "winuser.h"
|
||||
#include "file.h"
|
||||
|
@ -133,7 +133,7 @@ HRESULT WINAPI FileMonikerImpl_QueryInterface(IMoniker* iface,REFIID riid,void**
|
|||
{
|
||||
ICOM_THIS(FileMonikerImpl,iface);
|
||||
|
||||
TRACE(ole,"(%p,%p,%p)\n",This,riid,ppvObject);
|
||||
TRACE("(%p,%p,%p)\n",This,riid,ppvObject);
|
||||
|
||||
/* Perform a sanity check on the parameters.*/
|
||||
if ( (This==0) || (ppvObject==0) )
|
||||
|
@ -170,7 +170,7 @@ ULONG WINAPI FileMonikerImpl_AddRef(IMoniker* iface)
|
|||
{
|
||||
ICOM_THIS(FileMonikerImpl,iface);
|
||||
|
||||
TRACE(ole,"(%p)\n",iface);
|
||||
TRACE("(%p)\n",iface);
|
||||
|
||||
return ++(This->ref);
|
||||
}
|
||||
|
@ -182,7 +182,7 @@ ULONG WINAPI FileMonikerImpl_Release(IMoniker* iface)
|
|||
{
|
||||
ICOM_THIS(FileMonikerImpl,iface);
|
||||
|
||||
TRACE(ole,"(%p)\n",iface);
|
||||
TRACE("(%p)\n",iface);
|
||||
|
||||
This->ref--;
|
||||
|
||||
|
@ -202,7 +202,7 @@ ULONG WINAPI FileMonikerImpl_Release(IMoniker* iface)
|
|||
HRESULT WINAPI FileMonikerImpl_GetClassID(const IMoniker* iface,
|
||||
CLSID *pClassID)/* Pointer to CLSID of object */
|
||||
{
|
||||
TRACE(ole,"(%p,%p),stub!\n",iface,pClassID);
|
||||
TRACE("(%p,%p),stub!\n",iface,pClassID);
|
||||
|
||||
if (pClassID==NULL)
|
||||
return E_POINTER;
|
||||
|
@ -221,7 +221,7 @@ HRESULT WINAPI FileMonikerImpl_IsDirty(IMoniker* iface)
|
|||
method in the OLE-provided moniker interfaces always return S_FALSE because
|
||||
their internal state never changes. */
|
||||
|
||||
TRACE(ole,"(%p)\n",iface);
|
||||
TRACE("(%p)\n",iface);
|
||||
|
||||
return S_FALSE;
|
||||
}
|
||||
|
@ -240,7 +240,7 @@ HRESULT WINAPI FileMonikerImpl_Load(IMoniker* iface,IStream* pStm)
|
|||
|
||||
ICOM_THIS(FileMonikerImpl,iface);
|
||||
|
||||
TRACE(ole,"(%p,%p)\n",iface,pStm);
|
||||
TRACE("(%p,%p)\n",iface,pStm);
|
||||
|
||||
/* this function locate and read from the stream the filePath string writen by FileMonikerImpl_Save */
|
||||
|
||||
|
@ -344,7 +344,7 @@ HRESULT WINAPI FileMonikerImpl_Save(IMoniker* iface,
|
|||
DWORD doubleLenDec;
|
||||
int i=0;
|
||||
|
||||
TRACE(ole,"(%p,%p,%d)\n",iface,pStm,fClearDirty);
|
||||
TRACE("(%p,%p,%d)\n",iface,pStm,fClearDirty);
|
||||
|
||||
if (pStm==NULL)
|
||||
return E_POINTER;
|
||||
|
@ -404,7 +404,7 @@ HRESULT WINAPI FileMonikerImpl_GetSizeMax(IMoniker* iface,
|
|||
DWORD len=lstrlenW(This->filePathName);
|
||||
DWORD sizeMAx;
|
||||
|
||||
TRACE(ole,"(%p,%p)\n",iface,pcbSize);
|
||||
TRACE("(%p,%p)\n",iface,pcbSize);
|
||||
|
||||
if (pcbSize!=NULL)
|
||||
return E_POINTER;
|
||||
|
@ -443,7 +443,7 @@ HRESULT WINAPI FileMonikerImpl_Construct(FileMonikerImpl* This, LPCOLESTR lpszPa
|
|||
WCHAR bkSlash[]={'\\',0};
|
||||
BYTE addBkSlash;
|
||||
|
||||
TRACE(ole,"(%p,%p)\n",This,lpszPathName);
|
||||
TRACE("(%p,%p)\n",This,lpszPathName);
|
||||
|
||||
/* Initialize the virtual fgunction table. */
|
||||
This->lpvtbl1 = &VT_FileMonikerImpl;
|
||||
|
@ -507,7 +507,7 @@ HRESULT WINAPI FileMonikerImpl_Construct(FileMonikerImpl* This, LPCOLESTR lpszPa
|
|||
*******************************************************************************/
|
||||
HRESULT WINAPI FileMonikerImpl_Destroy(FileMonikerImpl* This)
|
||||
{
|
||||
TRACE(ole,"(%p)\n",This);
|
||||
TRACE("(%p)\n",This);
|
||||
|
||||
if (This->filePathName!=NULL)
|
||||
HeapFree(GetProcessHeap(),0,This->filePathName);
|
||||
|
@ -538,7 +538,7 @@ HRESULT WINAPI FileMonikerImpl_BindToObject(IMoniker* iface,
|
|||
|
||||
*ppvResult=0;
|
||||
|
||||
TRACE(ole,"(%p,%p,%p,%p,%p)\n",iface,pbc,pmkToLeft,riid,ppvResult);
|
||||
TRACE("(%p,%p,%p,%p,%p)\n",iface,pbc,pmkToLeft,riid,ppvResult);
|
||||
|
||||
if(pmkToLeft==NULL){
|
||||
|
||||
|
@ -591,7 +591,7 @@ HRESULT WINAPI FileMonikerImpl_BindToObject(IMoniker* iface,
|
|||
}
|
||||
if (pca!=NULL){
|
||||
|
||||
FIXME(ole,"()");
|
||||
FIXME("()");
|
||||
|
||||
/*res=GetClassFile(This->filePathName,&clsID);
|
||||
|
||||
|
@ -645,7 +645,7 @@ HRESULT WINAPI FileMonikerImpl_BindToStorage(IMoniker* iface,
|
|||
IStorage *pstg=0;
|
||||
HRESULT res;
|
||||
|
||||
TRACE(ole,"(%p,%p,%p,%p,%p)\n",iface,pbc,pmkToLeft,riid,ppvObject);
|
||||
TRACE("(%p,%p,%p,%p,%p)\n",iface,pbc,pmkToLeft,riid,ppvObject);
|
||||
|
||||
if (pmkToLeft==NULL){
|
||||
|
||||
|
@ -682,7 +682,7 @@ HRESULT WINAPI FileMonikerImpl_BindToStorage(IMoniker* iface,
|
|||
}
|
||||
else {
|
||||
|
||||
FIXME(ole,"(%p,%p,%p,%p,%p)\n",iface,pbc,pmkToLeft,riid,ppvObject);
|
||||
FIXME("(%p,%p,%p,%p,%p)\n",iface,pbc,pmkToLeft,riid,ppvObject);
|
||||
|
||||
return E_NOTIMPL;
|
||||
}
|
||||
|
@ -698,7 +698,7 @@ HRESULT WINAPI FileMonikerImpl_Reduce(IMoniker* iface,
|
|||
IMoniker** ppmkToLeft,
|
||||
IMoniker** ppmkReduced)
|
||||
{
|
||||
TRACE(ole,"(%p,%p,%ld,%p,%p)\n",iface,pbc,dwReduceHowFar,ppmkToLeft,ppmkReduced);
|
||||
TRACE("(%p,%p,%ld,%p,%p)\n",iface,pbc,dwReduceHowFar,ppmkToLeft,ppmkReduced);
|
||||
|
||||
if (ppmkReduced==NULL)
|
||||
return E_POINTER;
|
||||
|
@ -725,7 +725,7 @@ HRESULT WINAPI FileMonikerImpl_ComposeWith(IMoniker* iface,
|
|||
int i=0,j=0,lastIdx1=0,lastIdx2=0;
|
||||
DWORD mkSys;
|
||||
|
||||
TRACE(ole,"(%p,%p,%d,%p)\n",iface,pmkRight,fOnlyIfNotGeneric,ppmkComposite);
|
||||
TRACE("(%p,%p,%d,%p)\n",iface,pmkRight,fOnlyIfNotGeneric,ppmkComposite);
|
||||
|
||||
if (ppmkComposite==NULL)
|
||||
return E_POINTER;
|
||||
|
@ -815,7 +815,7 @@ HRESULT WINAPI FileMonikerImpl_ComposeWith(IMoniker* iface,
|
|||
******************************************************************************/
|
||||
HRESULT WINAPI FileMonikerImpl_Enum(IMoniker* iface,BOOL fForward, IEnumMoniker** ppenumMoniker)
|
||||
{
|
||||
TRACE(ole,"(%p,%d,%p)\n",iface,fForward,ppenumMoniker);
|
||||
TRACE("(%p,%d,%p)\n",iface,fForward,ppenumMoniker);
|
||||
|
||||
if (ppenumMoniker == NULL)
|
||||
return E_POINTER;
|
||||
|
@ -836,7 +836,7 @@ HRESULT WINAPI FileMonikerImpl_IsEqual(IMoniker* iface,IMoniker* pmkOtherMoniker
|
|||
IBindCtx* bind;
|
||||
HRESULT res;
|
||||
|
||||
TRACE(ole,"(%p,%p)\n",iface,pmkOtherMoniker);
|
||||
TRACE("(%p,%p)\n",iface,pmkOtherMoniker);
|
||||
|
||||
if (pmkOtherMoniker==NULL)
|
||||
return S_FALSE;
|
||||
|
@ -906,7 +906,7 @@ HRESULT WINAPI FileMonikerImpl_IsRunning(IMoniker* iface,
|
|||
IRunningObjectTable* rot;
|
||||
HRESULT res;
|
||||
|
||||
TRACE(ole,"(%p,%p,%p,%p)\n",iface,pbc,pmkToLeft,pmkNewlyRunning);
|
||||
TRACE("(%p,%p,%p,%p)\n",iface,pbc,pmkToLeft,pmkNewlyRunning);
|
||||
|
||||
if ( (pmkNewlyRunning!=NULL) && (IMoniker_IsEqual(pmkNewlyRunning,iface)==S_OK) )
|
||||
return S_OK;
|
||||
|
@ -939,7 +939,7 @@ HRESULT WINAPI FileMonikerImpl_GetTimeOfLastChange(IMoniker* iface,
|
|||
HRESULT res;
|
||||
WIN32_FILE_ATTRIBUTE_DATA info;
|
||||
|
||||
TRACE(ole,"(%p,%p,%p,%p)\n",iface,pbc,pmkToLeft,pFileTime);
|
||||
TRACE("(%p,%p,%p,%p)\n",iface,pbc,pmkToLeft,pFileTime);
|
||||
|
||||
if (pFileTime==NULL)
|
||||
return E_POINTER;
|
||||
|
@ -971,7 +971,7 @@ HRESULT WINAPI FileMonikerImpl_GetTimeOfLastChange(IMoniker* iface,
|
|||
HRESULT WINAPI FileMonikerImpl_Inverse(IMoniker* iface,IMoniker** ppmk)
|
||||
{
|
||||
|
||||
TRACE(ole,"(%p,%p)\n",iface,ppmk);
|
||||
TRACE("(%p,%p)\n",iface,ppmk);
|
||||
|
||||
return CreateAntiMoniker(ppmk);
|
||||
}
|
||||
|
@ -1125,7 +1125,7 @@ HRESULT WINAPI FileMonikerImpl_RelativePathTo(IMoniker* iface,IMoniker* pmOther,
|
|||
DWORD len1=0,len2=0,sameIdx=0,j=0;
|
||||
WCHAR back[] ={'.','.','\\',0};
|
||||
|
||||
TRACE(ole,"(%p,%p,%p)\n",iface,pmOther,ppmkRelPath);
|
||||
TRACE("(%p,%p,%p)\n",iface,pmOther,ppmkRelPath);
|
||||
|
||||
if (ppmkRelPath==NULL)
|
||||
return E_POINTER;
|
||||
|
@ -1201,7 +1201,7 @@ HRESULT WINAPI FileMonikerImpl_GetDisplayName(IMoniker* iface,
|
|||
|
||||
int len=lstrlenW(This->filePathName);
|
||||
|
||||
TRACE(ole,"(%p,%p,%p,%p)\n",iface,pbc,pmkToLeft,ppszDisplayName);
|
||||
TRACE("(%p,%p,%p,%p)\n",iface,pbc,pmkToLeft,ppszDisplayName);
|
||||
|
||||
if (ppszDisplayName==NULL)
|
||||
return E_POINTER;
|
||||
|
@ -1228,7 +1228,7 @@ HRESULT WINAPI FileMonikerImpl_ParseDisplayName(IMoniker* iface,
|
|||
ULONG* pchEaten,
|
||||
IMoniker** ppmkOut)
|
||||
{
|
||||
FIXME(ole,"(%p,%p,%p,%p,%p,%p),stub!\n",iface,pbc,pmkToLeft,pszDisplayName,pchEaten,ppmkOut);
|
||||
FIXME("(%p,%p,%p,%p,%p,%p),stub!\n",iface,pbc,pmkToLeft,pszDisplayName,pchEaten,ppmkOut);
|
||||
return E_NOTIMPL;
|
||||
}
|
||||
|
||||
|
@ -1237,7 +1237,7 @@ HRESULT WINAPI FileMonikerImpl_ParseDisplayName(IMoniker* iface,
|
|||
******************************************************************************/
|
||||
HRESULT WINAPI FileMonikerImpl_IsSystemMoniker(IMoniker* iface,DWORD* pwdMksys)
|
||||
{
|
||||
TRACE(ole,"(%p,%p)\n",iface,pwdMksys);
|
||||
TRACE("(%p,%p)\n",iface,pwdMksys);
|
||||
|
||||
if (!pwdMksys)
|
||||
return E_POINTER;
|
||||
|
@ -1255,7 +1255,7 @@ HRESULT WINAPI FileMonikerROTDataImpl_QueryInterface(IROTData *iface,REFIID riid
|
|||
|
||||
ICOM_THIS_From_IROTData(IMoniker, iface);
|
||||
|
||||
TRACE(ole,"(%p,%p,%p)\n",This,riid,ppvObject);
|
||||
TRACE("(%p,%p,%p)\n",This,riid,ppvObject);
|
||||
|
||||
return FileMonikerImpl_QueryInterface(This, riid, ppvObject);
|
||||
}
|
||||
|
@ -1267,7 +1267,7 @@ ULONG WINAPI FileMonikerROTDataImpl_AddRef(IROTData *iface)
|
|||
{
|
||||
ICOM_THIS_From_IROTData(IMoniker, iface);
|
||||
|
||||
TRACE(ole,"(%p)\n",This);
|
||||
TRACE("(%p)\n",This);
|
||||
|
||||
return FileMonikerImpl_AddRef(This);
|
||||
}
|
||||
|
@ -1279,7 +1279,7 @@ ULONG WINAPI FileMonikerROTDataImpl_Release(IROTData* iface)
|
|||
{
|
||||
ICOM_THIS_From_IROTData(IMoniker, iface);
|
||||
|
||||
TRACE(ole,"(%p)\n",This);
|
||||
TRACE("(%p)\n",This);
|
||||
|
||||
return FileMonikerImpl_Release(This);
|
||||
}
|
||||
|
@ -1292,7 +1292,7 @@ HRESULT WINAPI FileMonikerROTDataImpl_GetComparaisonData(IROTData* iface,
|
|||
ULONG cbMax,
|
||||
ULONG* pcbData)
|
||||
{
|
||||
FIXME(ole,"(),stub!\n");
|
||||
FIXME("(),stub!\n");
|
||||
return E_NOTIMPL;
|
||||
}
|
||||
|
||||
|
@ -1302,7 +1302,7 @@ HRESULT WINAPI FileMonikerROTDataImpl_GetComparaisonData(IROTData* iface,
|
|||
HRESULT WINAPI CreateFileMoniker16(LPCOLESTR16 lpszPathName,LPMONIKER* ppmk)
|
||||
{
|
||||
|
||||
FIXME(ole,"(%s,%p),stub!\n",lpszPathName,ppmk);
|
||||
FIXME("(%s,%p),stub!\n",lpszPathName,ppmk);
|
||||
return E_NOTIMPL;
|
||||
}
|
||||
|
||||
|
@ -1315,7 +1315,7 @@ HRESULT WINAPI CreateFileMoniker(LPCOLESTR lpszPathName, LPMONIKER * ppmk)
|
|||
HRESULT hr = E_FAIL;
|
||||
IID riid=IID_IMoniker;
|
||||
|
||||
TRACE(ole,"(%p,%p)\n",lpszPathName,ppmk);
|
||||
TRACE("(%p,%p)\n",lpszPathName,ppmk);
|
||||
|
||||
if (ppmk==NULL)
|
||||
return E_POINTER;
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
|
||||
#include "winbase.h"
|
||||
#include "winerror.h"
|
||||
#include "debug.h"
|
||||
#include "debugtools.h"
|
||||
|
||||
#include "objbase.h"
|
||||
|
||||
|
@ -279,7 +279,7 @@ HGLOBALStreamImpl* HGLOBALStreamImpl_Construct(
|
|||
*/
|
||||
void HGLOBALStreamImpl_Destroy(HGLOBALStreamImpl* This)
|
||||
{
|
||||
TRACE(storage, "(%p)\n", This);
|
||||
TRACE("(%p)\n", This);
|
||||
|
||||
/*
|
||||
* Release the HGlobal if the constructor asked for that.
|
||||
|
@ -406,7 +406,7 @@ HRESULT WINAPI HGLOBALStreamImpl_Read(
|
|||
ULONG bytesReadBuffer;
|
||||
ULONG bytesToReadFromBuffer;
|
||||
|
||||
TRACE(storage, "(%p, %p, %ld, %p)\n", iface,
|
||||
TRACE("(%p, %p, %ld, %p)\n", iface,
|
||||
pv, cb, pcbRead);
|
||||
|
||||
/*
|
||||
|
@ -477,7 +477,7 @@ HRESULT WINAPI HGLOBALStreamImpl_Write(
|
|||
ULARGE_INTEGER newSize;
|
||||
ULONG bytesWritten = 0;
|
||||
|
||||
TRACE(storage, "(%p, %p, %ld, %p)\n", iface,
|
||||
TRACE("(%p, %p, %ld, %p)\n", iface,
|
||||
pv, cb, pcbWritten);
|
||||
|
||||
/*
|
||||
|
@ -549,7 +549,7 @@ HRESULT WINAPI HGLOBALStreamImpl_Seek(
|
|||
|
||||
ULARGE_INTEGER newPosition;
|
||||
|
||||
TRACE(storage, "(%p, %ld, %ld, %p)\n", iface,
|
||||
TRACE("(%p, %ld, %ld, %p)\n", iface,
|
||||
dlibMove.LowPart, dwOrigin, plibNewPosition);
|
||||
|
||||
/*
|
||||
|
@ -625,7 +625,7 @@ HRESULT WINAPI HGLOBALStreamImpl_SetSize(
|
|||
{
|
||||
HGLOBALStreamImpl* const This=(HGLOBALStreamImpl*)iface;
|
||||
|
||||
TRACE(storage, "(%p, %ld)\n", iface, libNewSize.LowPart);
|
||||
TRACE("(%p, %ld)\n", iface, libNewSize.LowPart);
|
||||
|
||||
/*
|
||||
* As documented.
|
||||
|
@ -668,7 +668,7 @@ HRESULT WINAPI HGLOBALStreamImpl_CopyTo(
|
|||
ULARGE_INTEGER totalBytesRead;
|
||||
ULARGE_INTEGER totalBytesWritten;
|
||||
|
||||
TRACE(storage, "(%p, %p, %ld, %p, %p)\n", iface, pstm,
|
||||
TRACE("(%p, %p, %ld, %p, %p)\n", iface, pstm,
|
||||
cb.LowPart, pcbRead, pcbWritten);
|
||||
|
||||
/*
|
||||
|
@ -823,6 +823,6 @@ HRESULT WINAPI HGLOBALStreamImpl_Clone(
|
|||
IStream* iface,
|
||||
IStream** ppstm) /* [out] */
|
||||
{
|
||||
FIXME(storage, "not implemented!\n");
|
||||
FIXME("not implemented!\n");
|
||||
return E_NOTIMPL;
|
||||
}
|
||||
|
|
44
ole/ifs.c
44
ole/ifs.c
|
@ -15,7 +15,7 @@
|
|||
#include "wine/obj_base.h"
|
||||
#include "local.h"
|
||||
#include "module.h"
|
||||
#include "debug.h"
|
||||
#include "debugtools.h"
|
||||
|
||||
#include "ifs.h"
|
||||
|
||||
|
@ -35,7 +35,7 @@ typedef struct
|
|||
*/
|
||||
static ULONG WINAPI IUnknown_fnAddRef(LPUNKNOWN iface) {
|
||||
ICOM_THIS(IUnknownImpl,iface);
|
||||
TRACE(relay,"(%p)->AddRef()\n",This);
|
||||
TRACE("(%p)->AddRef()\n",This);
|
||||
return ++(This->ref);
|
||||
}
|
||||
|
||||
|
@ -44,7 +44,7 @@ static ULONG WINAPI IUnknown_fnAddRef(LPUNKNOWN iface) {
|
|||
*/
|
||||
static ULONG WINAPI IUnknown_fnRelease(LPUNKNOWN iface) {
|
||||
ICOM_THIS(IUnknownImpl,iface);
|
||||
TRACE(relay,"(%p)->Release()\n",This);
|
||||
TRACE("(%p)->Release()\n",This);
|
||||
if (!--(This->ref)) {
|
||||
HeapFree(GetProcessHeap(),0,This);
|
||||
return 0;
|
||||
|
@ -60,7 +60,7 @@ static HRESULT WINAPI IUnknown_fnQueryInterface(LPUNKNOWN iface,REFIID refiid,LP
|
|||
char xrefiid[50];
|
||||
|
||||
WINE_StringFromCLSID((LPCLSID)refiid,xrefiid);
|
||||
TRACE(relay,"(%p)->QueryInterface(%s,%p)\n",This,xrefiid,obj);
|
||||
TRACE("(%p)->QueryInterface(%s,%p)\n",This,xrefiid,obj);
|
||||
|
||||
if (!memcmp(&IID_IUnknown,refiid,sizeof(IID_IUnknown))) {
|
||||
*obj = This;
|
||||
|
@ -114,7 +114,7 @@ HRESULT WINAPI IMalloc16_fnQueryInterface(IMalloc16* iface,REFIID refiid,LPVOID
|
|||
char xrefiid[50];
|
||||
|
||||
WINE_StringFromCLSID((LPCLSID)refiid,xrefiid);
|
||||
TRACE(relay,"(%p)->QueryInterface(%s,%p)\n",This,xrefiid,obj);
|
||||
TRACE("(%p)->QueryInterface(%s,%p)\n",This,xrefiid,obj);
|
||||
if ( !memcmp(&IID_IUnknown,refiid,sizeof(IID_IUnknown)) ||
|
||||
!memcmp(&IID_IMalloc,refiid,sizeof(IID_IMalloc))
|
||||
) {
|
||||
|
@ -129,7 +129,7 @@ HRESULT WINAPI IMalloc16_fnQueryInterface(IMalloc16* iface,REFIID refiid,LPVOID
|
|||
*/
|
||||
ULONG WINAPI IMalloc16_fnAddRef(IMalloc16* iface) {
|
||||
ICOM_THIS(IMalloc16Impl,iface);
|
||||
TRACE(relay,"(%p)->AddRef()\n",This);
|
||||
TRACE("(%p)->AddRef()\n",This);
|
||||
return 1; /* cannot be freed */
|
||||
}
|
||||
|
||||
|
@ -138,7 +138,7 @@ ULONG WINAPI IMalloc16_fnAddRef(IMalloc16* iface) {
|
|||
*/
|
||||
ULONG WINAPI IMalloc16_fnRelease(IMalloc16* iface) {
|
||||
ICOM_THIS(IMalloc16Impl,iface);
|
||||
TRACE(relay,"(%p)->Release()\n",This);
|
||||
TRACE("(%p)->Release()\n",This);
|
||||
return 1; /* cannot be freed */
|
||||
}
|
||||
|
||||
|
@ -147,7 +147,7 @@ ULONG WINAPI IMalloc16_fnRelease(IMalloc16* iface) {
|
|||
*/
|
||||
LPVOID WINAPI IMalloc16_fnAlloc(IMalloc16* iface,DWORD cb) {
|
||||
ICOM_THIS(IMalloc16Impl,iface);
|
||||
TRACE(relay,"(%p)->Alloc(%ld)\n",This,cb);
|
||||
TRACE("(%p)->Alloc(%ld)\n",This,cb);
|
||||
return (LPVOID)PTR_SEG_OFF_TO_SEGPTR(This->heap,LOCAL_Alloc(This->heap,0,cb));
|
||||
}
|
||||
|
||||
|
@ -156,7 +156,7 @@ LPVOID WINAPI IMalloc16_fnAlloc(IMalloc16* iface,DWORD cb) {
|
|||
*/
|
||||
LPVOID WINAPI IMalloc16_fnRealloc(IMalloc16* iface,LPVOID pv,DWORD cb) {
|
||||
ICOM_THIS(IMalloc16Impl,iface);
|
||||
TRACE(relay,"(%p)->Realloc(%p,%ld)\n",This,pv,cb);
|
||||
TRACE("(%p)->Realloc(%p,%ld)\n",This,pv,cb);
|
||||
return (LPVOID)PTR_SEG_OFF_TO_SEGPTR(This->heap,LOCAL_ReAlloc(This->heap,0,LOWORD(pv),cb));
|
||||
}
|
||||
|
||||
|
@ -165,7 +165,7 @@ LPVOID WINAPI IMalloc16_fnRealloc(IMalloc16* iface,LPVOID pv,DWORD cb) {
|
|||
*/
|
||||
VOID WINAPI IMalloc16_fnFree(IMalloc16* iface,LPVOID pv) {
|
||||
ICOM_THIS(IMalloc16Impl,iface);
|
||||
TRACE(relay,"(%p)->Free(%p)\n",This,pv);
|
||||
TRACE("(%p)->Free(%p)\n",This,pv);
|
||||
LOCAL_Free(This->heap,LOWORD(pv));
|
||||
}
|
||||
|
||||
|
@ -174,7 +174,7 @@ VOID WINAPI IMalloc16_fnFree(IMalloc16* iface,LPVOID pv) {
|
|||
*/
|
||||
DWORD WINAPI IMalloc16_fnGetSize(const IMalloc16* iface,LPVOID pv) {
|
||||
ICOM_CTHIS(IMalloc16Impl,iface);
|
||||
TRACE(relay,"(%p)->GetSize(%p)\n",This,pv);
|
||||
TRACE("(%p)->GetSize(%p)\n",This,pv);
|
||||
return LOCAL_Size(This->heap,LOWORD(pv));
|
||||
}
|
||||
|
||||
|
@ -183,7 +183,7 @@ DWORD WINAPI IMalloc16_fnGetSize(const IMalloc16* iface,LPVOID pv) {
|
|||
*/
|
||||
INT16 WINAPI IMalloc16_fnDidAlloc(const IMalloc16* iface,LPVOID pv) {
|
||||
ICOM_CTHIS(IMalloc16,iface);
|
||||
TRACE(relay,"(%p)->DidAlloc(%p)\n",This,pv);
|
||||
TRACE("(%p)->DidAlloc(%p)\n",This,pv);
|
||||
return (INT16)-1;
|
||||
}
|
||||
|
||||
|
@ -192,7 +192,7 @@ INT16 WINAPI IMalloc16_fnDidAlloc(const IMalloc16* iface,LPVOID pv) {
|
|||
*/
|
||||
LPVOID WINAPI IMalloc16_fnHeapMinimize(IMalloc16* iface) {
|
||||
ICOM_THIS(IMalloc16Impl,iface);
|
||||
TRACE(relay,"(%p)->HeapMinimize()\n",This);
|
||||
TRACE("(%p)->HeapMinimize()\n",This);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
@ -248,7 +248,7 @@ static HRESULT WINAPI IMalloc_fnQueryInterface(LPMALLOC iface,REFIID refiid,LPVO
|
|||
char xrefiid[50];
|
||||
|
||||
WINE_StringFromCLSID((LPCLSID)refiid,xrefiid);
|
||||
TRACE(relay,"(%p)->QueryInterface(%s,%p)\n",This,xrefiid,obj);
|
||||
TRACE("(%p)->QueryInterface(%s,%p)\n",This,xrefiid,obj);
|
||||
if ( !memcmp(&IID_IUnknown,refiid,sizeof(IID_IUnknown)) ||
|
||||
!memcmp(&IID_IMalloc,refiid,sizeof(IID_IMalloc))
|
||||
) {
|
||||
|
@ -263,7 +263,7 @@ static HRESULT WINAPI IMalloc_fnQueryInterface(LPMALLOC iface,REFIID refiid,LPVO
|
|||
*/
|
||||
static ULONG WINAPI IMalloc_fnAddRef(LPMALLOC iface) {
|
||||
ICOM_THIS(IMalloc32Impl,iface);
|
||||
TRACE(relay,"(%p)->AddRef()\n",This);
|
||||
TRACE("(%p)->AddRef()\n",This);
|
||||
return 1; /* cannot be freed */
|
||||
}
|
||||
|
||||
|
@ -272,7 +272,7 @@ static ULONG WINAPI IMalloc_fnAddRef(LPMALLOC iface) {
|
|||
*/
|
||||
static ULONG WINAPI IMalloc_fnRelease(LPMALLOC iface) {
|
||||
ICOM_THIS(IMalloc32Impl,iface);
|
||||
TRACE(relay,"(%p)->Release()\n",This);
|
||||
TRACE("(%p)->Release()\n",This);
|
||||
return 1; /* cannot be freed */
|
||||
}
|
||||
|
||||
|
@ -281,7 +281,7 @@ static ULONG WINAPI IMalloc_fnRelease(LPMALLOC iface) {
|
|||
*/
|
||||
static LPVOID WINAPI IMalloc_fnAlloc(LPMALLOC iface,DWORD cb) {
|
||||
ICOM_THIS(IMalloc32Impl,iface);
|
||||
TRACE(relay,"(%p)->Alloc(%ld)\n",This,cb);
|
||||
TRACE("(%p)->Alloc(%ld)\n",This,cb);
|
||||
return HeapAlloc(GetProcessHeap(),0,cb);
|
||||
}
|
||||
|
||||
|
@ -290,7 +290,7 @@ static LPVOID WINAPI IMalloc_fnAlloc(LPMALLOC iface,DWORD cb) {
|
|||
*/
|
||||
static LPVOID WINAPI IMalloc_fnRealloc(LPMALLOC iface,LPVOID pv,DWORD cb) {
|
||||
ICOM_THIS(IMalloc32Impl,iface);
|
||||
TRACE(relay,"(%p)->Realloc(%p,%ld)\n",This,pv,cb);
|
||||
TRACE("(%p)->Realloc(%p,%ld)\n",This,pv,cb);
|
||||
return HeapReAlloc(GetProcessHeap(),0,pv,cb);
|
||||
}
|
||||
|
||||
|
@ -299,7 +299,7 @@ static LPVOID WINAPI IMalloc_fnRealloc(LPMALLOC iface,LPVOID pv,DWORD cb) {
|
|||
*/
|
||||
static VOID WINAPI IMalloc_fnFree(LPMALLOC iface,LPVOID pv) {
|
||||
ICOM_THIS(IMalloc32Impl,iface);
|
||||
TRACE(relay,"(%p)->Free(%p)\n",This,pv);
|
||||
TRACE("(%p)->Free(%p)\n",This,pv);
|
||||
HeapFree(GetProcessHeap(),0,pv);
|
||||
}
|
||||
|
||||
|
@ -308,7 +308,7 @@ static VOID WINAPI IMalloc_fnFree(LPMALLOC iface,LPVOID pv) {
|
|||
*/
|
||||
static DWORD WINAPI IMalloc_fnGetSize(const IMalloc* iface,LPVOID pv) {
|
||||
ICOM_CTHIS(IMalloc,iface);
|
||||
TRACE(relay,"(%p)->GetSize(%p)\n",This,pv);
|
||||
TRACE("(%p)->GetSize(%p)\n",This,pv);
|
||||
return HeapSize(GetProcessHeap(),0,pv);
|
||||
}
|
||||
|
||||
|
@ -317,7 +317,7 @@ static DWORD WINAPI IMalloc_fnGetSize(const IMalloc* iface,LPVOID pv) {
|
|||
*/
|
||||
static INT WINAPI IMalloc_fnDidAlloc(const IMalloc* iface,LPVOID pv) {
|
||||
ICOM_CTHIS(IMalloc32Impl,iface);
|
||||
TRACE(relay,"(%p)->DidAlloc(%p)\n",This,pv);
|
||||
TRACE("(%p)->DidAlloc(%p)\n",This,pv);
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
@ -326,7 +326,7 @@ static INT WINAPI IMalloc_fnDidAlloc(const IMalloc* iface,LPVOID pv) {
|
|||
*/
|
||||
static LPVOID WINAPI IMalloc_fnHeapMinimize(LPMALLOC iface) {
|
||||
ICOM_THIS(IMalloc32Impl,iface);
|
||||
TRACE(relay,"(%p)->HeapMinimize()\n",This);
|
||||
TRACE("(%p)->HeapMinimize()\n",This);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
#include <assert.h>
|
||||
#include "winerror.h"
|
||||
#include "debug.h"
|
||||
#include "debugtools.h"
|
||||
#include "heap.h"
|
||||
#include "winuser.h"
|
||||
#include "file.h"
|
||||
|
@ -132,7 +132,7 @@ HRESULT WINAPI ItemMonikerImpl_QueryInterface(IMoniker* iface,REFIID riid,void**
|
|||
{
|
||||
ICOM_THIS(ItemMonikerImpl,iface);
|
||||
|
||||
TRACE(ole,"(%p,%p,%p)\n",This,riid,ppvObject);
|
||||
TRACE("(%p,%p,%p)\n",This,riid,ppvObject);
|
||||
|
||||
/* Perform a sanity check on the parameters.*/
|
||||
if ( (This==0) || (ppvObject==0) )
|
||||
|
@ -169,7 +169,7 @@ ULONG WINAPI ItemMonikerImpl_AddRef(IMoniker* iface)
|
|||
{
|
||||
ICOM_THIS(ItemMonikerImpl,iface);
|
||||
|
||||
TRACE(ole,"(%p)\n",This);
|
||||
TRACE("(%p)\n",This);
|
||||
|
||||
return ++(This->ref);
|
||||
}
|
||||
|
@ -181,7 +181,7 @@ ULONG WINAPI ItemMonikerImpl_Release(IMoniker* iface)
|
|||
{
|
||||
ICOM_THIS(ItemMonikerImpl,iface);
|
||||
|
||||
TRACE(ole,"(%p)\n",This);
|
||||
TRACE("(%p)\n",This);
|
||||
|
||||
This->ref--;
|
||||
|
||||
|
@ -200,7 +200,7 @@ ULONG WINAPI ItemMonikerImpl_Release(IMoniker* iface)
|
|||
******************************************************************************/
|
||||
HRESULT WINAPI ItemMonikerImpl_GetClassID(const IMoniker* iface,CLSID *pClassID)
|
||||
{
|
||||
TRACE(ole,"(%p,%p),stub!\n",iface,pClassID);
|
||||
TRACE("(%p,%p),stub!\n",iface,pClassID);
|
||||
|
||||
if (pClassID==NULL)
|
||||
return E_POINTER;
|
||||
|
@ -219,7 +219,7 @@ HRESULT WINAPI ItemMonikerImpl_IsDirty(IMoniker* iface)
|
|||
method in the OLE-provided moniker interfaces always return S_FALSE because
|
||||
their internal state never changes. */
|
||||
|
||||
TRACE(ole,"(%p)\n",iface);
|
||||
TRACE("(%p)\n",iface);
|
||||
|
||||
return S_FALSE;
|
||||
}
|
||||
|
@ -316,7 +316,7 @@ HRESULT WINAPI ItemMonikerImpl_GetSizeMax(IMoniker* iface,
|
|||
DWORD delimiterLength=lstrlenW(This->itemDelimiter)+1;
|
||||
DWORD nameLength=lstrlenW(This->itemName)+1;
|
||||
|
||||
TRACE(ole,"(%p,%p)\n",iface,pcbSize);
|
||||
TRACE("(%p,%p)\n",iface,pcbSize);
|
||||
|
||||
if (pcbSize!=NULL)
|
||||
return E_POINTER;
|
||||
|
@ -343,7 +343,7 @@ HRESULT WINAPI ItemMonikerImpl_Construct(ItemMonikerImpl* This, LPCOLESTR lpszDe
|
|||
int sizeStr1=lstrlenW(lpszItem);
|
||||
int sizeStr2=lstrlenW(lpszDelim);
|
||||
|
||||
TRACE(ole,"(%p,%p)\n",This,lpszItem);
|
||||
TRACE("(%p,%p)\n",This,lpszItem);
|
||||
|
||||
/* Initialize the virtual fgunction table. */
|
||||
This->lpvtbl1 = &VT_ItemMonikerImpl;
|
||||
|
@ -367,7 +367,7 @@ HRESULT WINAPI ItemMonikerImpl_Construct(ItemMonikerImpl* This, LPCOLESTR lpszDe
|
|||
*******************************************************************************/
|
||||
HRESULT WINAPI ItemMonikerImpl_Destroy(ItemMonikerImpl* This)
|
||||
{
|
||||
TRACE(ole,"(%p)\n",This);
|
||||
TRACE("(%p)\n",This);
|
||||
|
||||
if (This->itemName)
|
||||
HeapFree(GetProcessHeap(),0,This->itemName);
|
||||
|
@ -395,7 +395,7 @@ HRESULT WINAPI ItemMonikerImpl_BindToObject(IMoniker* iface,
|
|||
IID refid=IID_IOleItemContainer;
|
||||
IOleItemContainer *poic=0;
|
||||
|
||||
TRACE(ole,"(%p,%p,%p,%p,%p)\n",iface,pbc,pmkToLeft,riid,ppvResult);
|
||||
TRACE("(%p,%p,%p,%p,%p)\n",iface,pbc,pmkToLeft,riid,ppvResult);
|
||||
|
||||
if(ppvResult ==NULL)
|
||||
return E_POINTER;
|
||||
|
@ -431,7 +431,7 @@ HRESULT WINAPI ItemMonikerImpl_BindToStorage(IMoniker* iface,
|
|||
HRESULT res;
|
||||
IOleItemContainer *poic=0;
|
||||
|
||||
TRACE(ole,"(%p,%p,%p,%p,%p)\n",iface,pbc,pmkToLeft,riid,ppvResult);
|
||||
TRACE("(%p,%p,%p,%p,%p)\n",iface,pbc,pmkToLeft,riid,ppvResult);
|
||||
|
||||
*ppvResult=0;
|
||||
|
||||
|
@ -459,7 +459,7 @@ HRESULT WINAPI ItemMonikerImpl_Reduce(IMoniker* iface,
|
|||
IMoniker** ppmkToLeft,
|
||||
IMoniker** ppmkReduced)
|
||||
{
|
||||
TRACE(ole,"(%p,%p,%ld,%p,%p)\n",iface,pbc,dwReduceHowFar,ppmkToLeft,ppmkReduced);
|
||||
TRACE("(%p,%p,%ld,%p,%p)\n",iface,pbc,dwReduceHowFar,ppmkToLeft,ppmkReduced);
|
||||
|
||||
if (ppmkReduced==NULL)
|
||||
return E_POINTER;
|
||||
|
@ -484,7 +484,7 @@ HRESULT WINAPI ItemMonikerImpl_ComposeWith(IMoniker* iface,
|
|||
IMoniker *pmostLeftMk=0;
|
||||
IMoniker* tempMkComposite=0;
|
||||
|
||||
TRACE(ole,"(%p,%p,%d,%p)\n",iface,pmkRight,fOnlyIfNotGeneric,ppmkComposite);
|
||||
TRACE("(%p,%p,%d,%p)\n",iface,pmkRight,fOnlyIfNotGeneric,ppmkComposite);
|
||||
|
||||
if ((ppmkComposite==NULL)||(pmkRight==NULL))
|
||||
return E_POINTER;
|
||||
|
@ -550,7 +550,7 @@ HRESULT WINAPI ItemMonikerImpl_ComposeWith(IMoniker* iface,
|
|||
******************************************************************************/
|
||||
HRESULT WINAPI ItemMonikerImpl_Enum(IMoniker* iface,BOOL fForward, IEnumMoniker** ppenumMoniker)
|
||||
{
|
||||
TRACE(ole,"(%p,%d,%p)\n",iface,fForward,ppenumMoniker);
|
||||
TRACE("(%p,%d,%p)\n",iface,fForward,ppenumMoniker);
|
||||
|
||||
if (ppenumMoniker == NULL)
|
||||
return E_POINTER;
|
||||
|
@ -571,7 +571,7 @@ HRESULT WINAPI ItemMonikerImpl_IsEqual(IMoniker* iface,IMoniker* pmkOtherMoniker
|
|||
IBindCtx* bind;
|
||||
HRESULT res;
|
||||
|
||||
TRACE(ole,"(%p,%p)\n",iface,pmkOtherMoniker);
|
||||
TRACE("(%p,%p)\n",iface,pmkOtherMoniker);
|
||||
|
||||
if (pmkOtherMoniker==NULL)
|
||||
return S_FALSE;
|
||||
|
@ -644,7 +644,7 @@ HRESULT WINAPI ItemMonikerImpl_IsRunning(IMoniker* iface,
|
|||
IOleItemContainer *poic=0;
|
||||
ICOM_THIS(ItemMonikerImpl,iface);
|
||||
|
||||
TRACE(ole,"(%p,%p,%p,%p)\n",iface,pbc,pmkToLeft,pmkNewlyRunning);
|
||||
TRACE("(%p,%p,%p,%p)\n",iface,pbc,pmkToLeft,pmkNewlyRunning);
|
||||
|
||||
/* If pmkToLeft is NULL, this method returns TRUE if pmkNewlyRunning is non-NULL and is equal to this */
|
||||
/* moniker. Otherwise, the method checks the ROT to see whether this moniker is running. */
|
||||
|
@ -695,7 +695,7 @@ HRESULT WINAPI ItemMonikerImpl_GetTimeOfLastChange(IMoniker* iface,
|
|||
HRESULT res;
|
||||
IMoniker *compositeMk;
|
||||
|
||||
TRACE(ole,"(%p,%p,%p,%p)\n",iface,pbc,pmkToLeft,pItemTime);
|
||||
TRACE("(%p,%p,%p,%p)\n",iface,pbc,pmkToLeft,pItemTime);
|
||||
|
||||
if (pItemTime==NULL)
|
||||
return E_INVALIDARG;
|
||||
|
@ -729,7 +729,7 @@ HRESULT WINAPI ItemMonikerImpl_GetTimeOfLastChange(IMoniker* iface,
|
|||
******************************************************************************/
|
||||
HRESULT WINAPI ItemMonikerImpl_Inverse(IMoniker* iface,IMoniker** ppmk)
|
||||
{
|
||||
TRACE(ole,"(%p,%p)\n",iface,ppmk);
|
||||
TRACE("(%p,%p)\n",iface,ppmk);
|
||||
|
||||
if (ppmk==NULL)
|
||||
return E_POINTER;
|
||||
|
@ -766,7 +766,7 @@ HRESULT WINAPI ItemMonikerImpl_CommonPrefixWith(IMoniker* iface,IMoniker* pmkOth
|
|||
******************************************************************************/
|
||||
HRESULT WINAPI ItemMonikerImpl_RelativePathTo(IMoniker* iface,IMoniker* pmOther, IMoniker** ppmkRelPath)
|
||||
{
|
||||
TRACE(ole,"(%p,%p,%p)\n",iface,pmOther,ppmkRelPath);
|
||||
TRACE("(%p,%p,%p)\n",iface,pmOther,ppmkRelPath);
|
||||
|
||||
if (ppmkRelPath==NULL)
|
||||
return E_POINTER;
|
||||
|
@ -786,7 +786,7 @@ HRESULT WINAPI ItemMonikerImpl_GetDisplayName(IMoniker* iface,
|
|||
{
|
||||
ICOM_THIS(ItemMonikerImpl,iface);
|
||||
|
||||
TRACE(ole,"(%p,%p,%p,%p)\n",iface,pbc,pmkToLeft,ppszDisplayName);
|
||||
TRACE("(%p,%p,%p,%p)\n",iface,pbc,pmkToLeft,ppszDisplayName);
|
||||
|
||||
if (ppszDisplayName==NULL)
|
||||
return E_POINTER;
|
||||
|
@ -852,7 +852,7 @@ HRESULT WINAPI ItemMonikerImpl_ParseDisplayName(IMoniker* iface,
|
|||
******************************************************************************/
|
||||
HRESULT WINAPI ItemMonikerImpl_IsSystemMoniker(IMoniker* iface,DWORD* pwdMksys)
|
||||
{
|
||||
TRACE(ole,"(%p,%p)\n",iface,pwdMksys);
|
||||
TRACE("(%p,%p)\n",iface,pwdMksys);
|
||||
|
||||
if (!pwdMksys)
|
||||
return E_POINTER;
|
||||
|
@ -870,7 +870,7 @@ HRESULT WINAPI ItemMonikerROTDataImpl_QueryInterface(IROTData *iface,REFIID riid
|
|||
|
||||
ICOM_THIS_From_IROTData(IMoniker, iface);
|
||||
|
||||
TRACE(ole,"(%p,%p,%p)\n",iface,riid,ppvObject);
|
||||
TRACE("(%p,%p,%p)\n",iface,riid,ppvObject);
|
||||
|
||||
return ItemMonikerImpl_QueryInterface(This, riid, ppvObject);
|
||||
}
|
||||
|
@ -882,7 +882,7 @@ ULONG WINAPI ItemMonikerROTDataImpl_AddRef(IROTData *iface)
|
|||
{
|
||||
ICOM_THIS_From_IROTData(IMoniker, iface);
|
||||
|
||||
TRACE(ole,"(%p)\n",iface);
|
||||
TRACE("(%p)\n",iface);
|
||||
|
||||
return ItemMonikerImpl_AddRef(This);
|
||||
}
|
||||
|
@ -894,7 +894,7 @@ ULONG WINAPI ItemMonikerROTDataImpl_Release(IROTData* iface)
|
|||
{
|
||||
ICOM_THIS_From_IROTData(IMoniker, iface);
|
||||
|
||||
TRACE(ole,"(%p)\n",iface);
|
||||
TRACE("(%p)\n",iface);
|
||||
|
||||
return ItemMonikerImpl_Release(This);
|
||||
}
|
||||
|
@ -907,7 +907,7 @@ HRESULT WINAPI ItemMonikerROTDataImpl_GetComparaisonData(IROTData* iface,
|
|||
ULONG cbMax,
|
||||
ULONG* pcbData)
|
||||
{
|
||||
FIXME(ole,"(),stub!\n");
|
||||
FIXME("(),stub!\n");
|
||||
return E_NOTIMPL;
|
||||
}
|
||||
|
||||
|
@ -917,7 +917,7 @@ HRESULT WINAPI ItemMonikerROTDataImpl_GetComparaisonData(IROTData* iface,
|
|||
HRESULT WINAPI CreateItemMoniker16(LPCOLESTR16 lpszDelim,LPCOLESTR lpszItem,LPMONIKER* ppmk)
|
||||
{
|
||||
|
||||
FIXME(ole,"(%s,%p),stub!\n",lpszDelim,ppmk);
|
||||
FIXME("(%s,%p),stub!\n",lpszDelim,ppmk);
|
||||
*ppmk = NULL;
|
||||
return E_NOTIMPL;
|
||||
}
|
||||
|
@ -931,7 +931,7 @@ HRESULT WINAPI CreateItemMoniker(LPCOLESTR lpszDelim,LPCOLESTR lpszItem, LPMONI
|
|||
HRESULT hr = S_OK;
|
||||
IID riid=IID_IMoniker;
|
||||
|
||||
TRACE(ole,"(%p,%p,%p)\n",lpszDelim,lpszItem,ppmk);
|
||||
TRACE("(%p,%p,%p)\n",lpszDelim,lpszItem,ppmk);
|
||||
|
||||
newItemMoniker = HeapAlloc(GetProcessHeap(), 0, sizeof(ItemMonikerImpl));
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
#include "winerror.h"
|
||||
#include "objbase.h"
|
||||
|
||||
#include "debug.h"
|
||||
#include "debugtools.h"
|
||||
|
||||
DEFAULT_DEBUG_CHANNEL(ole)
|
||||
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
#include <assert.h>
|
||||
#include "winerror.h"
|
||||
#include "wine/obj_moniker.h"
|
||||
#include "debug.h"
|
||||
#include "debugtools.h"
|
||||
#include "heap.h"
|
||||
|
||||
DEFAULT_DEBUG_CHANNEL(ole)
|
||||
|
@ -82,7 +82,7 @@ HRESULT WINAPI RunningObjectTableImpl_QueryInterface(IRunningObjectTable* iface,
|
|||
{
|
||||
ICOM_THIS(RunningObjectTableImpl,iface);
|
||||
|
||||
TRACE(ole,"(%p,%p,%p)\n",This,riid,ppvObject);
|
||||
TRACE("(%p,%p,%p)\n",This,riid,ppvObject);
|
||||
|
||||
/* validate arguments*/
|
||||
if (This==0)
|
||||
|
@ -114,7 +114,7 @@ ULONG WINAPI RunningObjectTableImpl_AddRef(IRunningObjectTable* iface)
|
|||
{
|
||||
ICOM_THIS(RunningObjectTableImpl,iface);
|
||||
|
||||
TRACE(ole,"(%p)\n",This);
|
||||
TRACE("(%p)\n",This);
|
||||
|
||||
return ++(This->ref);
|
||||
}
|
||||
|
@ -124,7 +124,7 @@ ULONG WINAPI RunningObjectTableImpl_AddRef(IRunningObjectTable* iface)
|
|||
*/
|
||||
HRESULT WINAPI RunningObjectTableImpl_Destroy()
|
||||
{
|
||||
TRACE(ole,"()\n");
|
||||
TRACE("()\n");
|
||||
|
||||
if (runningObjectTableInstance==NULL)
|
||||
return E_INVALIDARG;
|
||||
|
@ -146,7 +146,7 @@ ULONG WINAPI RunningObjectTableImpl_Release(IRunningObjectTable* iface)
|
|||
DWORD i;
|
||||
ICOM_THIS(RunningObjectTableImpl,iface);
|
||||
|
||||
TRACE(ole,"(%p)\n",This);
|
||||
TRACE("(%p)\n",This);
|
||||
|
||||
This->ref--;
|
||||
|
||||
|
@ -180,7 +180,7 @@ ULONG WINAPI RunningObjectTableImpl_Release(IRunningObjectTable* iface)
|
|||
*/
|
||||
HRESULT WINAPI RunningObjectTableImpl_Initialize()
|
||||
{
|
||||
TRACE(ole,"()\n");
|
||||
TRACE("()\n");
|
||||
|
||||
/* create the unique instance of the RunningObjectTableImpl structure */
|
||||
runningObjectTableInstance = HeapAlloc(GetProcessHeap(), 0, sizeof(RunningObjectTableImpl));
|
||||
|
@ -214,7 +214,7 @@ HRESULT WINAPI RunningObjectTableImpl_Initialize()
|
|||
*/
|
||||
HRESULT WINAPI RunningObjectTableImpl_UnInitialize()
|
||||
{
|
||||
TRACE(ole,"()\n");
|
||||
TRACE("()\n");
|
||||
|
||||
if (runningObjectTableInstance==NULL)
|
||||
return E_POINTER;
|
||||
|
@ -238,7 +238,7 @@ HRESULT WINAPI RunningObjectTableImpl_Register(IRunningObjectTable* iface,
|
|||
HRESULT res=S_OK;
|
||||
ICOM_THIS(RunningObjectTableImpl,iface);
|
||||
|
||||
TRACE(ole,"(%p,%ld,%p,%p,%p)\n",This,grfFlags,punkObject,pmkObjectName,pdwRegister);
|
||||
TRACE("(%p,%ld,%p,%p,%p)\n",This,grfFlags,punkObject,pmkObjectName,pdwRegister);
|
||||
|
||||
/* there's only tow types of register : strong and or weak registration (only one must be passed on parameter) */
|
||||
if ( ( (grfFlags & ROTFLAGS_REGISTRATIONKEEPSALIVE) || !(grfFlags & ROTFLAGS_ALLOWANYCLIENT)) &&
|
||||
|
@ -265,7 +265,7 @@ HRESULT WINAPI RunningObjectTableImpl_Register(IRunningObjectTable* iface,
|
|||
|
||||
if (This->runObjTabRegister == 0xFFFFFFFF){
|
||||
|
||||
FIXME(ole,"runObjTabRegister: %ld is out of data limite \n",This->runObjTabRegister);
|
||||
FIXME("runObjTabRegister: %ld is out of data limite \n",This->runObjTabRegister);
|
||||
return E_FAIL;
|
||||
}
|
||||
This->runObjTabRegister++;
|
||||
|
@ -298,7 +298,7 @@ HRESULT WINAPI RunningObjectTableImpl_Revoke( IRunningObjectTable* iface,
|
|||
DWORD index,j;
|
||||
ICOM_THIS(RunningObjectTableImpl,iface);
|
||||
|
||||
TRACE(ole,"(%p,%ld)\n",This,dwRegister);
|
||||
TRACE("(%p,%ld)\n",This,dwRegister);
|
||||
|
||||
/* verify if the object to be revoked was registred befor or not */
|
||||
if (RunningObjectTableImpl_GetObjectIndex(This,dwRegister,NULL,&index)==S_FALSE)
|
||||
|
@ -328,7 +328,7 @@ HRESULT WINAPI RunningObjectTableImpl_IsRunning( IRunningObjectTable* iface,
|
|||
{
|
||||
ICOM_THIS(RunningObjectTableImpl,iface);
|
||||
|
||||
TRACE(ole,"(%p,%p)\n",This,pmkObjectName);
|
||||
TRACE("(%p,%p)\n",This,pmkObjectName);
|
||||
|
||||
return RunningObjectTableImpl_GetObjectIndex(This,-1,pmkObjectName,NULL);
|
||||
}
|
||||
|
@ -343,7 +343,7 @@ HRESULT WINAPI RunningObjectTableImpl_GetObject( IRunningObjectTable* iface,
|
|||
DWORD index;
|
||||
ICOM_THIS(RunningObjectTableImpl,iface);
|
||||
|
||||
TRACE(ole,"(%p,%p,%p)\n",This,pmkObjectName,ppunkObject);
|
||||
TRACE("(%p,%p,%p)\n",This,pmkObjectName,ppunkObject);
|
||||
|
||||
if (ppunkObject==NULL)
|
||||
return E_POINTER;
|
||||
|
@ -371,7 +371,7 @@ HRESULT WINAPI RunningObjectTableImpl_NoteChangeTime(IRunningObjectTable* iface,
|
|||
DWORD index=-1;
|
||||
ICOM_THIS(RunningObjectTableImpl,iface);
|
||||
|
||||
TRACE(ole,"(%p,%ld,%p)\n",This,dwRegister,pfiletime);
|
||||
TRACE("(%p,%ld,%p)\n",This,dwRegister,pfiletime);
|
||||
|
||||
/* verify if the object to be changed was registred befor or not */
|
||||
if (RunningObjectTableImpl_GetObjectIndex(This,dwRegister,NULL,&index)==S_FALSE)
|
||||
|
@ -393,7 +393,7 @@ HRESULT WINAPI RunningObjectTableImpl_GetTimeOfLastChange(IRunningObjectTable* i
|
|||
DWORD index=-1;
|
||||
ICOM_THIS(RunningObjectTableImpl,iface);
|
||||
|
||||
TRACE(ole,"(%p,%p,%p)\n",This,pmkObjectName,pfiletime);
|
||||
TRACE("(%p,%p,%p)\n",This,pmkObjectName,pfiletime);
|
||||
|
||||
if (pmkObjectName==NULL || pfiletime==NULL)
|
||||
return E_INVALIDARG;
|
||||
|
@ -413,7 +413,7 @@ HRESULT WINAPI RunningObjectTableImpl_GetTimeOfLastChange(IRunningObjectTable* i
|
|||
HRESULT WINAPI RunningObjectTableImpl_EnumRunning(IRunningObjectTable* iface,
|
||||
IEnumMoniker **ppenumMoniker) /* Address of output variable that receives the IEnumMoniker interface pointer */
|
||||
{
|
||||
FIXME(ole,"(%p,%p) needs the IEnumMoniker implementation \n",iface,ppenumMoniker);
|
||||
FIXME("(%p,%p) needs the IEnumMoniker implementation \n",iface,ppenumMoniker);
|
||||
return E_NOTIMPL;
|
||||
}
|
||||
|
||||
|
@ -428,7 +428,7 @@ HRESULT WINAPI RunningObjectTableImpl_GetObjectIndex(RunningObjectTableImpl* Thi
|
|||
|
||||
DWORD i;
|
||||
|
||||
TRACE(ole,"(%p,%ld,%p,%p)\n",This,identReg,pmk,indx);
|
||||
TRACE("(%p,%ld,%p,%p)\n",This,identReg,pmk,indx);
|
||||
|
||||
if (pmk!=NULL)
|
||||
/* search object identified by a moniker*/
|
||||
|
@ -449,7 +449,7 @@ HRESULT WINAPI RunningObjectTableImpl_GetObjectIndex(RunningObjectTableImpl* Thi
|
|||
*/
|
||||
HRESULT WINAPI GetRunningObjectTable16(DWORD reserved, LPRUNNINGOBJECTTABLE *pprot)
|
||||
{
|
||||
FIXME(ole,"(%ld,%p),stub!\n",reserved,pprot);
|
||||
FIXME("(%ld,%p),stub!\n",reserved,pprot);
|
||||
return E_NOTIMPL;
|
||||
}
|
||||
|
||||
|
@ -461,7 +461,7 @@ HRESULT WINAPI GetRunningObjectTable(DWORD reserved, LPRUNNINGOBJECTTABLE *pprot
|
|||
IID riid=IID_IRunningObjectTable;
|
||||
HRESULT res;
|
||||
|
||||
TRACE(ole,"()\n");
|
||||
TRACE("()\n");
|
||||
|
||||
if (reserved!=0)
|
||||
return E_UNEXPECTED;
|
||||
|
|
54
ole/ole2.c
54
ole/ole2.c
|
@ -18,7 +18,7 @@
|
|||
#include "commctrl.h"
|
||||
#include "wine/obj_clientserver.h"
|
||||
#include "wine/wingdi16.h"
|
||||
#include "debug.h"
|
||||
#include "debugtools.h"
|
||||
#include "ole2ver.h"
|
||||
#include "winreg.h"
|
||||
|
||||
|
@ -138,7 +138,7 @@ static DWORD OLEDD_GetButtonState();
|
|||
*/
|
||||
DWORD WINAPI OleBuildVersion(void)
|
||||
{
|
||||
TRACE(ole,"(void)\n");
|
||||
TRACE("(void)\n");
|
||||
return (rmm<<16)+rup;
|
||||
}
|
||||
|
||||
|
@ -149,7 +149,7 @@ HRESULT WINAPI OleInitialize(LPVOID reserved)
|
|||
{
|
||||
HRESULT hr;
|
||||
|
||||
TRACE(ole, "(%p)\n", reserved);
|
||||
TRACE("(%p)\n", reserved);
|
||||
|
||||
/*
|
||||
* The first duty of the OleInitialize is to initialize the COM libraries.
|
||||
|
@ -176,7 +176,7 @@ HRESULT WINAPI OleInitialize(LPVOID reserved)
|
|||
/*
|
||||
* Initialize the libraries.
|
||||
*/
|
||||
TRACE(ole, "() - Initializing the OLE libraries\n");
|
||||
TRACE("() - Initializing the OLE libraries\n");
|
||||
|
||||
/*
|
||||
* Drag and Drop
|
||||
|
@ -212,7 +212,7 @@ DWORD WINAPI CoGetCurrentProcess(void) {
|
|||
*/
|
||||
void WINAPI OleUninitialize(void)
|
||||
{
|
||||
TRACE(ole, "()\n");
|
||||
TRACE("()\n");
|
||||
|
||||
/*
|
||||
* Decrease the lock count on the OLE module.
|
||||
|
@ -227,7 +227,7 @@ void WINAPI OleUninitialize(void)
|
|||
/*
|
||||
* Actually free the libraries.
|
||||
*/
|
||||
TRACE(ole, "() - Freeing the last reference count\n");
|
||||
TRACE("() - Freeing the last reference count\n");
|
||||
|
||||
/*
|
||||
* Drag and Drop
|
||||
|
@ -259,7 +259,7 @@ HRESULT WINAPI OleFlushClipboard16(void)
|
|||
*/
|
||||
HRESULT WINAPI OleSetClipboard(LPVOID pDataObj)
|
||||
{
|
||||
FIXME(ole,"(%p), stub!\n", pDataObj);
|
||||
FIXME("(%p), stub!\n", pDataObj);
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
@ -270,7 +270,7 @@ HRESULT WINAPI CoRegisterMessageFilter(
|
|||
LPMESSAGEFILTER lpMessageFilter, /* Pointer to interface */
|
||||
LPMESSAGEFILTER *lplpMessageFilter /* Indirect pointer to prior instance if non-NULL */
|
||||
) {
|
||||
FIXME(ole,"stub\n");
|
||||
FIXME("stub\n");
|
||||
if (lplpMessageFilter) {
|
||||
*lplpMessageFilter = NULL;
|
||||
}
|
||||
|
@ -281,7 +281,7 @@ HRESULT WINAPI CoRegisterMessageFilter(
|
|||
* OleInitializeWOW [OLE32.109]
|
||||
*/
|
||||
HRESULT WINAPI OleInitializeWOW(DWORD x) {
|
||||
FIXME(ole,"(0x%08lx),stub!\n",x);
|
||||
FIXME("(0x%08lx),stub!\n",x);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@ -292,7 +292,7 @@ HRESULT WINAPI RegisterDragDrop16(
|
|||
HWND16 hwnd,
|
||||
LPDROPTARGET pDropTarget
|
||||
) {
|
||||
FIXME(ole,"(0x%04x,%p),stub!\n",hwnd,pDropTarget);
|
||||
FIXME("(0x%04x,%p),stub!\n",hwnd,pDropTarget);
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
@ -305,7 +305,7 @@ HRESULT WINAPI RegisterDragDrop(
|
|||
{
|
||||
DropTargetNode* dropTargetInfo;
|
||||
|
||||
TRACE(ole,"(0x%x,%p)\n", hwnd, pDropTarget);
|
||||
TRACE("(0x%x,%p)\n", hwnd, pDropTarget);
|
||||
|
||||
/*
|
||||
* First, check if the window is already registered.
|
||||
|
@ -345,7 +345,7 @@ HRESULT WINAPI RegisterDragDrop(
|
|||
HRESULT WINAPI RevokeDragDrop16(
|
||||
HWND16 hwnd
|
||||
) {
|
||||
FIXME(ole,"(0x%04x),stub!\n",hwnd);
|
||||
FIXME("(0x%04x),stub!\n",hwnd);
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
@ -357,7 +357,7 @@ HRESULT WINAPI RevokeDragDrop(
|
|||
{
|
||||
DropTargetNode* dropTargetInfo;
|
||||
|
||||
TRACE(ole,"(0x%x)\n", hwnd);
|
||||
TRACE("(0x%x)\n", hwnd);
|
||||
|
||||
/*
|
||||
* First, check if the window is already registered.
|
||||
|
@ -414,7 +414,7 @@ HRESULT WINAPI OleRegGetUserType(
|
|||
strcat(keyName, xclsid);
|
||||
strcat(keyName, "\\");
|
||||
|
||||
TRACE(ole,"(%s, %ld, %p)\n", keyName, dwFormOfType, pszUserType);
|
||||
TRACE("(%s, %ld, %p)\n", keyName, dwFormOfType, pszUserType);
|
||||
|
||||
/*
|
||||
* Open the class id Key
|
||||
|
@ -488,7 +488,7 @@ HRESULT WINAPI DoDragDrop (
|
|||
HWND hwndTrackWindow;
|
||||
MSG msg;
|
||||
|
||||
TRACE(ole,"(DataObject %p, DropSource %p)\n", pDataObject, pDropSource);
|
||||
TRACE("(DataObject %p, DropSource %p)\n", pDataObject, pDropSource);
|
||||
|
||||
/*
|
||||
* Setup the drag n drop tracking window.
|
||||
|
@ -572,7 +572,7 @@ HRESULT WINAPI DoDragDrop (
|
|||
HRESULT WINAPI OleQueryLinkFromData(
|
||||
IDataObject* pSrcDataObject)
|
||||
{
|
||||
FIXME(ole,"(%p),stub!\n", pSrcDataObject);
|
||||
FIXME("(%p),stub!\n", pSrcDataObject);
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
@ -605,7 +605,7 @@ HRESULT WINAPI OleRegGetMiscStatus(
|
|||
strcat(keyName, xclsid);
|
||||
strcat(keyName, "\\");
|
||||
|
||||
TRACE(ole,"(%s, %ld, %p)\n", keyName, dwAspect, pdwStatus);
|
||||
TRACE("(%s, %ld, %p)\n", keyName, dwAspect, pdwStatus);
|
||||
|
||||
/*
|
||||
* Open the class id Key
|
||||
|
@ -670,7 +670,7 @@ HRESULT WINAPI OleSetContainedObject(
|
|||
IRunnableObject* runnable = NULL;
|
||||
HRESULT hres;
|
||||
|
||||
TRACE(ole,"(%p,%x), stub!\n", pUnknown, fContained);
|
||||
TRACE("(%p,%x), stub!\n", pUnknown, fContained);
|
||||
|
||||
hres = IUnknown_QueryInterface(pUnknown,
|
||||
&IID_IRunnableObject,
|
||||
|
@ -702,7 +702,7 @@ HRESULT WINAPI OleLoad(
|
|||
STATSTG storageInfo;
|
||||
HRESULT hres;
|
||||
|
||||
TRACE(ole,"(%p,%p,%p,%p)\n", pStg, riid, pClientSite, ppvObj);
|
||||
TRACE("(%p,%p,%p,%p)\n", pStg, riid, pClientSite, ppvObj);
|
||||
|
||||
/*
|
||||
* TODO, Conversion ... OleDoAutoConvert
|
||||
|
@ -784,7 +784,7 @@ HRESULT WINAPI OleSave(
|
|||
HRESULT hres;
|
||||
CLSID objectClass;
|
||||
|
||||
TRACE(ole,"(%p,%p,%x)\n", pPS, pStg, fSameAsLoad);
|
||||
TRACE("(%p,%p,%x)\n", pPS, pStg, fSameAsLoad);
|
||||
|
||||
/*
|
||||
* First, we transfer the class ID (if available)
|
||||
|
@ -818,7 +818,7 @@ HRESULT WINAPI OleSave(
|
|||
HRESULT WINAPI OleGetClipboard(
|
||||
IDataObject** ppDataObj)
|
||||
{
|
||||
FIXME(ole,"(%p),stub!\n", ppDataObj);
|
||||
FIXME("(%p),stub!\n", ppDataObj);
|
||||
|
||||
if (ppDataObj)
|
||||
*ppDataObj=0;
|
||||
|
@ -1091,7 +1091,7 @@ LRESULT CALLBACK OLEMenu_CallWndProc(INT code, WPARAM wParam, LPARAM lParam)
|
|||
OleMenuHookItem *pHookItem = NULL;
|
||||
WORD fuFlags;
|
||||
|
||||
TRACE(ole,"%i, %04x, %08x\n", code, wParam, (unsigned)lParam );
|
||||
TRACE("%i, %04x, %08x\n", code, wParam, (unsigned)lParam );
|
||||
|
||||
/* Check if we're being asked to process the message */
|
||||
if ( HC_ACTION != code )
|
||||
|
@ -1175,7 +1175,7 @@ NEXTHOOK:
|
|||
if ( !( pHookItem = OLEMenu_IsHookInstalled( GetCurrentThreadId(), NULL ) ) )
|
||||
{
|
||||
/* This should never fail!! */
|
||||
WARN(ole, "could not retrieve hHook for current thread!\n" );
|
||||
WARN("could not retrieve hHook for current thread!\n" );
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@ -1196,7 +1196,7 @@ LRESULT CALLBACK OLEMenu_GetMsgProc(INT code, WPARAM wParam, LPARAM lParam)
|
|||
OleMenuHookItem *pHookItem = NULL;
|
||||
WORD wCode;
|
||||
|
||||
TRACE(ole,"%i, %04x, %08x\n", code, wParam, (unsigned)lParam );
|
||||
TRACE("%i, %04x, %08x\n", code, wParam, (unsigned)lParam );
|
||||
|
||||
/* Check if we're being asked to process a messages */
|
||||
if ( HC_ACTION != code )
|
||||
|
@ -1249,7 +1249,7 @@ NEXTHOOK:
|
|||
if ( !( pHookItem = OLEMenu_IsHookInstalled( GetCurrentThreadId(), NULL ) ) )
|
||||
{
|
||||
/* This should never fail!! */
|
||||
WARN(ole, "could not retrieve hHook for current thread!\n" );
|
||||
WARN("could not retrieve hHook for current thread!\n" );
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
|
@ -1343,7 +1343,7 @@ HRESULT WINAPI OleSetMenuDescriptor(
|
|||
|
||||
if ( lpFrame || lpActiveObject )
|
||||
{
|
||||
FIXME(ole,"(%x, %x, %x, %p, %p), Context sensitive help filtering not implemented!\n",
|
||||
FIXME("(%x, %x, %x, %p, %p), Context sensitive help filtering not implemented!\n",
|
||||
(unsigned int)hOleMenu,
|
||||
hwndFrame,
|
||||
hwndActiveObject,
|
||||
|
@ -2120,7 +2120,7 @@ HGLOBAL16 WINAPI OleMetaFilePictFromIconAndLabel16(
|
|||
HGLOBAL16 hmf;
|
||||
HDC16 hdc;
|
||||
|
||||
FIXME(ole, "(%04x, '%s', '%s', %d): incorrect metrics, please try to correct them !\n\n\n", hIcon, lpszLabel, lpszSourceFile, iIconIndex);
|
||||
FIXME("(%04x, '%s', '%s', %d): incorrect metrics, please try to correct them !\n\n\n", hIcon, lpszLabel, lpszSourceFile, iIconIndex);
|
||||
|
||||
if (!hIcon) {
|
||||
if (lpszSourceFile) {
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
#include "wine/obj_base.h"
|
||||
#include "heap.h"
|
||||
#include "ldt.h"
|
||||
#include "debug.h"
|
||||
#include "debugtools.h"
|
||||
|
||||
DEFAULT_DEBUG_CHANNEL(ole)
|
||||
|
||||
|
@ -300,7 +300,7 @@ HRESULT WINAPI CreateDispTypeInfo16(
|
|||
LCID lcid,
|
||||
ITypeInfo **pptinfo
|
||||
) {
|
||||
FIXME(ole,"(%p,%ld,%p),stub\n",pidata,lcid,pptinfo);
|
||||
FIXME("(%p,%ld,%p),stub\n",pidata,lcid,pptinfo);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@ -312,7 +312,7 @@ HRESULT WINAPI RegisterActiveObject16(
|
|||
) {
|
||||
char buf[80];
|
||||
WINE_StringFromCLSID(rclsid,buf);
|
||||
FIXME(ole,"(%p,%s,0x%08lx,%p):stub\n",punk,buf,dwFlags,pdwRegister);
|
||||
FIXME("(%p,%s,0x%08lx,%p):stub\n",punk,buf,dwFlags,pdwRegister);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@ -332,7 +332,7 @@ INT WINAPI OleTranslateColor(
|
|||
COLORREF colorref;
|
||||
BYTE b = HIBYTE(HIWORD(clr));
|
||||
|
||||
TRACE(ole,"(%08lx, %d, %p):stub\n", clr, hpal, pColorRef);
|
||||
TRACE("(%08lx, %d, %p):stub\n", clr, hpal, pColorRef);
|
||||
|
||||
/*
|
||||
* In case pColorRef is NULL, provide our own to simplify the code.
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
*/
|
||||
|
||||
#include "ole2.h"
|
||||
#include "debug.h"
|
||||
#include "debugtools.h"
|
||||
|
||||
DEFAULT_DEBUG_CHANNEL(ole)
|
||||
|
||||
|
@ -17,7 +17,7 @@ HRESULT WINAPI OleCreateFromData(LPDATAOBJECT pSrcDataObj, REFIID riid,
|
|||
LPOLECLIENTSITE pClientSite, LPSTORAGE pStg,
|
||||
LPVOID* ppvObj)
|
||||
{
|
||||
FIXME(ole,"(%p,%p,%li,%p,%p,%p,%p), stub!\n", pSrcDataObj,riid,renderopt,pFormatEtc,pClientSite,pStg,ppvObj);
|
||||
FIXME("(%p,%p,%li,%p,%p,%p,%p), stub!\n", pSrcDataObj,riid,renderopt,pFormatEtc,pClientSite,pStg,ppvObj);
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
@ -29,7 +29,7 @@ HRESULT WINAPI OleCreateLinkToFile(LPCOLESTR lpszFileName, REFIID riid,
|
|||
DWORD renderopt, LPFORMATETC lpFormatEtc,
|
||||
LPOLECLIENTSITE pClientSite, LPSTORAGE pStg, LPVOID* ppvObj)
|
||||
{
|
||||
FIXME(ole,"(%p,%p,%li,%p,%p,%p,%p), stub!\n",lpszFileName, riid, renderopt, lpFormatEtc, pClientSite, pStg, ppvObj);
|
||||
FIXME("(%p,%p,%li,%p,%p,%p,%p), stub!\n",lpszFileName, riid, renderopt, lpFormatEtc, pClientSite, pStg, ppvObj);
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
@ -40,7 +40,7 @@ HRESULT WINAPI OleCreateLinkToFile(LPCOLESTR lpszFileName, REFIID riid,
|
|||
HRESULT WINAPI OleDuplicateData(HANDLE hSrc, CLIPFORMAT cfFormat,
|
||||
UINT uiFlags)
|
||||
{
|
||||
FIXME(ole,"(%x,%x,%x), stub!\n", hSrc, cfFormat, uiFlags);
|
||||
FIXME("(%x,%x,%x), stub!\n", hSrc, cfFormat, uiFlags);
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
@ -51,7 +51,7 @@ HRESULT WINAPI OleDuplicateData(HANDLE hSrc, CLIPFORMAT cfFormat,
|
|||
HRESULT WINAPI WriteFmtUserTypeStg(
|
||||
LPSTORAGE pstg, CLIPFORMAT cf, LPOLESTR lpszUserType)
|
||||
{
|
||||
FIXME(ole,"(%p,%x,%p) stub!\n",pstg,cf,lpszUserType);
|
||||
FIXME("(%p,%x,%p) stub!\n",pstg,cf,lpszUserType);
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
@ -61,7 +61,7 @@ HRESULT WINAPI WriteFmtUserTypeStg(
|
|||
HRESULT WINAPI OleTranslateAccelerator (LPOLEINPLACEFRAME lpFrame,
|
||||
LPOLEINPLACEFRAMEINFO lpFrameInfo, LPMSG lpmsg)
|
||||
{
|
||||
FIXME(ole,"(%p,%p,%p),stub!\n", lpFrame, lpFrameInfo, lpmsg);
|
||||
FIXME("(%p,%p,%p),stub!\n", lpFrame, lpFrameInfo, lpmsg);
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
@ -70,7 +70,7 @@ HRESULT WINAPI OleTranslateAccelerator (LPOLEINPLACEFRAME lpFrame,
|
|||
*/
|
||||
HRESULT WINAPI CoTreatAsClass(REFCLSID clsidOld, REFCLSID clsidNew)
|
||||
{
|
||||
FIXME(ole,"(%p,%p), stub!\n", clsidOld, clsidNew);
|
||||
FIXME("(%p,%p), stub!\n", clsidOld, clsidNew);
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
@ -80,7 +80,7 @@ HRESULT WINAPI CoTreatAsClass(REFCLSID clsidOld, REFCLSID clsidNew)
|
|||
*/
|
||||
BOOL WINAPI IsAccelerator(HACCEL hAccel, int cAccelEntries, LPMSG lpMsg, WORD* lpwCmd)
|
||||
{
|
||||
FIXME(ole,"(%x,%i,%p,%p), stub!\n", hAccel, cAccelEntries, lpMsg, lpwCmd);
|
||||
FIXME("(%x,%i,%p,%p), stub!\n", hAccel, cAccelEntries, lpMsg, lpwCmd);
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
@ -89,7 +89,7 @@ BOOL WINAPI IsAccelerator(HACCEL hAccel, int cAccelEntries, LPMSG lpMsg, WORD* l
|
|||
*/
|
||||
HRESULT WINAPI SetConvertStg(LPSTORAGE pStg, BOOL fConvert)
|
||||
{
|
||||
FIXME(ole,"(%p,%x), stub!\n", pStg, fConvert);
|
||||
FIXME("(%p,%x), stub!\n", pStg, fConvert);
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
@ -98,7 +98,7 @@ HRESULT WINAPI SetConvertStg(LPSTORAGE pStg, BOOL fConvert)
|
|||
*/
|
||||
HRESULT WINAPI OleFlushClipboard()
|
||||
{
|
||||
FIXME(ole,"(), stub!\n");
|
||||
FIXME("(), stub!\n");
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
@ -108,7 +108,7 @@ HRESULT WINAPI OleFlushClipboard()
|
|||
HRESULT WINAPI OleCreate(REFCLSID rclsid, REFIID riid, DWORD renderopt, LPFORMATETC pFormatEtc, LPOLECLIENTSITE pClientSite,
|
||||
LPSTORAGE pStg, LPVOID* ppvObj)
|
||||
{
|
||||
FIXME(ole,"(not shown), stub!\n");
|
||||
FIXME("(not shown), stub!\n");
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
@ -118,7 +118,7 @@ HRESULT WINAPI OleCreate(REFCLSID rclsid, REFIID riid, DWORD renderopt, LPFORMAT
|
|||
HRESULT WINAPI OleCreateLink(LPMONIKER pmkLinkSrc, REFIID riid, DWORD renderopt, LPFORMATETC lpFormatEtc,
|
||||
LPOLECLIENTSITE pClientSite, LPSTORAGE pStg, LPVOID* ppvObj)
|
||||
{
|
||||
FIXME(ole,"(not shown), stub!\n");
|
||||
FIXME("(not shown), stub!\n");
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
@ -128,7 +128,7 @@ HRESULT WINAPI OleCreateLink(LPMONIKER pmkLinkSrc, REFIID riid, DWORD renderopt,
|
|||
HRESULT WINAPI OleCreateFromFile(REFCLSID rclsid, LPCOLESTR lpszFileName, REFIID riid,
|
||||
DWORD renderopt, LPFORMATETC lpFormatEtc, LPOLECLIENTSITE pClientSite, LPSTORAGE pStg, LPVOID* ppvObj)
|
||||
{
|
||||
FIXME(ole,"(not shown), stub!\n");
|
||||
FIXME("(not shown), stub!\n");
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
@ -137,7 +137,7 @@ HRESULT WINAPI OleCreateFromFile(REFCLSID rclsid, LPCOLESTR lpszFileName, REFIID
|
|||
*/
|
||||
HRESULT WINAPI OleLockRunning(LPUNKNOWN pUnknown, BOOL fLock, BOOL fLastUnlockCloses)
|
||||
{
|
||||
FIXME(ole,"(%p,%x,%x), stub!\n", pUnknown, fLock, fLastUnlockCloses);
|
||||
FIXME("(%p,%x,%x), stub!\n", pUnknown, fLock, fLastUnlockCloses);
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
@ -146,7 +146,7 @@ HRESULT WINAPI OleLockRunning(LPUNKNOWN pUnknown, BOOL fLock, BOOL fLastUnlockCl
|
|||
*/
|
||||
HGLOBAL WINAPI OleGetIconOfClass(REFCLSID rclsid, LPOLESTR lpszLabel, BOOL fUseTypeAsLabel)
|
||||
{
|
||||
FIXME(ole,"(%p,%p,%x), stub!\n", rclsid, lpszLabel, fUseTypeAsLabel);
|
||||
FIXME("(%p,%p,%x), stub!\n", rclsid, lpszLabel, fUseTypeAsLabel);
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
@ -155,7 +155,7 @@ HGLOBAL WINAPI OleGetIconOfClass(REFCLSID rclsid, LPOLESTR lpszLabel, BOOL fUseT
|
|||
*/
|
||||
HRESULT WINAPI OleQueryCreateFromData(LPDATAOBJECT pSrcDataObject)
|
||||
{
|
||||
FIXME(ole,"(%p), stub!\n", pSrcDataObject);
|
||||
FIXME("(%p), stub!\n", pSrcDataObject);
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
@ -164,7 +164,7 @@ HRESULT WINAPI OleQueryCreateFromData(LPDATAOBJECT pSrcDataObject)
|
|||
*/
|
||||
HRESULT WINAPI ReadFmtUserTypeStg (LPSTORAGE pstg, CLIPFORMAT* pcf, LPOLESTR* lplpszUserType)
|
||||
{
|
||||
FIXME(ole,"(%p,%p,%p), stub!\n", pstg, pcf, lplpszUserType);
|
||||
FIXME("(%p,%p,%p), stub!\n", pstg, pcf, lplpszUserType);
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
@ -175,7 +175,7 @@ HRESULT WINAPI OleCreateStaticFromData(LPDATAOBJECT pSrcDataObj, REFIID iid,
|
|||
DWORD renderopt, LPFORMATETC pFormatEtc, LPOLECLIENTSITE pClientSite,
|
||||
LPSTORAGE pStg, LPVOID* ppvObj)
|
||||
{
|
||||
FIXME(ole,"(not shown), stub!\n");
|
||||
FIXME("(not shown), stub!\n");
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
@ -184,7 +184,7 @@ HRESULT WINAPI OleCreateStaticFromData(LPDATAOBJECT pSrcDataObj, REFIID iid,
|
|||
*/
|
||||
HRESULT WINAPI OleRun(LPUNKNOWN pUnknown)
|
||||
{
|
||||
FIXME(ole,"(%p), stub!\n", pUnknown);
|
||||
FIXME("(%p), stub!\n", pUnknown);
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
@ -197,7 +197,7 @@ HRESULT WINAPI OleCreateLinkFromData(LPDATAOBJECT pSrcDataObj, REFIID riid,
|
|||
LPOLECLIENTSITE pClientSite, LPSTORAGE pStg,
|
||||
LPVOID* ppvObj)
|
||||
{
|
||||
FIXME(ole,"(not shown), stub!\n");
|
||||
FIXME("(not shown), stub!\n");
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
@ -206,7 +206,7 @@ HRESULT WINAPI OleCreateLinkFromData(LPDATAOBJECT pSrcDataObj, REFIID riid,
|
|||
*/
|
||||
BOOL WINAPI OleIsRunning(LPOLEOBJECT pObject)
|
||||
{
|
||||
FIXME(ole,"(%p), stub!\n", pObject);
|
||||
FIXME("(%p), stub!\n", pObject);
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
@ -215,7 +215,7 @@ BOOL WINAPI OleIsRunning(LPOLEOBJECT pObject)
|
|||
*/
|
||||
HRESULT WINAPI OleRegEnumVerbs (REFCLSID clsid, LPENUMOLEVERB* ppenum)
|
||||
{
|
||||
FIXME(ole,"(%p,%p), stub!\n", clsid, ppenum);
|
||||
FIXME("(%p,%p), stub!\n", clsid, ppenum);
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
@ -227,7 +227,7 @@ HRESULT WINAPI OleRegEnumFormatEtc (
|
|||
DWORD dwDirection,
|
||||
LPENUMFORMATETC* ppenumFormatetc)
|
||||
{
|
||||
FIXME(ole,"(%p, %ld, %p), stub!\n", clsid, dwDirection, ppenumFormatetc);
|
||||
FIXME("(%p, %ld, %p), stub!\n", clsid, dwDirection, ppenumFormatetc);
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
|
48
ole/olecli.c
48
ole/olecli.c
|
@ -11,7 +11,7 @@
|
|||
#include "ole.h"
|
||||
#include "gdi.h"
|
||||
#include "objidl.h"
|
||||
#include "debug.h"
|
||||
#include "debugtools.h"
|
||||
|
||||
DEFAULT_DEBUG_CHANNEL(ole)
|
||||
|
||||
|
@ -24,7 +24,7 @@ extern LONG OLE_current_handle;
|
|||
OLESTATUS WINAPI OleRegisterClientDoc16(LPCSTR classname, LPCSTR docname,
|
||||
LONG reserved, LHCLIENTDOC *hRet )
|
||||
{
|
||||
FIXME(ole,"(%s,%s,...): stub\n",classname,docname);
|
||||
FIXME("(%s,%s,...): stub\n",classname,docname);
|
||||
*hRet=++OLE_current_handle;
|
||||
return OLE_OK;
|
||||
}
|
||||
|
@ -35,7 +35,7 @@ OLESTATUS WINAPI OleRegisterClientDoc16(LPCSTR classname, LPCSTR docname,
|
|||
OLESTATUS WINAPI OleRegisterClientDoc(LPCSTR classname, LPCSTR docname,
|
||||
LONG reserved, LHCLIENTDOC *hRet )
|
||||
{
|
||||
FIXME(ole,"(%s,%s,...): stub\n",classname,docname);
|
||||
FIXME("(%s,%s,...): stub\n",classname,docname);
|
||||
*hRet=++OLE_current_handle;
|
||||
return OLE_OK;
|
||||
}
|
||||
|
@ -45,7 +45,7 @@ OLESTATUS WINAPI OleRegisterClientDoc(LPCSTR classname, LPCSTR docname,
|
|||
*/
|
||||
OLESTATUS WINAPI OleRenameClientDoc16(LHCLIENTDOC hDoc, LPCSTR newName)
|
||||
{
|
||||
FIXME(ole,"(%ld,%s,...): stub\n",hDoc, newName);
|
||||
FIXME("(%ld,%s,...): stub\n",hDoc, newName);
|
||||
return OLE_OK;
|
||||
}
|
||||
|
||||
|
@ -54,7 +54,7 @@ OLESTATUS WINAPI OleRenameClientDoc16(LHCLIENTDOC hDoc, LPCSTR newName)
|
|||
*/
|
||||
OLESTATUS WINAPI OleRenameClientDoc(LHCLIENTDOC hDoc, LPCSTR newName)
|
||||
{
|
||||
FIXME(ole,"(%ld,%s,...): stub\n",hDoc, newName);
|
||||
FIXME("(%ld,%s,...): stub\n",hDoc, newName);
|
||||
return OLE_OK;
|
||||
}
|
||||
|
||||
|
@ -63,7 +63,7 @@ OLESTATUS WINAPI OleRenameClientDoc(LHCLIENTDOC hDoc, LPCSTR newName)
|
|||
*/
|
||||
OLESTATUS WINAPI OleRevokeClientDoc16(LHCLIENTDOC hServerDoc)
|
||||
{
|
||||
FIXME(ole,"(%ld): stub\n",hServerDoc);
|
||||
FIXME("(%ld): stub\n",hServerDoc);
|
||||
return OLE_OK;
|
||||
}
|
||||
|
||||
|
@ -72,7 +72,7 @@ OLESTATUS WINAPI OleRevokeClientDoc16(LHCLIENTDOC hServerDoc)
|
|||
*/
|
||||
OLESTATUS WINAPI OleRevokeClientDoc(LHCLIENTDOC hServerDoc)
|
||||
{
|
||||
FIXME(ole,"(%ld): stub\n",hServerDoc);
|
||||
FIXME("(%ld): stub\n",hServerDoc);
|
||||
return OLE_OK;
|
||||
}
|
||||
|
||||
|
@ -81,7 +81,7 @@ OLESTATUS WINAPI OleRevokeClientDoc(LHCLIENTDOC hServerDoc)
|
|||
*/
|
||||
OLESTATUS WINAPI OleRevertClientDoc16(LHCLIENTDOC hServerDoc)
|
||||
{
|
||||
FIXME(ole, "(%ld): stub\n", hServerDoc);
|
||||
FIXME("(%ld): stub\n", hServerDoc);
|
||||
return OLE_OK;
|
||||
}
|
||||
|
||||
|
@ -90,7 +90,7 @@ OLESTATUS WINAPI OleRevertClientDoc16(LHCLIENTDOC hServerDoc)
|
|||
*/
|
||||
OLESTATUS WINAPI OleEnumObjects16(LHCLIENTDOC hServerDoc, SEGPTR data)
|
||||
{
|
||||
FIXME(ole, "(%ld, %04x:%04x): stub\n", hServerDoc, HIWORD(data),
|
||||
FIXME("(%ld, %04x:%04x): stub\n", hServerDoc, HIWORD(data),
|
||||
LOWORD(data));
|
||||
return OLE_OK;
|
||||
}
|
||||
|
@ -102,7 +102,7 @@ OLESTATUS WINAPI OleCreateLinkFromClip16(
|
|||
LPCSTR name, LPOLECLIENT olecli, LHCLIENTDOC hclientdoc, LPCSTR xname,
|
||||
LPOLEOBJECT *lpoleob, UINT16 render, UINT16 clipformat
|
||||
) {
|
||||
FIXME(ole, "(%s, %04x:%04x, %ld, %s, %04x:%04x, %d, %d): stub!\n",
|
||||
FIXME("(%s, %04x:%04x, %ld, %s, %04x:%04x, %d, %d): stub!\n",
|
||||
(char *)PTR_SEG_TO_LIN(name), HIWORD(olecli), LOWORD(olecli),
|
||||
hclientdoc, (char *)PTR_SEG_TO_LIN(xname), HIWORD(lpoleob),
|
||||
LOWORD(lpoleob), render, clipformat);
|
||||
|
@ -116,7 +116,7 @@ OLESTATUS WINAPI OleCreateLinkFromClip(
|
|||
LPCSTR name,LPOLECLIENT olecli,LHCLIENTDOC hclientdoc,LPCSTR xname,
|
||||
LPOLEOBJECT *lpoleob,OLEOPT_RENDER render,OLECLIPFORMAT clipformat
|
||||
) {
|
||||
FIXME(ole,"(%s,%p,%08lx,%s,%p,%d,%ld): stub!\n",
|
||||
FIXME("(%s,%p,%08lx,%s,%p,%d,%ld): stub!\n",
|
||||
name,olecli,hclientdoc,xname,lpoleob,render,clipformat);
|
||||
return OLE_OK;
|
||||
}
|
||||
|
@ -125,7 +125,7 @@ OLESTATUS WINAPI OleCreateLinkFromClip(
|
|||
* OleQueryLinkFromClip16 [OLECLI.9]
|
||||
*/
|
||||
OLESTATUS WINAPI OleQueryLinkFromClip16(LPCSTR name, UINT16 render, UINT16 clipformat) {
|
||||
FIXME(ole, "(%s, %d, %d): stub!\n", (char*)(PTR_SEG_TO_LIN(name)),
|
||||
FIXME("(%s, %d, %d): stub!\n", (char*)(PTR_SEG_TO_LIN(name)),
|
||||
render, clipformat);
|
||||
return OLE_OK;
|
||||
}
|
||||
|
@ -134,7 +134,7 @@ OLESTATUS WINAPI OleQueryLinkFromClip16(LPCSTR name, UINT16 render, UINT16 clipf
|
|||
* OleQueryLinkFromClip32 [OLECLI32.9]
|
||||
*/
|
||||
OLESTATUS WINAPI OleQueryLinkFromClip(LPCSTR name,OLEOPT_RENDER render,OLECLIPFORMAT clipformat) {
|
||||
FIXME(ole,"(%s,%d,%ld): stub!\n",name,render,clipformat);
|
||||
FIXME("(%s,%d,%ld): stub!\n",name,render,clipformat);
|
||||
return OLE_OK;
|
||||
}
|
||||
|
||||
|
@ -142,7 +142,7 @@ OLESTATUS WINAPI OleQueryLinkFromClip(LPCSTR name,OLEOPT_RENDER render,OLECLIPFO
|
|||
* OleQueryCreateFromClip16 [OLECLI.10]
|
||||
*/
|
||||
OLESTATUS WINAPI OleQueryCreateFromClip16(LPCSTR name, UINT16 render, UINT16 clipformat) {
|
||||
FIXME(ole, "(%s, %d, %d): stub!\n", (char*)(PTR_SEG_TO_LIN(name)),
|
||||
FIXME("(%s, %d, %d): stub!\n", (char*)(PTR_SEG_TO_LIN(name)),
|
||||
render, clipformat);
|
||||
return OLE_OK;
|
||||
}
|
||||
|
@ -151,7 +151,7 @@ OLESTATUS WINAPI OleQueryCreateFromClip16(LPCSTR name, UINT16 render, UINT16 cli
|
|||
* OleQueryCreateFromClip32 [OLECLI32.10]
|
||||
*/
|
||||
OLESTATUS WINAPI OleQueryCreateFromClip(LPCSTR name,OLEOPT_RENDER render,OLECLIPFORMAT clipformat) {
|
||||
FIXME(ole,"(%s,%d,%ld): stub!\n",name,render,clipformat);
|
||||
FIXME("(%s,%d,%ld): stub!\n",name,render,clipformat);
|
||||
return OLE_OK;
|
||||
}
|
||||
|
||||
|
@ -160,7 +160,7 @@ OLESTATUS WINAPI OleQueryCreateFromClip(LPCSTR name,OLEOPT_RENDER render,OLECLIP
|
|||
*/
|
||||
BOOL16 WINAPI OleIsDcMeta16(HDC16 hdc)
|
||||
{
|
||||
TRACE(ole,"(%04x)\n",hdc);
|
||||
TRACE("(%04x)\n",hdc);
|
||||
if (GDI_GetObjPtr( hdc, METAFILE_DC_MAGIC ) != 0) {
|
||||
GDI_HEAP_UNLOCK( hdc );
|
||||
return TRUE;
|
||||
|
@ -174,7 +174,7 @@ BOOL16 WINAPI OleIsDcMeta16(HDC16 hdc)
|
|||
*/
|
||||
BOOL WINAPI OleIsDcMeta(HDC hdc)
|
||||
{
|
||||
TRACE(ole,"(%04x)\n",hdc);
|
||||
TRACE("(%04x)\n",hdc);
|
||||
if (GDI_GetObjPtr( hdc, METAFILE_DC_MAGIC ) != 0) {
|
||||
GDI_HEAP_UNLOCK( hdc );
|
||||
return TRUE;
|
||||
|
@ -187,7 +187,7 @@ BOOL WINAPI OleIsDcMeta(HDC hdc)
|
|||
* OleSetHostNames32 [OLECLI32.15]
|
||||
*/
|
||||
OLESTATUS WINAPI OleSetHostNames(LPOLEOBJECT oleob,LPCSTR name1,LPCSTR name2) {
|
||||
FIXME(ole,"(%p,%s,%s): stub\n",oleob,name1,name2);
|
||||
FIXME("(%p,%s,%s): stub\n",oleob,name1,name2);
|
||||
return OLE_OK;
|
||||
}
|
||||
|
||||
|
@ -195,7 +195,7 @@ OLESTATUS WINAPI OleSetHostNames(LPOLEOBJECT oleob,LPCSTR name1,LPCSTR name2) {
|
|||
* OleQueryType16 [OLECLI.14]
|
||||
*/
|
||||
OLESTATUS WINAPI OleQueryType16(LPOLEOBJECT oleob, SEGPTR xlong) {
|
||||
FIXME(ole, "(%p, %p): stub!\n",
|
||||
FIXME("(%p, %p): stub!\n",
|
||||
PTR_SEG_TO_LIN(oleob), PTR_SEG_TO_LIN(xlong));
|
||||
return OLE_OK;
|
||||
}
|
||||
|
@ -204,10 +204,10 @@ OLESTATUS WINAPI OleQueryType16(LPOLEOBJECT oleob, SEGPTR xlong) {
|
|||
* OleQueryType32 [OLECLI32.14]
|
||||
*/
|
||||
OLESTATUS WINAPI OleQueryType(LPOLEOBJECT oleob,LONG*xlong) {
|
||||
FIXME(ole,"(%p,%p): stub!\n",oleob,xlong);
|
||||
FIXME("(%p,%p): stub!\n",oleob,xlong);
|
||||
if (!oleob)
|
||||
return 0x10;
|
||||
TRACE(ole,"Calling OLEOBJECT.QueryType (%p) (%p,%p)\n",
|
||||
TRACE("Calling OLEOBJECT.QueryType (%p) (%p,%p)\n",
|
||||
oleob->lpvtbl->QueryType,oleob,xlong);
|
||||
return oleob->lpvtbl->QueryType(oleob,xlong);
|
||||
}
|
||||
|
@ -219,7 +219,7 @@ OLESTATUS WINAPI OleCreateFromClip16(
|
|||
LPCSTR name, LPOLECLIENT olecli, LHCLIENTDOC hclientdoc, LPCSTR xname,
|
||||
LPOLEOBJECT *lpoleob, UINT16 render, UINT16 clipformat
|
||||
) {
|
||||
FIXME(ole, "(%s, %04x:%04x, %ld, %s, %04x:%04x, %d, %d): stub!\n",
|
||||
FIXME("(%s, %04x:%04x, %ld, %s, %04x:%04x, %d, %d): stub!\n",
|
||||
(char *)PTR_SEG_TO_LIN(name), HIWORD(olecli), LOWORD(olecli),
|
||||
hclientdoc, (char *)PTR_SEG_TO_LIN(xname), HIWORD(lpoleob),
|
||||
LOWORD(lpoleob), render, clipformat);
|
||||
|
@ -233,7 +233,7 @@ OLESTATUS WINAPI OleCreateFromClip(
|
|||
LPCSTR name,LPOLECLIENT olecli,LHCLIENTDOC hclientdoc,LPCSTR xname,
|
||||
LPOLEOBJECT *lpoleob,OLEOPT_RENDER render, OLECLIPFORMAT clipformat
|
||||
) {
|
||||
FIXME(ole,"(%s,%p,%08lx,%s,%p,%d,%ld): stub!\n",
|
||||
FIXME("(%s,%p,%08lx,%s,%p,%d,%ld): stub!\n",
|
||||
name,olecli,hclientdoc,xname,lpoleob,render,clipformat);
|
||||
/* clipb type, object kreieren entsprechend etc. */
|
||||
return OLE_OK;
|
||||
|
@ -245,7 +245,7 @@ OLESTATUS WINAPI OleCreateFromClip(
|
|||
HRESULT WINAPI OleIsCurrentClipboard (
|
||||
IDataObject *pDataObject) /* ptr to the data obj previously copied or cut */
|
||||
{
|
||||
FIXME(ole,"(DataObject %p): stub!\n", pDataObject);
|
||||
FIXME("(DataObject %p): stub!\n", pDataObject);
|
||||
return S_FALSE;
|
||||
}
|
||||
|
||||
|
|
48
ole/oledlg.c
48
ole/oledlg.c
|
@ -8,7 +8,7 @@
|
|||
#include "winbase.h"
|
||||
#include "winerror.h"
|
||||
#include "oledlg.h"
|
||||
#include "debug.h"
|
||||
#include "debugtools.h"
|
||||
#include "ole2.h"
|
||||
|
||||
DEFAULT_DEBUG_CHANNEL(ole)
|
||||
|
@ -20,7 +20,7 @@ BOOL WINAPI OleUIAddVerbMenuA(
|
|||
HMENU hMenu, UINT uPos, UINT uIDVerbMin, UINT uIDVerbMax,
|
||||
BOOL bAddConvert, UINT idConvert, HMENU *lphMenu)
|
||||
{
|
||||
FIXME(ole, "(%p, %s, 0x%08x, %d, %d, %d, %d, %d, %p): stub\n",
|
||||
FIXME("(%p, %s, 0x%08x, %d, %d, %d, %d, %d, %p): stub\n",
|
||||
lpOleObj, debugstr_a(lpszShortType),
|
||||
hMenu, uPos, uIDVerbMin, uIDVerbMax,
|
||||
bAddConvert, idConvert, lphMenu
|
||||
|
@ -37,7 +37,7 @@ BOOL WINAPI OleUIAddVerbMenuW(
|
|||
HMENU hMenu, UINT uPos, UINT uIDVerbMin, UINT uIDVerbMax,
|
||||
BOOL bAddConvert, UINT idConvert, HMENU *lphMenu)
|
||||
{
|
||||
FIXME(ole, "(%p, %s, 0x%08x, %d, %d, %d, %d, %d, %p): stub\n",
|
||||
FIXME("(%p, %s, 0x%08x, %d, %d, %d, %d, %d, %p): stub\n",
|
||||
lpOleObj, debugstr_w(lpszShortType),
|
||||
hMenu, uPos, uIDVerbMin, uIDVerbMax,
|
||||
bAddConvert, idConvert, lphMenu
|
||||
|
@ -52,7 +52,7 @@ BOOL WINAPI OleUIAddVerbMenuW(
|
|||
BOOL WINAPI OleUICanConvertOrActivateAs(
|
||||
REFCLSID rClsid, BOOL fIsLinkedObject, WORD wFormat)
|
||||
{
|
||||
FIXME(ole, "(%p, %d, %hd): stub\n",
|
||||
FIXME("(%p, %d, %hd): stub\n",
|
||||
rClsid, fIsLinkedObject, wFormat
|
||||
);
|
||||
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
|
||||
|
@ -64,7 +64,7 @@ BOOL WINAPI OleUICanConvertOrActivateAs(
|
|||
*/
|
||||
UINT WINAPI OleUIInsertObjectA(LPOLEUIINSERTOBJECTA lpOleUIInsertObject)
|
||||
{
|
||||
FIXME(ole, "(%p): stub\n", lpOleUIInsertObject);
|
||||
FIXME("(%p): stub\n", lpOleUIInsertObject);
|
||||
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
|
||||
return OLEUI_FALSE;
|
||||
}
|
||||
|
@ -74,7 +74,7 @@ UINT WINAPI OleUIInsertObjectA(LPOLEUIINSERTOBJECTA lpOleUIInsertObject)
|
|||
*/
|
||||
UINT WINAPI OleUIInsertObjectW(LPOLEUIINSERTOBJECTW lpOleUIInsertObject)
|
||||
{
|
||||
FIXME(ole, "(%p): stub\n", lpOleUIInsertObject);
|
||||
FIXME("(%p): stub\n", lpOleUIInsertObject);
|
||||
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
|
||||
return OLEUI_FALSE;
|
||||
}
|
||||
|
@ -84,7 +84,7 @@ UINT WINAPI OleUIInsertObjectW(LPOLEUIINSERTOBJECTW lpOleUIInsertObject)
|
|||
*/
|
||||
UINT WINAPI OleUIPasteSpecialA(LPOLEUIPASTESPECIALA lpOleUIPasteSpecial)
|
||||
{
|
||||
FIXME(ole, "(%p): stub\n", lpOleUIPasteSpecial);
|
||||
FIXME("(%p): stub\n", lpOleUIPasteSpecial);
|
||||
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
|
||||
return OLEUI_FALSE;
|
||||
}
|
||||
|
@ -94,7 +94,7 @@ UINT WINAPI OleUIPasteSpecialA(LPOLEUIPASTESPECIALA lpOleUIPasteSpecial)
|
|||
*/
|
||||
UINT WINAPI OleUIPasteSpecialW(LPOLEUIPASTESPECIALW lpOleUIPasteSpecial)
|
||||
{
|
||||
FIXME(ole, "(%p): stub\n", lpOleUIPasteSpecial);
|
||||
FIXME("(%p): stub\n", lpOleUIPasteSpecial);
|
||||
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
|
||||
return OLEUI_FALSE;
|
||||
}
|
||||
|
@ -104,7 +104,7 @@ UINT WINAPI OleUIPasteSpecialW(LPOLEUIPASTESPECIALW lpOleUIPasteSpecial)
|
|||
*/
|
||||
UINT WINAPI OleUIEditLinksA(LPOLEUIEDITLINKSA lpOleUIEditLinks)
|
||||
{
|
||||
FIXME(ole, "(%p): stub\n", lpOleUIEditLinks);
|
||||
FIXME("(%p): stub\n", lpOleUIEditLinks);
|
||||
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
|
||||
return OLEUI_FALSE;
|
||||
}
|
||||
|
@ -114,7 +114,7 @@ UINT WINAPI OleUIEditLinksA(LPOLEUIEDITLINKSA lpOleUIEditLinks)
|
|||
*/
|
||||
UINT WINAPI OleUIEditLinksW(LPOLEUIEDITLINKSW lpOleUIEditLinks)
|
||||
{
|
||||
FIXME(ole, "(%p): stub\n", lpOleUIEditLinks);
|
||||
FIXME("(%p): stub\n", lpOleUIEditLinks);
|
||||
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
|
||||
return OLEUI_FALSE;
|
||||
}
|
||||
|
@ -125,7 +125,7 @@ UINT WINAPI OleUIEditLinksW(LPOLEUIEDITLINKSW lpOleUIEditLinks)
|
|||
UINT WINAPI OleUIChangeIconA(
|
||||
LPOLEUICHANGEICONA lpOleUIChangeIcon)
|
||||
{
|
||||
FIXME(ole, "(%p): stub\n", lpOleUIChangeIcon);
|
||||
FIXME("(%p): stub\n", lpOleUIChangeIcon);
|
||||
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
|
||||
return OLEUI_FALSE;
|
||||
}
|
||||
|
@ -136,7 +136,7 @@ UINT WINAPI OleUIChangeIconA(
|
|||
UINT WINAPI OleUIChangeIconW(
|
||||
LPOLEUICHANGEICONW lpOleUIChangeIcon)
|
||||
{
|
||||
FIXME(ole, "(%p): stub\n", lpOleUIChangeIcon);
|
||||
FIXME("(%p): stub\n", lpOleUIChangeIcon);
|
||||
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
|
||||
return OLEUI_FALSE;
|
||||
}
|
||||
|
@ -146,7 +146,7 @@ UINT WINAPI OleUIChangeIconW(
|
|||
*/
|
||||
UINT WINAPI OleUIConvertA(LPOLEUICONVERTA lpOleUIConvert)
|
||||
{
|
||||
FIXME(ole, "(%p): stub\n", lpOleUIConvert);
|
||||
FIXME("(%p): stub\n", lpOleUIConvert);
|
||||
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
|
||||
return OLEUI_FALSE;
|
||||
}
|
||||
|
@ -156,7 +156,7 @@ UINT WINAPI OleUIConvertA(LPOLEUICONVERTA lpOleUIConvert)
|
|||
*/
|
||||
UINT WINAPI OleUIConvertW(LPOLEUICONVERTW lpOleUIConvert)
|
||||
{
|
||||
FIXME(ole, "(%p): stub\n", lpOleUIConvert);
|
||||
FIXME("(%p): stub\n", lpOleUIConvert);
|
||||
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
|
||||
return OLEUI_FALSE;
|
||||
}
|
||||
|
@ -166,7 +166,7 @@ UINT WINAPI OleUIConvertW(LPOLEUICONVERTW lpOleUIConvert)
|
|||
*/
|
||||
UINT WINAPI OleUIBusyA(LPOLEUIBUSYA lpOleUIBusy)
|
||||
{
|
||||
FIXME(ole, "(%p): stub\n", lpOleUIBusy);
|
||||
FIXME("(%p): stub\n", lpOleUIBusy);
|
||||
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
|
||||
return OLEUI_FALSE;
|
||||
}
|
||||
|
@ -176,7 +176,7 @@ UINT WINAPI OleUIBusyA(LPOLEUIBUSYA lpOleUIBusy)
|
|||
*/
|
||||
UINT WINAPI OleUIBusyW(LPOLEUIBUSYW lpOleUIBusy)
|
||||
{
|
||||
FIXME(ole, "(%p): stub\n", lpOleUIBusy);
|
||||
FIXME("(%p): stub\n", lpOleUIBusy);
|
||||
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
|
||||
return OLEUI_FALSE;
|
||||
}
|
||||
|
@ -188,7 +188,7 @@ BOOL WINAPI OleUIUpdateLinksA(
|
|||
LPOLEUILINKCONTAINERA lpOleUILinkCntr,
|
||||
HWND hwndParent, LPSTR lpszTitle, INT cLinks)
|
||||
{
|
||||
FIXME(ole,"(%p, 0x%08x, %s, %d): stub\n",
|
||||
FIXME("(%p, 0x%08x, %s, %d): stub\n",
|
||||
lpOleUILinkCntr, hwndParent, debugstr_a(lpszTitle), cLinks
|
||||
);
|
||||
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
|
||||
|
@ -205,7 +205,7 @@ BOOL WINAPI OleUIUpdateLinksW(
|
|||
LPOLEUILINKCONTAINERW lpOleUILinkCntr,
|
||||
HWND hwndParent, LPWSTR lpszTitle, INT cLinks)
|
||||
{
|
||||
FIXME(ole, "(%p, 0x%08x, %s, %d): stub\n",
|
||||
FIXME("(%p, 0x%08x, %s, %d): stub\n",
|
||||
lpOleUILinkCntr, hwndParent, debugstr_w(lpszTitle), cLinks
|
||||
);
|
||||
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
|
||||
|
@ -218,7 +218,7 @@ BOOL WINAPI OleUIUpdateLinksW(
|
|||
INT __cdecl OleUIPromptUserA(
|
||||
INT nTemplate, HWND hwndParent, ...)
|
||||
{
|
||||
FIXME(ole, "(%d, 0x%08x, ...): stub\n", nTemplate, hwndParent);
|
||||
FIXME("(%d, 0x%08x, ...): stub\n", nTemplate, hwndParent);
|
||||
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
|
||||
return OLEUI_FALSE;
|
||||
}
|
||||
|
@ -229,7 +229,7 @@ INT __cdecl OleUIPromptUserA(
|
|||
INT __cdecl OleUIPromptUserW(
|
||||
INT nTemplate, HWND hwndParent, ...)
|
||||
{
|
||||
FIXME(ole, "(%d, 0x%08x, ...): stub\n", nTemplate, hwndParent);
|
||||
FIXME("(%d, 0x%08x, ...): stub\n", nTemplate, hwndParent);
|
||||
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
|
||||
return OLEUI_FALSE;
|
||||
}
|
||||
|
@ -240,7 +240,7 @@ INT __cdecl OleUIPromptUserW(
|
|||
UINT WINAPI OleUIObjectPropertiesA(
|
||||
LPOLEUIOBJECTPROPSA lpOleUIObjectProps)
|
||||
{
|
||||
FIXME(ole, "(%p): stub\n", lpOleUIObjectProps);
|
||||
FIXME("(%p): stub\n", lpOleUIObjectProps);
|
||||
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
|
||||
return OLEUI_FALSE;
|
||||
}
|
||||
|
@ -251,7 +251,7 @@ UINT WINAPI OleUIObjectPropertiesA(
|
|||
UINT WINAPI OleUIObjectPropertiesW(
|
||||
LPOLEUIOBJECTPROPSW lpOleUIObjectProps)
|
||||
{
|
||||
FIXME(ole, "(%p): stub\n", lpOleUIObjectProps);
|
||||
FIXME("(%p): stub\n", lpOleUIObjectProps);
|
||||
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
|
||||
return OLEUI_FALSE;
|
||||
}
|
||||
|
@ -262,7 +262,7 @@ UINT WINAPI OleUIObjectPropertiesW(
|
|||
UINT WINAPI OleUIChangeSourceA(
|
||||
LPOLEUICHANGESOURCEA lpOleUIChangeSource)
|
||||
{
|
||||
FIXME(ole, "(%p): stub\n", lpOleUIChangeSource);
|
||||
FIXME("(%p): stub\n", lpOleUIChangeSource);
|
||||
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
|
||||
return OLEUI_FALSE;
|
||||
}
|
||||
|
@ -273,7 +273,7 @@ UINT WINAPI OleUIChangeSourceA(
|
|||
UINT WINAPI OleUIChangeSourceW(
|
||||
LPOLEUICHANGESOURCEW lpOleUIChangeSource)
|
||||
{
|
||||
FIXME(ole, "(%p): stub\n", lpOleUIChangeSource);
|
||||
FIXME("(%p): stub\n", lpOleUIChangeSource);
|
||||
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
|
||||
return OLEUI_FALSE;
|
||||
}
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
#include "oleauto.h"
|
||||
#include "ocidl.h"
|
||||
#include "olectl.h"
|
||||
#include "debug.h"
|
||||
#include "debugtools.h"
|
||||
#include "heap.h"
|
||||
|
||||
DEFAULT_DEBUG_CHANNEL(ole)
|
||||
|
@ -405,7 +405,7 @@ HRESULT WINAPI OLEFontImpl_QueryInterface(
|
|||
|
||||
WINE_StringFromCLSID((LPCLSID)riid,clsid);
|
||||
|
||||
WARN(ole,
|
||||
WARN(
|
||||
"() : asking for un supported interface %s\n",
|
||||
clsid);
|
||||
|
||||
|
@ -571,7 +571,7 @@ static HRESULT WINAPI OLEFontImpl_get_Bold(
|
|||
IFont* iface,
|
||||
BOOL* pbold)
|
||||
{
|
||||
FIXME(ole,"():Stub\n");
|
||||
FIXME("():Stub\n");
|
||||
return E_NOTIMPL;
|
||||
}
|
||||
|
||||
|
@ -584,7 +584,7 @@ static HRESULT WINAPI OLEFontImpl_put_Bold(
|
|||
IFont* iface,
|
||||
BOOL bold)
|
||||
{
|
||||
FIXME(ole,"():Stub\n");
|
||||
FIXME("():Stub\n");
|
||||
return E_NOTIMPL;
|
||||
}
|
||||
|
||||
|
@ -882,7 +882,7 @@ static HRESULT WINAPI OLEFontImpl_IsEqual(
|
|||
IFont* iface,
|
||||
IFont* pFontOther)
|
||||
{
|
||||
FIXME(ole,"():Stub\n");
|
||||
FIXME("():Stub\n");
|
||||
return E_NOTIMPL;
|
||||
}
|
||||
|
||||
|
@ -913,7 +913,7 @@ static HRESULT WINAPI OLEFontImpl_QueryTextMetrics(
|
|||
IFont* iface,
|
||||
TEXTMETRICOLE* ptm)
|
||||
{
|
||||
FIXME(ole,"():Stub\n");
|
||||
FIXME("():Stub\n");
|
||||
return E_NOTIMPL;
|
||||
}
|
||||
|
||||
|
@ -975,7 +975,7 @@ static HRESULT WINAPI OLEFontImpl_SetHdc(
|
|||
IFont* iface,
|
||||
HDC hdc)
|
||||
{
|
||||
FIXME(ole,"():Stub\n");
|
||||
FIXME("():Stub\n");
|
||||
return E_NOTIMPL;
|
||||
}
|
||||
|
||||
|
@ -1029,7 +1029,7 @@ static HRESULT WINAPI OLEFontImpl_GetTypeInfoCount(
|
|||
IDispatch* iface,
|
||||
unsigned int* pctinfo)
|
||||
{
|
||||
FIXME(ole,"():Stub\n");
|
||||
FIXME("():Stub\n");
|
||||
|
||||
return E_NOTIMPL;
|
||||
}
|
||||
|
@ -1045,7 +1045,7 @@ static HRESULT WINAPI OLEFontImpl_GetTypeInfo(
|
|||
LCID lcid,
|
||||
ITypeInfo** ppTInfo)
|
||||
{
|
||||
FIXME(ole,"():Stub\n");
|
||||
FIXME("():Stub\n");
|
||||
|
||||
return E_NOTIMPL;
|
||||
}
|
||||
|
@ -1063,7 +1063,7 @@ static HRESULT WINAPI OLEFontImpl_GetIDsOfNames(
|
|||
LCID lcid,
|
||||
DISPID* rgDispId)
|
||||
{
|
||||
FIXME(ole,"():Stub\n");
|
||||
FIXME("():Stub\n");
|
||||
|
||||
return E_NOTIMPL;
|
||||
}
|
||||
|
@ -1084,7 +1084,7 @@ static HRESULT WINAPI OLEFontImpl_Invoke(
|
|||
EXCEPINFO* pExepInfo,
|
||||
UINT* puArgErr)
|
||||
{
|
||||
FIXME(ole,"():Stub\n");
|
||||
FIXME("():Stub\n");
|
||||
|
||||
return E_NOTIMPL;
|
||||
}
|
||||
|
|
26
ole/oleobj.c
26
ole/oleobj.c
|
@ -10,7 +10,7 @@
|
|||
#include "winbase.h"
|
||||
#include "winerror.h"
|
||||
#include "oleidl.h"
|
||||
#include "debug.h"
|
||||
#include "debugtools.h"
|
||||
|
||||
DEFAULT_DEBUG_CHANNEL(ole)
|
||||
|
||||
|
@ -194,7 +194,7 @@ static HRESULT WINAPI OleAdviseHolderImpl_Advise(
|
|||
|
||||
ICOM_THIS(OleAdviseHolderImpl, iface);
|
||||
|
||||
TRACE(ole, "(%p, %p, %p)\n", This, pAdvise, pdwConnection);
|
||||
TRACE("(%p, %p, %p)\n", This, pAdvise, pdwConnection);
|
||||
|
||||
/*
|
||||
* Sanity check
|
||||
|
@ -258,7 +258,7 @@ static HRESULT WINAPI OleAdviseHolderImpl_Unadvise(
|
|||
{
|
||||
ICOM_THIS(OleAdviseHolderImpl, iface);
|
||||
|
||||
TRACE(ole, "(%p, %lu)\n", This, dwConnection);
|
||||
TRACE("(%p, %lu)\n", This, dwConnection);
|
||||
|
||||
/*
|
||||
* So we don't return 0 as a cookie, the index was
|
||||
|
@ -293,7 +293,7 @@ static HRESULT WINAPI
|
|||
OleAdviseHolderImpl_EnumAdvise (LPOLEADVISEHOLDER iface, IEnumSTATDATA **ppenumAdvise)
|
||||
{
|
||||
ICOM_THIS(OleAdviseHolderImpl, iface);
|
||||
FIXME (ole, "(%p)->(%p)\n", This, ppenumAdvise);
|
||||
FIXME("(%p)->(%p)\n", This, ppenumAdvise);
|
||||
|
||||
*ppenumAdvise = NULL;
|
||||
|
||||
|
@ -307,7 +307,7 @@ static HRESULT WINAPI
|
|||
OleAdviseHolderImpl_SendOnRename (LPOLEADVISEHOLDER iface, IMoniker *pmk)
|
||||
{
|
||||
ICOM_THIS(OleAdviseHolderImpl, iface);
|
||||
FIXME (ole, "(%p)->(%p)\n", This, pmk);
|
||||
FIXME("(%p)->(%p)\n", This, pmk);
|
||||
|
||||
|
||||
return S_OK;
|
||||
|
@ -320,7 +320,7 @@ static HRESULT WINAPI
|
|||
OleAdviseHolderImpl_SendOnSave (LPOLEADVISEHOLDER iface)
|
||||
{
|
||||
ICOM_THIS(OleAdviseHolderImpl, iface);
|
||||
FIXME (ole, "(%p)\n", This);
|
||||
FIXME("(%p)\n", This);
|
||||
|
||||
|
||||
return S_OK;
|
||||
|
@ -333,7 +333,7 @@ static HRESULT WINAPI
|
|||
OleAdviseHolderImpl_SendOnClose (LPOLEADVISEHOLDER iface)
|
||||
{
|
||||
ICOM_THIS(OleAdviseHolderImpl, iface);
|
||||
FIXME (ole, "(%p)\n", This);
|
||||
FIXME("(%p)\n", This);
|
||||
|
||||
|
||||
return S_OK;
|
||||
|
@ -524,7 +524,7 @@ static HRESULT WINAPI DataAdviseHolder_Advise(
|
|||
IAdviseSink* pAdvise,
|
||||
DWORD* pdwConnection)
|
||||
{
|
||||
FIXME(ole, "(): stub\n");
|
||||
FIXME("(): stub\n");
|
||||
return E_NOTIMPL;
|
||||
}
|
||||
|
||||
|
@ -532,7 +532,7 @@ static HRESULT WINAPI DataAdviseHolder_Unadvise(
|
|||
IDataAdviseHolder* iface,
|
||||
DWORD dwConnection)
|
||||
{
|
||||
FIXME(ole, "(): stub\n");
|
||||
FIXME("(): stub\n");
|
||||
return E_NOTIMPL;
|
||||
}
|
||||
|
||||
|
@ -540,7 +540,7 @@ static HRESULT WINAPI DataAdviseHolder_EnumAdvise(
|
|||
IDataAdviseHolder* iface,
|
||||
IEnumSTATDATA** ppenumAdvise)
|
||||
{
|
||||
FIXME(ole, "(): stub\n");
|
||||
FIXME("(): stub\n");
|
||||
return E_NOTIMPL;
|
||||
}
|
||||
|
||||
|
@ -550,7 +550,7 @@ static HRESULT WINAPI DataAdviseHolder_SendOnDataChange(
|
|||
DWORD dwReserved,
|
||||
DWORD advf)
|
||||
{
|
||||
FIXME(ole, "(): stub\n");
|
||||
FIXME("(): stub\n");
|
||||
return E_NOTIMPL;
|
||||
}
|
||||
|
||||
|
@ -564,7 +564,7 @@ static HRESULT WINAPI DataAdviseHolder_SendOnDataChange(
|
|||
HRESULT WINAPI CreateOleAdviseHolder(
|
||||
LPOLEADVISEHOLDER *ppOAHolder)
|
||||
{
|
||||
TRACE(ole, "(%p)\n", ppOAHolder);
|
||||
TRACE("(%p)\n", ppOAHolder);
|
||||
|
||||
/*
|
||||
* Sanity check,
|
||||
|
@ -586,7 +586,7 @@ HRESULT WINAPI CreateOleAdviseHolder(
|
|||
HRESULT WINAPI CreateDataAdviseHolder(
|
||||
LPDATAADVISEHOLDER* ppDAHolder)
|
||||
{
|
||||
TRACE(ole,"(%p)\n", ppDAHolder);
|
||||
TRACE("(%p)\n", ppDAHolder);
|
||||
|
||||
/*
|
||||
* Sanity check,
|
||||
|
|
26
ole/olesvr.c
26
ole/olesvr.c
|
@ -8,7 +8,7 @@
|
|||
*/
|
||||
|
||||
#include "ole.h"
|
||||
#include "debug.h"
|
||||
#include "debugtools.h"
|
||||
|
||||
DEFAULT_DEBUG_CHANNEL(ole)
|
||||
|
||||
|
@ -21,7 +21,7 @@ OLESTATUS WINAPI OleRegisterServer16( LPCSTR name, LPOLESERVER serverStruct,
|
|||
LHSERVER *hRet, HINSTANCE16 hServer,
|
||||
OLE_SERVER_USE use )
|
||||
{
|
||||
FIXME(ole,"(%s,...): stub\n",name);
|
||||
FIXME("(%s,...): stub\n",name);
|
||||
*hRet=++OLE_current_handle;
|
||||
/* return OLE_ERROR_MEMORY, OLE_ERROR_PROTECT_ONLY if you want it fail*/
|
||||
return OLE_OK;
|
||||
|
@ -32,7 +32,7 @@ OLESTATUS WINAPI OleRegisterServer16( LPCSTR name, LPOLESERVER serverStruct,
|
|||
*/
|
||||
OLESTATUS WINAPI OleBlockServer16(LHSERVER hServer)
|
||||
{
|
||||
FIXME(ole,"(%ld): stub\n",hServer);
|
||||
FIXME("(%ld): stub\n",hServer);
|
||||
return OLE_OK;
|
||||
}
|
||||
|
||||
|
@ -41,7 +41,7 @@ OLESTATUS WINAPI OleBlockServer16(LHSERVER hServer)
|
|||
*/
|
||||
OLESTATUS WINAPI OleBlockServer(LHSERVER hServer)
|
||||
{
|
||||
FIXME(ole,"(%ld): stub\n",hServer);
|
||||
FIXME("(%ld): stub\n",hServer);
|
||||
return OLE_OK;
|
||||
}
|
||||
|
||||
|
@ -50,7 +50,7 @@ OLESTATUS WINAPI OleBlockServer(LHSERVER hServer)
|
|||
*/
|
||||
OLESTATUS WINAPI OleUnblockServer16(LHSERVER hServer, BOOL16 *block)
|
||||
{
|
||||
FIXME(ole,"(%ld): stub\n",hServer);
|
||||
FIXME("(%ld): stub\n",hServer);
|
||||
/* no more blocked messages :) */
|
||||
*block=FALSE;
|
||||
return OLE_OK;
|
||||
|
@ -61,7 +61,7 @@ OLESTATUS WINAPI OleUnblockServer16(LHSERVER hServer, BOOL16 *block)
|
|||
*/
|
||||
OLESTATUS WINAPI OleUnblockServer(LHSERVER hServer, BOOL *block)
|
||||
{
|
||||
FIXME(ole,"(%ld): stub\n",hServer);
|
||||
FIXME("(%ld): stub\n",hServer);
|
||||
/* no more blocked messages :) */
|
||||
*block=FALSE;
|
||||
return OLE_OK;
|
||||
|
@ -74,7 +74,7 @@ OLESTATUS WINAPI OleRegisterServerDoc16( LHSERVER hServer, LPCSTR docname,
|
|||
LPOLESERVERDOC document,
|
||||
LHSERVERDOC *hRet)
|
||||
{
|
||||
FIXME(ole,"(%ld,%s): stub\n",hServer, docname);
|
||||
FIXME("(%ld,%s): stub\n",hServer, docname);
|
||||
*hRet=++OLE_current_handle;
|
||||
return OLE_OK;
|
||||
}
|
||||
|
@ -84,7 +84,7 @@ OLESTATUS WINAPI OleRegisterServerDoc16( LHSERVER hServer, LPCSTR docname,
|
|||
*/
|
||||
OLESTATUS WINAPI OleRevokeServerDoc16(LHSERVERDOC hServerDoc)
|
||||
{
|
||||
FIXME(ole,"%ld - stub\n",hServerDoc);
|
||||
FIXME("%ld - stub\n",hServerDoc);
|
||||
return OLE_OK;
|
||||
}
|
||||
|
||||
|
@ -93,7 +93,7 @@ OLESTATUS WINAPI OleRevokeServerDoc16(LHSERVERDOC hServerDoc)
|
|||
*/
|
||||
OLESTATUS WINAPI OleRevokeServerDoc(LHSERVERDOC hServerDoc)
|
||||
{
|
||||
FIXME(ole,"(%ld): stub\n",hServerDoc);
|
||||
FIXME("(%ld): stub\n",hServerDoc);
|
||||
return OLE_OK;
|
||||
}
|
||||
|
||||
|
@ -102,7 +102,7 @@ OLESTATUS WINAPI OleRevokeServerDoc(LHSERVERDOC hServerDoc)
|
|||
*/
|
||||
OLESTATUS WINAPI OleRevokeServer16(LHSERVER hServer)
|
||||
{
|
||||
FIXME(ole,"%ld - stub\n",hServer);
|
||||
FIXME("%ld - stub\n",hServer);
|
||||
return OLE_OK;
|
||||
}
|
||||
|
||||
|
@ -110,7 +110,7 @@ OLESTATUS WINAPI OleRevokeServer16(LHSERVER hServer)
|
|||
* OleRegisterServer32 [OLESVR32.2]
|
||||
*/
|
||||
OLESTATUS WINAPI OleRegisterServer(LPCSTR svrname,LPOLESERVER olesvr,LHSERVER* hRet,HINSTANCE hinst,OLE_SERVER_USE osu) {
|
||||
FIXME(ole,"(%s,%p,%p,%08x,%d): stub!\n",svrname,olesvr,hRet,hinst,osu);
|
||||
FIXME("(%s,%p,%p,%08x,%d): stub!\n",svrname,olesvr,hRet,hinst,osu);
|
||||
*hRet=++OLE_current_handle;
|
||||
return OLE_OK;
|
||||
}
|
||||
|
@ -122,7 +122,7 @@ OLESTATUS WINAPI OleRegisterServerDoc( LHSERVER hServer, LPCSTR docname,
|
|||
LPOLESERVERDOC document,
|
||||
LHSERVERDOC *hRet)
|
||||
{
|
||||
FIXME(ole,"(%ld,%s): stub\n", hServer, docname);
|
||||
FIXME("(%ld,%s): stub\n", hServer, docname);
|
||||
*hRet=++OLE_current_handle;
|
||||
return OLE_OK;
|
||||
}
|
||||
|
@ -133,6 +133,6 @@ OLESTATUS WINAPI OleRegisterServerDoc( LHSERVER hServer, LPCSTR docname,
|
|||
*/
|
||||
OLESTATUS WINAPI OleRenameServerDoc(LHSERVERDOC hDoc, LPCSTR newName)
|
||||
{
|
||||
FIXME(ole,"(%ld,%s): stub.\n",hDoc, newName);
|
||||
FIXME("(%ld,%s): stub.\n",hDoc, newName);
|
||||
return OLE_OK;
|
||||
}
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
#include "winbase.h"
|
||||
#include "oleauto.h"
|
||||
#include "wine/obj_base.h"
|
||||
#include "debug.h"
|
||||
#include "debugtools.h"
|
||||
|
||||
DEFAULT_DEBUG_CHANNEL(ole)
|
||||
|
||||
|
@ -121,7 +121,7 @@ HRESULT WINAPI SafeArrayAllocDescriptor(
|
|||
GetProcessHeap(), HEAP_ZERO_MEMORY, allocSize)) == NULL){
|
||||
return(E_UNEXPECTED);
|
||||
}
|
||||
TRACE(ole,"SafeArray: %lu bytes allocated for descriptor.\n", allocSize);
|
||||
TRACE("SafeArray: %lu bytes allocated for descriptor.\n", allocSize);
|
||||
|
||||
return(S_OK);
|
||||
}
|
||||
|
@ -144,7 +144,7 @@ HRESULT WINAPI SafeArrayAllocData(
|
|||
psa->cbElements*ulWholeArraySize)) == NULL)
|
||||
return(E_UNEXPECTED);
|
||||
|
||||
TRACE(ole, "SafeArray: %lu bytes allocated for data at %p (%lu objects).\n",
|
||||
TRACE("SafeArray: %lu bytes allocated for data at %p (%lu objects).\n",
|
||||
psa->cbElements*ulWholeArraySize, psa->pvData, ulWholeArraySize);
|
||||
|
||||
return(S_OK);
|
||||
|
@ -187,7 +187,7 @@ SAFEARRAY* WINAPI SafeArrayCreate(
|
|||
/* allocate memory for the data... */
|
||||
if( FAILED( hRes = SafeArrayAllocData(psa))) {
|
||||
SafeArrayDestroyDescriptor(psa);
|
||||
ERR(ole,"() : Failed to allocate the Safe Array data\n");
|
||||
ERR("() : Failed to allocate the Safe Array data\n");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
@ -293,11 +293,11 @@ HRESULT WINAPI SafeArrayPutElement(
|
|||
}
|
||||
|
||||
} else {
|
||||
ERR(ole, "SafeArray: Cannot lock array....\n");
|
||||
ERR("SafeArray: Cannot lock array....\n");
|
||||
return E_UNEXPECTED; /* UNDOC error condition */
|
||||
}
|
||||
|
||||
TRACE(ole,"SafeArray: item put at adress %p.\n",elementStorageAddress);
|
||||
TRACE("SafeArray: item put at adress %p.\n",elementStorageAddress);
|
||||
return SafeArrayUnlock(psa);
|
||||
}
|
||||
|
||||
|
@ -343,7 +343,7 @@ HRESULT WINAPI SafeArrayGetElement(
|
|||
memcpy(pv, elementStorageAddress, SafeArrayGetElemsize(psa) );
|
||||
|
||||
} else {
|
||||
ERR(ole, "SafeArray: Cannot lock array....\n");
|
||||
ERR("SafeArray: Cannot lock array....\n");
|
||||
return E_UNEXPECTED; /* UNDOC error condition */
|
||||
}
|
||||
|
||||
|
@ -873,7 +873,7 @@ static ULONG calcDisplacement(
|
|||
res += ((coor[iterDim]-mat[iterDim].lLbound) *
|
||||
endOfDim(coor, mat, iterDim+1, dim));
|
||||
|
||||
TRACE(ole, "SafeArray: calculated displacement is %lu.\n", res);
|
||||
TRACE("SafeArray: calculated displacement is %lu.\n", res);
|
||||
return(res);
|
||||
}
|
||||
|
||||
|
|
|
@ -30,7 +30,7 @@
|
|||
|
||||
#include "storage32.h"
|
||||
|
||||
#include "debug.h"
|
||||
#include "debugtools.h"
|
||||
|
||||
DEFAULT_DEBUG_CHANNEL(storage)
|
||||
|
||||
|
@ -209,7 +209,7 @@ static BOOL BIGBLOCKFILE_MemInit(LPBIGBLOCKFILE This, ILockBytes* plkbyt)
|
|||
*/
|
||||
if (GetHGlobalFromILockBytes(plkbyt, &(This->hbytearray)) != S_OK)
|
||||
{
|
||||
FIXME(storage, "May not be an ILockBytes on HGLOBAL\n");
|
||||
FIXME("May not be an ILockBytes on HGLOBAL\n");
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
|
||||
#include "winbase.h"
|
||||
#include "winerror.h"
|
||||
#include "debug.h"
|
||||
#include "debugtools.h"
|
||||
#include "wine/obj_storage.h"
|
||||
|
||||
#include "storage32.h"
|
||||
|
@ -114,7 +114,7 @@ StgStreamImpl* StgStreamImpl_Construct(
|
|||
*/
|
||||
void StgStreamImpl_Destroy(StgStreamImpl* This)
|
||||
{
|
||||
TRACE(storage, "(%p)\n", This);
|
||||
TRACE("(%p)\n", This);
|
||||
|
||||
/*
|
||||
* Release the reference we are holding on the parent storage.
|
||||
|
@ -318,7 +318,7 @@ HRESULT WINAPI StgStreamImpl_Read(
|
|||
ULONG bytesReadBuffer;
|
||||
ULONG bytesToReadFromBuffer;
|
||||
|
||||
TRACE(storage, "(%p, %p, %ld, %p)\n",
|
||||
TRACE("(%p, %p, %ld, %p)\n",
|
||||
iface, pv, cb, pcbRead);
|
||||
|
||||
/*
|
||||
|
@ -401,7 +401,7 @@ HRESULT WINAPI StgStreamImpl_Write(
|
|||
ULARGE_INTEGER newSize;
|
||||
ULONG bytesWritten = 0;
|
||||
|
||||
TRACE(storage, "(%p, %p, %ld, %p)\n",
|
||||
TRACE("(%p, %p, %ld, %p)\n",
|
||||
iface, pv, cb, pcbWritten);
|
||||
|
||||
/*
|
||||
|
@ -485,7 +485,7 @@ HRESULT WINAPI StgStreamImpl_Seek(
|
|||
|
||||
ULARGE_INTEGER newPosition;
|
||||
|
||||
TRACE(storage, "(%p, %ld, %ld, %p)\n",
|
||||
TRACE("(%p, %ld, %ld, %p)\n",
|
||||
iface, dlibMove.LowPart, dwOrigin, plibNewPosition);
|
||||
|
||||
/*
|
||||
|
@ -564,7 +564,7 @@ HRESULT WINAPI StgStreamImpl_SetSize(
|
|||
StgProperty curProperty;
|
||||
BOOL Success;
|
||||
|
||||
TRACE(storage, "(%p, %ld)\n", iface, libNewSize.LowPart);
|
||||
TRACE("(%p, %ld)\n", iface, libNewSize.LowPart);
|
||||
|
||||
/*
|
||||
* As documented.
|
||||
|
@ -669,7 +669,7 @@ HRESULT WINAPI StgStreamImpl_CopyTo(
|
|||
ULARGE_INTEGER totalBytesRead;
|
||||
ULARGE_INTEGER totalBytesWritten;
|
||||
|
||||
TRACE(storage, "(%p, %p, %ld, %p, %p)\n",
|
||||
TRACE("(%p, %p, %ld, %p, %p)\n",
|
||||
iface, pstm, cb.LowPart, pcbRead, pcbWritten);
|
||||
|
||||
/*
|
||||
|
@ -768,7 +768,7 @@ HRESULT WINAPI StgStreamImpl_LockRegion(
|
|||
ULARGE_INTEGER cb, /* [in] */
|
||||
DWORD dwLockType) /* [in] */
|
||||
{
|
||||
FIXME(storage, "not implemented!\n");
|
||||
FIXME("not implemented!\n");
|
||||
return E_NOTIMPL;
|
||||
}
|
||||
|
||||
|
@ -778,7 +778,7 @@ HRESULT WINAPI StgStreamImpl_UnlockRegion(
|
|||
ULARGE_INTEGER cb, /* [in] */
|
||||
DWORD dwLockType) /* [in] */
|
||||
{
|
||||
FIXME(storage, "not implemented!\n");
|
||||
FIXME("not implemented!\n");
|
||||
return E_NOTIMPL;
|
||||
}
|
||||
|
||||
|
@ -823,6 +823,6 @@ HRESULT WINAPI StgStreamImpl_Clone(
|
|||
IStream* iface,
|
||||
IStream** ppstm) /* [out] */
|
||||
{
|
||||
FIXME(storage, "not implemented!\n");
|
||||
FIXME("not implemented!\n");
|
||||
return E_NOTIMPL;
|
||||
}
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
#include "wine/winestring.h"
|
||||
#include "crtdll.h"
|
||||
#include "tchar.h"
|
||||
#include "debug.h"
|
||||
#include "debugtools.h"
|
||||
#include "windef.h"
|
||||
|
||||
#include "storage32.h"
|
||||
|
@ -284,7 +284,7 @@ HRESULT WINAPI StorageBaseImpl_OpenStream(
|
|||
StgProperty currentProperty;
|
||||
ULONG foundPropertyIndex;
|
||||
|
||||
TRACE(storage, "(%p, %s, %p, %lx, %ld, %p)\n",
|
||||
TRACE("(%p, %s, %p, %lx, %ld, %p)\n",
|
||||
iface, debugstr_w(pwcsName), reserved1, grfMode, reserved2, ppstm);
|
||||
|
||||
/*
|
||||
|
@ -381,7 +381,7 @@ HRESULT WINAPI StorageBaseImpl_OpenStorage(
|
|||
StgProperty currentProperty;
|
||||
ULONG foundPropertyIndex;
|
||||
|
||||
TRACE(storage, "(%p, %s, %p, %lx, %p, %ld, %p)\n",
|
||||
TRACE("(%p, %s, %p, %lx, %p, %ld, %p)\n",
|
||||
iface, debugstr_w(pwcsName), pstgPriority,
|
||||
grfMode, snbExclude, reserved, ppstg);
|
||||
|
||||
|
@ -480,7 +480,7 @@ HRESULT WINAPI StorageBaseImpl_EnumElements(
|
|||
ICOM_THIS(StorageBaseImpl,iface);
|
||||
IEnumSTATSTGImpl* newEnum;
|
||||
|
||||
TRACE(storage, "(%p, %ld, %p, %ld, %p)\n",
|
||||
TRACE("(%p, %ld, %p, %ld, %p)\n",
|
||||
iface, reserved1, reserved2, reserved3, ppenum);
|
||||
|
||||
/*
|
||||
|
@ -528,7 +528,7 @@ HRESULT WINAPI StorageBaseImpl_Stat(
|
|||
StgProperty curProperty;
|
||||
BOOL readSucessful;
|
||||
|
||||
TRACE(storage, "(%p, %p, %lx)\n",
|
||||
TRACE("(%p, %p, %lx)\n",
|
||||
iface, pstatstg, grfStatFlag);
|
||||
|
||||
/*
|
||||
|
@ -579,7 +579,7 @@ HRESULT WINAPI StorageBaseImpl_RenameElement(
|
|||
StgProperty currentProperty;
|
||||
ULONG foundPropertyIndex;
|
||||
|
||||
TRACE(storage, "(%p, %s, %s)\n",
|
||||
TRACE("(%p, %s, %s)\n",
|
||||
iface, debugstr_w(pwcsOldName), debugstr_w(pwcsNewName));
|
||||
|
||||
/*
|
||||
|
@ -734,7 +734,7 @@ HRESULT WINAPI StorageBaseImpl_CreateStream(
|
|||
StgProperty currentProperty, newStreamProperty;
|
||||
ULONG foundPropertyIndex, newPropertyIndex;
|
||||
|
||||
TRACE(storage, "(%p, %s, %lx, %ld, %ld, %p)\n",
|
||||
TRACE("(%p, %s, %lx, %ld, %ld, %p)\n",
|
||||
iface, debugstr_w(pwcsName), grfMode,
|
||||
reserved1, reserved2, ppstm);
|
||||
|
||||
|
@ -883,7 +883,7 @@ HRESULT WINAPI StorageBaseImpl_SetClass(
|
|||
StgProperty curProperty;
|
||||
BOOL success;
|
||||
|
||||
TRACE(storage, "(%p, %p)\n", iface, clsid);
|
||||
TRACE("(%p, %p)\n", iface, clsid);
|
||||
|
||||
success = StorageImpl_ReadProperty(This->ancestorStorage,
|
||||
This->rootPropertySetIndex,
|
||||
|
@ -930,7 +930,7 @@ HRESULT WINAPI StorageImpl_CreateStorage(
|
|||
ULONG newPropertyIndex;
|
||||
HRESULT hr;
|
||||
|
||||
TRACE(storage, "(%p, %s, %lx, %ld, %ld, %p)\n",
|
||||
TRACE("(%p, %s, %lx, %ld, %ld, %p)\n",
|
||||
iface, debugstr_w(pwcsName), grfMode,
|
||||
reserved1, reserved2, ppstg);
|
||||
|
||||
|
@ -1303,9 +1303,9 @@ HRESULT WINAPI StorageImpl_CopyTo(
|
|||
IStream *pstrTmp, *pstrChild;
|
||||
|
||||
if ((ciidExclude != 0) || (rgiidExclude != NULL) || (snbExclude != NULL))
|
||||
FIXME( storage, "Exclude option not implemented\n");
|
||||
FIXME("Exclude option not implemented\n");
|
||||
|
||||
TRACE(storage, "(%p, %ld, %p, %p, %p)\n",
|
||||
TRACE("(%p, %ld, %p, %p, %p)\n",
|
||||
iface, ciidExclude, rgiidExclude,
|
||||
snbExclude, pstgDest);
|
||||
|
||||
|
@ -1439,7 +1439,7 @@ HRESULT WINAPI StorageImpl_CopyTo(
|
|||
}
|
||||
else
|
||||
{
|
||||
WARN(storage, "unknown element type: %ld\n", curElement.type);
|
||||
WARN("unknown element type: %ld\n", curElement.type);
|
||||
}
|
||||
|
||||
} while (hr == S_OK);
|
||||
|
@ -1462,7 +1462,7 @@ HRESULT WINAPI StorageImpl_MoveElementTo(
|
|||
const OLECHAR *pwcsNewName,/* [string][in] */
|
||||
DWORD grfFlags) /* [in] */
|
||||
{
|
||||
FIXME(storage, "not implemented!\n");
|
||||
FIXME("not implemented!\n");
|
||||
return E_NOTIMPL;
|
||||
}
|
||||
|
||||
|
@ -1473,7 +1473,7 @@ HRESULT WINAPI StorageImpl_Commit(
|
|||
IStorage* iface,
|
||||
DWORD grfCommitFlags)/* [in] */
|
||||
{
|
||||
FIXME(storage, "(%ld): stub!\n", grfCommitFlags);
|
||||
FIXME("(%ld): stub!\n", grfCommitFlags);
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
@ -1483,7 +1483,7 @@ HRESULT WINAPI StorageImpl_Commit(
|
|||
HRESULT WINAPI StorageImpl_Revert(
|
||||
IStorage* iface)
|
||||
{
|
||||
FIXME(storage, "not implemented!\n");
|
||||
FIXME("not implemented!\n");
|
||||
return E_NOTIMPL;
|
||||
}
|
||||
|
||||
|
@ -1513,7 +1513,7 @@ HRESULT WINAPI StorageImpl_DestroyElement(
|
|||
ULONG typeOfRelation;
|
||||
ULONG parentPropertyId;
|
||||
|
||||
TRACE(storage, "(%p, %s)\n",
|
||||
TRACE("(%p, %s)\n",
|
||||
iface, debugstr_w(pwcsName));
|
||||
|
||||
/*
|
||||
|
@ -2007,7 +2007,7 @@ HRESULT WINAPI StorageImpl_SetElementTimes(
|
|||
const FILETIME *patime, /* [in] */
|
||||
const FILETIME *pmtime) /* [in] */
|
||||
{
|
||||
FIXME(storage, "not implemented!\n");
|
||||
FIXME("not implemented!\n");
|
||||
return E_NOTIMPL;
|
||||
}
|
||||
|
||||
|
@ -2019,7 +2019,7 @@ HRESULT WINAPI StorageImpl_SetStateBits(
|
|||
DWORD grfStateBits,/* [in] */
|
||||
DWORD grfMask) /* [in] */
|
||||
{
|
||||
FIXME(storage, "not implemented!\n");
|
||||
FIXME("not implemented!\n");
|
||||
return E_NOTIMPL;
|
||||
}
|
||||
|
||||
|
@ -2218,7 +2218,7 @@ HRESULT StorageImpl_Construct(
|
|||
void StorageImpl_Destroy(
|
||||
StorageImpl* This)
|
||||
{
|
||||
TRACE(storage, "(%p)\n", This);
|
||||
TRACE("(%p)\n", This);
|
||||
|
||||
BlockChainStream_Destroy(This->smallBlockRootChain);
|
||||
BlockChainStream_Destroy(This->rootBlockChain);
|
||||
|
@ -5204,7 +5204,7 @@ HRESULT WINAPI StgCreateDocfile(
|
|||
DWORD fileAttributes;
|
||||
WCHAR tempFileName[MAX_PATH];
|
||||
|
||||
TRACE(storage, "(%s, %lx, %ld, %p)\n",
|
||||
TRACE("(%s, %lx, %ld, %p)\n",
|
||||
debugstr_w(pwcsName), grfMode,
|
||||
reserved, ppstgOpen);
|
||||
|
||||
|
@ -5253,7 +5253,7 @@ HRESULT WINAPI StgCreateDocfile(
|
|||
fileAttributes = FILE_ATTRIBUTE_NORMAL | FILE_FLAG_RANDOM_ACCESS;
|
||||
|
||||
if (grfMode & STGM_TRANSACTED)
|
||||
FIXME(storage, "Transacted mode not implemented.\n");
|
||||
FIXME("Transacted mode not implemented.\n");
|
||||
|
||||
/*
|
||||
* Initialize the "out" parameter.
|
||||
|
@ -5322,7 +5322,7 @@ HRESULT WINAPI StgOpenStorage(
|
|||
DWORD shareMode;
|
||||
DWORD accessMode;
|
||||
|
||||
TRACE(storage, "(%s, %p, %lx, %p, %ld, %p)\n",
|
||||
TRACE("(%s, %p, %lx, %p, %ld, %p)\n",
|
||||
debugstr_w(pwcsName), pstgPriority, grfMode,
|
||||
snbExclude, reserved, ppstgOpen);
|
||||
|
||||
|
@ -5555,7 +5555,7 @@ HRESULT WINAPI ReadClassStg(IStorage *pstg,CLSID *pclsid){
|
|||
STATSTG pstatstg;
|
||||
HRESULT hRes;
|
||||
|
||||
TRACE(storage,"()\n");
|
||||
TRACE("()\n");
|
||||
|
||||
if(pclsid==NULL)
|
||||
return E_POINTER;
|
||||
|
@ -5580,7 +5580,7 @@ HRESULT WINAPI OleLoadFromStream(IStream *pStm,REFIID iidInterface,void** ppvOb
|
|||
CLSID clsid;
|
||||
HRESULT res;
|
||||
|
||||
FIXME(storage,"(),stub!\n");
|
||||
FIXME("(),stub!\n");
|
||||
|
||||
res=ReadClassStm(pStm,&clsid);
|
||||
|
||||
|
@ -5607,7 +5607,7 @@ HRESULT WINAPI OleSaveToStream(IPersistStream *pPStm,IStream *pStm)
|
|||
CLSID clsid;
|
||||
HRESULT res;
|
||||
|
||||
TRACE(storage,"(%p,%p)\n",pPStm,pStm);
|
||||
TRACE("(%p,%p)\n",pPStm,pStm);
|
||||
|
||||
res=IPersistStream_GetClassID(pPStm,&clsid);
|
||||
|
||||
|
@ -5797,11 +5797,11 @@ static DWORD GetCreationModeFromSTGM(DWORD stgm)
|
|||
if ( stgm & STGM_CREATE)
|
||||
return CREATE_ALWAYS;
|
||||
if (stgm & STGM_CONVERT) {
|
||||
FIXME(storage, "STGM_CONVERT not implemented!\n");
|
||||
FIXME("STGM_CONVERT not implemented!\n");
|
||||
return CREATE_NEW;
|
||||
}
|
||||
/* All other cases */
|
||||
if (stgm & ~ (STGM_CREATE|STGM_CONVERT))
|
||||
FIXME(storage,"unhandled storage mode : 0x%08lx\n",stgm & ~ (STGM_CREATE|STGM_CONVERT));
|
||||
FIXME("unhandled storage mode : 0x%08lx\n",stgm & ~ (STGM_CREATE|STGM_CONVERT));
|
||||
return CREATE_NEW;
|
||||
}
|
||||
|
|
198
ole/typelib.c
198
ole/typelib.c
|
@ -35,7 +35,7 @@
|
|||
#include "wine/winbase16.h"
|
||||
#include "heap.h"
|
||||
#include "wine/obj_base.h"
|
||||
#include "debug.h"
|
||||
#include "debugtools.h"
|
||||
#include "winversion.h"
|
||||
/* FIXME: get rid of these */
|
||||
typedef struct ITypeInfoVtbl ITypeLib_VTable, *LPTYPEINFO_VTABLE ;
|
||||
|
@ -71,7 +71,7 @@ QueryPathOfRegTypeLib16(
|
|||
);
|
||||
} else {
|
||||
sprintf(xguid,"<guid 0x%08lx>",(DWORD)guid);
|
||||
FIXME(ole,"(%s,%d,%d,0x%04lx,%p),can't handle non-string guids.\n",xguid,wMaj,wMin,(DWORD)lcid,path);
|
||||
FIXME_(ole)("(%s,%d,%d,0x%04lx,%p),can't handle non-string guids.\n",xguid,wMaj,wMin,(DWORD)lcid,path);
|
||||
return E_FAIL;
|
||||
}
|
||||
plen = sizeof(pathname);
|
||||
|
@ -79,7 +79,7 @@ QueryPathOfRegTypeLib16(
|
|||
/* try again without lang specific id */
|
||||
if (SUBLANGID(lcid))
|
||||
return QueryPathOfRegTypeLib16(guid,wMaj,wMin,PRIMARYLANGID(lcid),path);
|
||||
FIXME(ole,"key %s not found\n",typelibkey);
|
||||
FIXME_(ole)("key %s not found\n",typelibkey);
|
||||
return E_FAIL;
|
||||
}
|
||||
*path = SysAllocString16(pathname);
|
||||
|
@ -111,7 +111,7 @@ QueryPathOfRegTypeLib(
|
|||
);
|
||||
} else {
|
||||
sprintf(xguid,"<guid 0x%08lx>",(DWORD)guid);
|
||||
FIXME(ole,"(%s,%d,%d,0x%04lx,%p),stub!\n",xguid,wMaj,wMin,(DWORD)lcid,path);
|
||||
FIXME_(ole)("(%s,%d,%d,0x%04lx,%p),stub!\n",xguid,wMaj,wMin,(DWORD)lcid,path);
|
||||
return E_FAIL;
|
||||
}
|
||||
plen = sizeof(pathname);
|
||||
|
@ -119,7 +119,7 @@ QueryPathOfRegTypeLib(
|
|||
/* try again without lang specific id */
|
||||
if (SUBLANGID(lcid))
|
||||
return QueryPathOfRegTypeLib(guid,wMaj,wMin,PRIMARYLANGID(lcid),path);
|
||||
FIXME(ole,"key %s not found\n",typelibkey);
|
||||
FIXME_(ole)("key %s not found\n",typelibkey);
|
||||
return E_FAIL;
|
||||
}
|
||||
*path = HEAP_strdupAtoW(GetProcessHeap(),0,pathname);
|
||||
|
@ -140,7 +140,7 @@ HRESULT WINAPI LoadTypeLib16(
|
|||
OLECHAR *szFile, /* [in] Name of file to load from */
|
||||
void * *pptLib) /* [out] Pointer to pointer to loaded type library */
|
||||
{
|
||||
FIXME(ole, "('%s',%p): stub\n",debugstr_w((LPWSTR)szFile),pptLib);
|
||||
FIXME_(ole)("('%s',%p): stub\n",debugstr_w((LPWSTR)szFile),pptLib);
|
||||
|
||||
if (pptLib!=0)
|
||||
*pptLib=0;
|
||||
|
@ -166,13 +166,13 @@ HRESULT WINAPI LoadTypeLib(
|
|||
{
|
||||
LPSTR p;
|
||||
HRESULT res;
|
||||
TRACE(typelib, "('%s',%p)\n",debugstr_w(szFile),pptLib);
|
||||
TRACE_(typelib)("('%s',%p)\n",debugstr_w(szFile),pptLib);
|
||||
|
||||
p=HEAP_strdupWtoA(GetProcessHeap(),0,szFile);
|
||||
res= TLB_ReadTypeLib(p, pptLib);
|
||||
/* XXX need to free p ?? */
|
||||
|
||||
TRACE( typelib, " returns %ld\n",res);
|
||||
TRACE_(typelib)(" returns %ld\n",res);
|
||||
|
||||
return res;
|
||||
}
|
||||
|
@ -197,7 +197,7 @@ HRESULT WINAPI LoadRegTypeLib(
|
|||
if(TRACE_ON(typelib)){
|
||||
char xriid[50];
|
||||
WINE_StringFromCLSID((LPCLSID)rguid,xriid);
|
||||
TRACE(typelib,"(IID: %s) load %s (%p)\n",xriid,
|
||||
TRACE_(typelib)("(IID: %s) load %s (%p)\n",xriid,
|
||||
SUCCEEDED(res)? "SUCCESS":"FAILED", *ppTLib);
|
||||
}
|
||||
return res;
|
||||
|
@ -221,7 +221,7 @@ HRESULT WINAPI RegisterTypeLib(
|
|||
OLECHAR * szFullPath, /*[in] full Path of the library*/
|
||||
OLECHAR * szHelpDir) /*[in] dir to the helpfile for the library,
|
||||
may be NULL*/
|
||||
{ FIXME(ole, "(%p,%s,%s): stub\n",ptlib, debugstr_w(szFullPath),debugstr_w(szHelpDir));
|
||||
{ FIXME_(ole)("(%p,%s,%s): stub\n",ptlib, debugstr_w(szFullPath),debugstr_w(szHelpDir));
|
||||
return S_OK; /* FIXME: pretend everything is OK */
|
||||
}
|
||||
|
||||
|
@ -244,7 +244,7 @@ HRESULT WINAPI UnRegisterTypeLib(
|
|||
{
|
||||
char xriid[50];
|
||||
WINE_StringFromCLSID((LPCLSID)libid,xriid);
|
||||
TRACE(typelib,"(IID: %s): stub\n",xriid);
|
||||
TRACE_(typelib)("(IID: %s): stub\n",xriid);
|
||||
return S_OK; /* FIXME: pretend everything is OK */
|
||||
}
|
||||
|
||||
|
@ -263,7 +263,7 @@ WINDOWS_VERSION ver = VERSION_GetVersion();
|
|||
case WIN31:
|
||||
return MAKELONG(0xbd3, 0x3); /* WfW 3.11 */
|
||||
default:
|
||||
FIXME(ole, "Version value not known yet. Please investigate it !");
|
||||
FIXME_(ole)("Version value not known yet. Please investigate it !");
|
||||
return MAKELONG(0xbd0, 0xa); /* return Win95A for now */
|
||||
}
|
||||
}
|
||||
|
@ -498,7 +498,7 @@ static void * TLB_Alloc(unsigned size)
|
|||
void * ret;
|
||||
if((ret=HeapAlloc(GetProcessHeap(),HEAP_ZERO_MEMORY,size))==NULL){
|
||||
/* FIXME */
|
||||
ERR(ole,"cannot allocate memory\n");
|
||||
ERR_(ole)("cannot allocate memory\n");
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
@ -516,7 +516,7 @@ static BSTR TLB_DupAtoBstr(PCHAR Astr)
|
|||
pdw[0]=(len)*sizeof(OLECHAR);
|
||||
bstr=(BSTR)&( pdw[1]);
|
||||
lstrcpyAtoW( bstr, Astr);
|
||||
TRACE(typelib,"copying %s to (%p)\n", Astr, bstr);
|
||||
TRACE_(typelib)("copying %s to (%p)\n", Astr, bstr);
|
||||
return bstr;
|
||||
}
|
||||
|
||||
|
@ -535,7 +535,7 @@ DWORD TLB_Read(void *buffer, DWORD count, TLBContext *pcx, long where )
|
|||
!ReadFile(pcx->hFile, buffer, count, &bytesread, NULL)
|
||||
) {
|
||||
/* FIXME */
|
||||
ERR(typelib,"read error is 0x%lx reading %ld bytes at 0x%lx\n",
|
||||
ERR_(typelib)("read error is 0x%lx reading %ld bytes at 0x%lx\n",
|
||||
GetLastError(), count, where);
|
||||
TLB_abort();
|
||||
exit(1);
|
||||
|
@ -647,7 +647,7 @@ static void TLB_ReadValue( VARIANT * pVar, int offset, TLBContext *pcx )
|
|||
case VT_CLSID :
|
||||
default:
|
||||
size=0;
|
||||
FIXME(ole,"VARTYPE %d is not supported, setting pointer to NULL\n",
|
||||
FIXME_(ole)("VARTYPE %d is not supported, setting pointer to NULL\n",
|
||||
pVar->vt);
|
||||
}
|
||||
|
||||
|
@ -886,7 +886,7 @@ static void TLB_DoRefType(TLBContext *pcx,
|
|||
(*pprtd)->pImpTLInfo=pImpLib;
|
||||
TLB_ReadGuid(&(*pprtd)->guid, impinfo.oGuid, pcx);
|
||||
}else{
|
||||
ERR( typelib ,"Cannot find a reference\n");
|
||||
ERR_(typelib)("Cannot find a reference\n");
|
||||
(*pprtd)->reference=-1;
|
||||
(*pprtd)->pImpTLInfo=(void *)-1;
|
||||
}
|
||||
|
@ -954,7 +954,7 @@ TLBTypeInfo * TLB_DoTypeInfo(TLBContext *pcx, int count, TLBLibInfo* pLibInfo)
|
|||
|
||||
/* name, eventually add to a hash table */
|
||||
ptiRet->Name=TLB_ReadName(pcx, tiBase.NameOffset);
|
||||
TRACE( typelib,"reading %s\n", ptiRet->Name);
|
||||
TRACE_(typelib)("reading %s\n", ptiRet->Name);
|
||||
/* help info */
|
||||
ptiRet->DocString=TLB_ReadString(pcx, tiBase.docstringoffs);
|
||||
ptiRet->dwHelpStringContext=tiBase.helpstringcontext;
|
||||
|
@ -1023,9 +1023,9 @@ long TLB_FindTlb(TLBContext *pcx)
|
|||
|
||||
LOOK_FOR_MAGIC(TLBMAGIC1);
|
||||
if(count)
|
||||
ERR(ole,"type library format not (yet) implemented\n");
|
||||
ERR_(ole)("type library format not (yet) implemented\n");
|
||||
else
|
||||
ERR(ole,"not type library found in this file\n");
|
||||
ERR_(ole)("not type library found in this file\n");
|
||||
return -1;
|
||||
}
|
||||
#undef LOOK_FOR_MAGIC
|
||||
|
@ -1039,15 +1039,15 @@ int TLB_ReadTypeLib(PCHAR file, ITypeLib **ppTypeLib)
|
|||
TLB2Header tlbHeader;
|
||||
TLBSegDir tlbSegDir;
|
||||
if((cx.hFile=OpenFile(file, &ofStruct, OF_READWRITE))==HFILE_ERROR) {
|
||||
ERR( typelib,"cannot open %s error 0x%lx\n",file, GetLastError());
|
||||
ERR_(typelib)("cannot open %s error 0x%lx\n",file, GetLastError());
|
||||
return E_FAIL;
|
||||
}
|
||||
/* get pointer to beginning of typelib data */
|
||||
if((oStart=TLB_FindTlb(&cx))<0){
|
||||
if(oStart==-1)
|
||||
ERR( typelib,"cannot locate typelib in %s\n",file);
|
||||
ERR_(typelib)("cannot locate typelib in %s\n",file);
|
||||
else
|
||||
ERR( typelib,"unsupported typelib format in %s\n",file);
|
||||
ERR_(typelib)("unsupported typelib format in %s\n",file);
|
||||
return E_FAIL;
|
||||
}
|
||||
cx.oStart=oStart;
|
||||
|
@ -1074,7 +1074,7 @@ int TLB_ReadTypeLib(PCHAR file, ITypeLib **ppTypeLib)
|
|||
if ( tlbSegDir.pTypeInfoTab.res0c != 0x0F ||
|
||||
tlbSegDir.pImpInfo.res0c != 0x0F
|
||||
) {
|
||||
ERR( typelib,"cannot find the table directory, ptr=0x%lx\n",lPSegDir);
|
||||
ERR_(typelib)("cannot find the table directory, ptr=0x%lx\n",lPSegDir);
|
||||
CloseHandle(cx.hFile);
|
||||
return E_FAIL;
|
||||
}
|
||||
|
@ -1150,7 +1150,7 @@ int TLB_ReadTypeLib(PCHAR file, ITypeLib **ppTypeLib)
|
|||
}
|
||||
}else{
|
||||
V_UNION(&(pLibInfo->pTypeDesc[i]),lpadesc)=NULL;
|
||||
ERR(ole, "didn't find array description data\n");
|
||||
ERR_(ole)("didn't find array description data\n");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1202,7 +1202,7 @@ static HRESULT WINAPI ITypeLib_fnQueryInterface( LPTYPELIB This, REFIID riid,
|
|||
if(TRACE_ON(typelib)){
|
||||
char xriid[50];
|
||||
WINE_StringFromCLSID((LPCLSID)riid,xriid);
|
||||
TRACE(typelib,"(%p)->(IID: %s)\n",This,xriid);
|
||||
TRACE_(typelib)("(%p)->(IID: %s)\n",This,xriid);
|
||||
}
|
||||
*ppvObject=NULL;
|
||||
if(IsEqualIID(riid, &IID_IUnknown) ||
|
||||
|
@ -1211,10 +1211,10 @@ static HRESULT WINAPI ITypeLib_fnQueryInterface( LPTYPELIB This, REFIID riid,
|
|||
*ppvObject = This;
|
||||
if(*ppvObject){
|
||||
(*(LPTYPELIB*)ppvObject)->lpvtbl->fnAddRef(This);
|
||||
TRACE(typelib,"-- Interface: (%p)->(%p)\n",ppvObject,*ppvObject);
|
||||
TRACE_(typelib)("-- Interface: (%p)->(%p)\n",ppvObject,*ppvObject);
|
||||
return S_OK;
|
||||
}
|
||||
TRACE(typelib,"-- Interface: E_NOINTERFACE\n");
|
||||
TRACE_(typelib)("-- Interface: E_NOINTERFACE\n");
|
||||
return E_NOINTERFACE;
|
||||
}
|
||||
|
||||
|
@ -1223,7 +1223,7 @@ static HRESULT WINAPI ITypeLib_fnQueryInterface( LPTYPELIB This, REFIID riid,
|
|||
static ULONG WINAPI ITypeLib_fnAddRef( LPTYPELIB iface)
|
||||
{
|
||||
ICOM_THIS( TLBLibInfo, iface);
|
||||
TRACE(typelib,"(%p)->ref is %u\n",This, This->ref);
|
||||
TRACE_(typelib)("(%p)->ref is %u\n",This, This->ref);
|
||||
return ++(This->ref);
|
||||
}
|
||||
|
||||
|
@ -1232,7 +1232,7 @@ static ULONG WINAPI ITypeLib_fnAddRef( LPTYPELIB iface)
|
|||
static ULONG WINAPI ITypeLib_fnRelease( LPTYPELIB iface)
|
||||
{
|
||||
ICOM_THIS( TLBLibInfo, iface);
|
||||
FIXME(typelib,"(%p)->ref is %u: stub\n",This, This->ref);
|
||||
FIXME_(typelib)("(%p)->ref is %u: stub\n",This, This->ref);
|
||||
(This->ref)--;
|
||||
return S_OK;
|
||||
}
|
||||
|
@ -1244,7 +1244,7 @@ static ULONG WINAPI ITypeLib_fnRelease( LPTYPELIB iface)
|
|||
static UINT WINAPI ITypeLib_fnGetTypeInfoCount( LPTYPELIB iface)
|
||||
{
|
||||
ICOM_THIS( TLBLibInfo, iface);
|
||||
TRACE(typelib,"(%p)->count is %d\n",This, This->TypeInfoCount);
|
||||
TRACE_(typelib)("(%p)->count is %d\n",This, This->TypeInfoCount);
|
||||
return This->TypeInfoCount;
|
||||
}
|
||||
|
||||
|
@ -1258,15 +1258,15 @@ static HRESULT WINAPI ITypeLib_fnGetTypeInfo( LPTYPELIB iface, UINT index,
|
|||
int i;
|
||||
ICOM_THIS( TLBLibInfo, iface);
|
||||
TLBTypeInfo **ppTLBTInfo=(TLBTypeInfo **)ppTInfo;
|
||||
TRACE(typelib,"(%p) index %d \n",This, index);
|
||||
TRACE_(typelib)("(%p) index %d \n",This, index);
|
||||
for(i=0,*ppTLBTInfo=This->pTypeInfo;*ppTLBTInfo && i != index;i++)
|
||||
*ppTLBTInfo=(*ppTLBTInfo)->next;
|
||||
if(*ppTLBTInfo){
|
||||
(*ppTLBTInfo)->lpvtbl->fnAddRef(*ppTInfo);
|
||||
TRACE(typelib,"-- found (%p)->(%p)\n",ppTLBTInfo,*ppTLBTInfo);
|
||||
TRACE_(typelib)("-- found (%p)->(%p)\n",ppTLBTInfo,*ppTLBTInfo);
|
||||
return S_OK;
|
||||
}
|
||||
TRACE(typelib,"-- element not found\n");
|
||||
TRACE_(typelib)("-- element not found\n");
|
||||
return TYPE_E_ELEMENTNOTFOUND;
|
||||
}
|
||||
|
||||
|
@ -1280,15 +1280,15 @@ static HRESULT WINAPI ITypeLib_fnGetTypeInfoType( LPTYPELIB iface, UINT index,
|
|||
int i;
|
||||
TLBTypeInfo *pTInfo;
|
||||
ICOM_THIS( TLBLibInfo, iface);
|
||||
TRACE(typelib,"(%p) index %d \n",This, index);
|
||||
TRACE_(typelib)("(%p) index %d \n",This, index);
|
||||
for(i=0,pTInfo=This->pTypeInfo;pTInfo && i != index;i++)
|
||||
pTInfo=(pTInfo)->next;
|
||||
if(pTInfo){
|
||||
*pTKind=pTInfo->TypeAttr.typekind;
|
||||
TRACE(typelib,"-- found Type (%p)->%d\n",pTKind,*pTKind);
|
||||
TRACE_(typelib)("-- found Type (%p)->%d\n",pTKind,*pTKind);
|
||||
return S_OK;
|
||||
}
|
||||
TRACE(typelib,"-- element not found\n");
|
||||
TRACE_(typelib)("-- element not found\n");
|
||||
return TYPE_E_ELEMENTNOTFOUND;
|
||||
}
|
||||
|
||||
|
@ -1306,17 +1306,17 @@ static HRESULT WINAPI ITypeLib_fnGetTypeInfoOfGuid( LPTYPELIB iface,
|
|||
if(TRACE_ON(typelib)){
|
||||
char xriid[50];
|
||||
WINE_StringFromCLSID((LPCLSID)guid,xriid);
|
||||
TRACE(typelib,"(%p) guid %sx)\n",This,xriid);
|
||||
TRACE_(typelib)("(%p) guid %sx)\n",This,xriid);
|
||||
}
|
||||
for(i=0,*ppTLBTInfo=This->pTypeInfo;*ppTLBTInfo &&
|
||||
!IsEqualIID(guid,&(*ppTLBTInfo)->TypeAttr.guid);i++)
|
||||
*ppTLBTInfo=(*ppTLBTInfo)->next;
|
||||
if(*ppTLBTInfo){
|
||||
(*ppTLBTInfo)->lpvtbl->fnAddRef(*ppTInfo);
|
||||
TRACE(typelib,"-- found (%p)->(%p)\n",ppTLBTInfo,*ppTLBTInfo);
|
||||
TRACE_(typelib)("-- found (%p)->(%p)\n",ppTLBTInfo,*ppTLBTInfo);
|
||||
return S_OK;
|
||||
}
|
||||
TRACE(typelib,"-- element not found\n");
|
||||
TRACE_(typelib)("-- element not found\n");
|
||||
return TYPE_E_ELEMENTNOTFOUND;
|
||||
}
|
||||
|
||||
|
@ -1329,7 +1329,7 @@ static HRESULT WINAPI ITypeLib_fnGetLibAttr( LPTYPELIB iface,
|
|||
LPTLIBATTR *ppTLibAttr)
|
||||
{
|
||||
ICOM_THIS( TLBLibInfo, iface);
|
||||
TRACE( typelib,"(%p)\n",This);
|
||||
TRACE_(typelib)("(%p)\n",This);
|
||||
/* FIXME: must do a copy here */
|
||||
*ppTLibAttr=&This->LibAttr;
|
||||
return S_OK;
|
||||
|
@ -1345,7 +1345,7 @@ static HRESULT WINAPI ITypeLib_fnGetTypeComp( LPTYPELIB iface,
|
|||
ITypeComp **ppTComp)
|
||||
{
|
||||
ICOM_THIS( TLBLibInfo, iface);
|
||||
FIXME(typelib,"(%p): stub!\n",This);
|
||||
FIXME_(typelib)("(%p): stub!\n",This);
|
||||
return E_NOTIMPL;
|
||||
}
|
||||
|
||||
|
@ -1363,7 +1363,7 @@ static HRESULT WINAPI ITypeLib_fnGetDocumentation( LPTYPELIB iface, INT index,
|
|||
ICOM_THIS( TLBLibInfo, iface);
|
||||
HRESULT result;
|
||||
ITypeInfo *pTInfo;
|
||||
TRACE( typelib, "(%p) index %d Name(%p) DocString(%p)"
|
||||
TRACE_(typelib)("(%p) index %d Name(%p) DocString(%p)"
|
||||
" HelpContext(%p) HelpFile(%p)\n",
|
||||
This, index, pBstrName, pBstrDocString, pdwHelpContext, pBstrHelpFile);
|
||||
if(index<0){ /* documentation for the typelib */
|
||||
|
@ -1420,7 +1420,7 @@ static HRESULT WINAPI ITypeLib_fnIsName( LPTYPELIB iface, LPOLESTR szNameBuf,
|
|||
*pfName=FALSE;
|
||||
|
||||
ITypeLib_fnIsName_exit:
|
||||
TRACE( typelib,"(%p)slow! search for %s: %s found!\n", This,
|
||||
TRACE_(typelib)("(%p)slow! search for %s: %s found!\n", This,
|
||||
debugstr_a(astr), *pfName?"NOT":"");
|
||||
|
||||
HeapFree( GetProcessHeap(), 0, astr );
|
||||
|
@ -1458,7 +1458,7 @@ ITypeLib_fnFindName_exit:
|
|||
ppTInfo[j]=(LPTYPEINFO)pTInfo;
|
||||
j++;
|
||||
}
|
||||
TRACE( typelib,"(%p)slow! search for %d with %s: found %d TypeInfo's!\n",
|
||||
TRACE_(typelib)("(%p)slow! search for %d with %s: found %d TypeInfo's!\n",
|
||||
This, *pcFound, debugstr_a(astr), j);
|
||||
|
||||
*pcFound=j;
|
||||
|
@ -1475,7 +1475,7 @@ ITypeLib_fnFindName_exit:
|
|||
static VOID WINAPI ITypeLib_fnReleaseTLibAttr( LPTYPELIB iface, TLIBATTR *pTLibAttr)
|
||||
{
|
||||
ICOM_THIS( TLBLibInfo, iface);
|
||||
TRACE( typelib,"freeing (%p)\n",This);
|
||||
TRACE_(typelib)("freeing (%p)\n",This);
|
||||
/* nothing to do */
|
||||
}
|
||||
|
||||
|
@ -1493,7 +1493,7 @@ static HRESULT WINAPI ITypeLib2_fnGetCustData( ITypeLib * iface, REFGUID guid,
|
|||
if(TRACE_ON(typelib)){
|
||||
char xriid[50];
|
||||
WINE_StringFromCLSID((LPCLSID)guid,xriid);
|
||||
TRACE(typelib,"(%p) guid %s %s found!x)\n",This,xriid,
|
||||
TRACE_(typelib)("(%p) guid %s %s found!x)\n",This,xriid,
|
||||
pCData? "" : "NOT");
|
||||
}
|
||||
if(pCData){
|
||||
|
@ -1514,7 +1514,7 @@ static HRESULT WINAPI ITypeLib2_fnGetLibStatistics( ITypeLib * iface,
|
|||
UINT *pcUniqueNames, UINT *pcchUniqueNames)
|
||||
{
|
||||
ICOM_THIS( TLBLibInfo, iface);
|
||||
FIXME( typelib,"(%p): stub!\n", This);
|
||||
FIXME_(typelib)("(%p): stub!\n", This);
|
||||
if(pcUniqueNames) *pcUniqueNames=1;
|
||||
if(pcchUniqueNames) *pcchUniqueNames=1;
|
||||
return S_OK;
|
||||
|
@ -1534,7 +1534,7 @@ static HRESULT WINAPI ITypeLib2_fnGetDocumentation2( ITypeLib * iface,
|
|||
ICOM_THIS( TLBLibInfo, iface);
|
||||
HRESULT result;
|
||||
ITypeInfo *pTInfo;
|
||||
FIXME( typelib,"(%p) index %d lcid %ld half implemented stub!\n", This,
|
||||
FIXME_(typelib)("(%p) index %d lcid %ld half implemented stub!\n", This,
|
||||
index, lcid);
|
||||
/* the help string should be obtained from the helpstringdll,
|
||||
* using the _DLLGetDocumentation function, based on the supplied
|
||||
|
@ -1571,7 +1571,7 @@ static HRESULT WINAPI ITypeLib2_fnGetAllCustData( ITypeLib * iface,
|
|||
ICOM_THIS( TLBLibInfo, iface);
|
||||
TLBCustData *pCData;
|
||||
int i;
|
||||
TRACE( typelib,"(%p) returning %d items\n", This, This->ctCustData);
|
||||
TRACE_(typelib)("(%p) returning %d items\n", This, This->ctCustData);
|
||||
pCustData->prgCustData = TLB_Alloc(This->ctCustData * sizeof(CUSTDATAITEM));
|
||||
if(pCustData->prgCustData ){
|
||||
pCustData->cCustData=This->ctCustData;
|
||||
|
@ -1580,7 +1580,7 @@ static HRESULT WINAPI ITypeLib2_fnGetAllCustData( ITypeLib * iface,
|
|||
VariantCopy(& pCustData->prgCustData[i].varValue, & pCData->data);
|
||||
}
|
||||
}else{
|
||||
ERR( typelib," OUT OF MEMORY! \n");
|
||||
ERR_(typelib)(" OUT OF MEMORY! \n");
|
||||
return E_OUTOFMEMORY;
|
||||
}
|
||||
return S_OK;
|
||||
|
@ -1598,7 +1598,7 @@ static HRESULT WINAPI ITypeInfo_fnQueryInterface( LPTYPEINFO iface, REFIID riid,
|
|||
if(TRACE_ON(typelib)){
|
||||
char xriid[50];
|
||||
WINE_StringFromCLSID((LPCLSID)riid,xriid);
|
||||
TRACE(typelib,"(%p)->(IID: %s)\n",This,xriid);
|
||||
TRACE_(typelib)("(%p)->(IID: %s)\n",This,xriid);
|
||||
}
|
||||
*ppvObject=NULL;
|
||||
if(IsEqualIID(riid, &IID_IUnknown) ||
|
||||
|
@ -1607,10 +1607,10 @@ static HRESULT WINAPI ITypeInfo_fnQueryInterface( LPTYPEINFO iface, REFIID riid,
|
|||
*ppvObject = This;
|
||||
if(*ppvObject){
|
||||
(*(LPTYPEINFO*)ppvObject)->lpvtbl->fnAddRef(iface);
|
||||
TRACE(typelib,"-- Interface: (%p)->(%p)\n",ppvObject,*ppvObject);
|
||||
TRACE_(typelib)("-- Interface: (%p)->(%p)\n",ppvObject,*ppvObject);
|
||||
return S_OK;
|
||||
}
|
||||
TRACE(typelib,"-- Interface: E_NOINTERFACE\n");
|
||||
TRACE_(typelib)("-- Interface: E_NOINTERFACE\n");
|
||||
return E_NOINTERFACE;
|
||||
}
|
||||
|
||||
|
@ -1619,7 +1619,7 @@ static HRESULT WINAPI ITypeInfo_fnQueryInterface( LPTYPEINFO iface, REFIID riid,
|
|||
static ULONG WINAPI ITypeInfo_fnAddRef( LPTYPEINFO iface)
|
||||
{
|
||||
ICOM_THIS( TLBTypeInfo, iface);
|
||||
TRACE(typelib,"(%p)->ref is %u\n",This, This->ref);
|
||||
TRACE_(typelib)("(%p)->ref is %u\n",This, This->ref);
|
||||
(This->pTypeLib->ref)++;
|
||||
return ++(This->ref);
|
||||
}
|
||||
|
@ -1629,7 +1629,7 @@ static ULONG WINAPI ITypeInfo_fnAddRef( LPTYPEINFO iface)
|
|||
static ULONG WINAPI ITypeInfo_fnRelease( LPTYPEINFO iface)
|
||||
{
|
||||
ICOM_THIS( TLBTypeInfo, iface);
|
||||
FIXME(typelib,"(%p)->ref is %u: stub\n",This, This->ref);
|
||||
FIXME_(typelib)("(%p)->ref is %u: stub\n",This, This->ref);
|
||||
(This->ref)--;
|
||||
(This->pTypeLib->ref)--;
|
||||
return S_OK;
|
||||
|
@ -1645,7 +1645,7 @@ static HRESULT WINAPI ITypeInfo_fnGetTypeAttr( LPTYPEINFO iface,
|
|||
LPTYPEATTR *ppTypeAttr)
|
||||
{
|
||||
ICOM_THIS( TLBTypeInfo, iface);
|
||||
TRACE( typelib,"(%p)\n",This);
|
||||
TRACE_(typelib)("(%p)\n",This);
|
||||
/* FIXME: must do a copy here */
|
||||
*ppTypeAttr=&This->TypeAttr;
|
||||
return S_OK;
|
||||
|
@ -1661,7 +1661,7 @@ static HRESULT WINAPI ITypeInfo_fnGetTypeComp( LPTYPEINFO iface,
|
|||
ITypeComp * *ppTComp)
|
||||
{
|
||||
ICOM_THIS( TLBTypeInfo, iface);
|
||||
FIXME( typelib,"(%p) stub!\n", This);
|
||||
FIXME_(typelib)("(%p) stub!\n", This);
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
@ -1677,7 +1677,7 @@ static HRESULT WINAPI ITypeInfo_fnGetFuncDesc( LPTYPEINFO iface, UINT index,
|
|||
ICOM_THIS( TLBTypeInfo, iface);
|
||||
int i;
|
||||
TLBFuncDesc * pFDesc;
|
||||
TRACE( typelib,"(%p) index %d\n", This, index);
|
||||
TRACE_(typelib)("(%p) index %d\n", This, index);
|
||||
for(i=0, pFDesc=This->funclist; i!=index && pFDesc; i++, pFDesc=pFDesc->next)
|
||||
;
|
||||
if(pFDesc){
|
||||
|
@ -1699,7 +1699,7 @@ static HRESULT WINAPI ITypeInfo_fnGetVarDesc( LPTYPEINFO iface, UINT index,
|
|||
ICOM_THIS( TLBTypeInfo, iface);
|
||||
int i;
|
||||
TLBVarDesc * pVDesc;
|
||||
TRACE( typelib,"(%p) index %d\n", This, index);
|
||||
TRACE_(typelib)("(%p) index %d\n", This, index);
|
||||
for(i=0, pVDesc=This->varlist; i!=index && pVDesc; i++, pVDesc=pVDesc->next)
|
||||
;
|
||||
if(pVDesc){
|
||||
|
@ -1723,7 +1723,7 @@ static HRESULT WINAPI ITypeInfo_fnGetNames( LPTYPEINFO iface, MEMBERID memid,
|
|||
TLBFuncDesc * pFDesc;
|
||||
TLBVarDesc * pVDesc;
|
||||
int i;
|
||||
TRACE( typelib,"(%p) memid=0x%08lx Maxname=%d\n", This, memid,
|
||||
TRACE_(typelib)("(%p) memid=0x%08lx Maxname=%d\n", This, memid,
|
||||
cMaxNames);
|
||||
for(pFDesc=This->funclist; pFDesc->funcdesc.memid != memid && pFDesc;
|
||||
pFDesc=pFDesc->next)
|
||||
|
@ -1758,9 +1758,9 @@ static HRESULT WINAPI ITypeInfo_fnGetNames( LPTYPEINFO iface, MEMBERID memid,
|
|||
pTInfo->lpvtbl->fnRelease(pTInfo);
|
||||
return result;
|
||||
}
|
||||
WARN( typelib,"Could not search inherited interface!\n");
|
||||
WARN_(typelib)("Could not search inherited interface!\n");
|
||||
} else
|
||||
WARN( typelib,"no names found\n");
|
||||
WARN_(typelib)("no names found\n");
|
||||
*pcNames=0;
|
||||
return TYPE_E_ELEMENTNOTFOUND;
|
||||
}
|
||||
|
@ -1783,7 +1783,7 @@ static HRESULT WINAPI ITypeInfo_fnGetRefTypeOfImplType( LPTYPEINFO iface,
|
|||
ICOM_THIS( TLBTypeInfo, iface);
|
||||
int(i);
|
||||
TLBRefType *pIref;
|
||||
TRACE( typelib,"(%p) index %d\n", This, index);
|
||||
TRACE_(typelib)("(%p) index %d\n", This, index);
|
||||
for(i=0, pIref=This->impltypelist; i<index && pIref;
|
||||
i++, pIref=pIref->next)
|
||||
;
|
||||
|
@ -1805,7 +1805,7 @@ static HRESULT WINAPI ITypeInfo_fnGetImplTypeFlags( LPTYPEINFO iface,
|
|||
ICOM_THIS( TLBTypeInfo, iface);
|
||||
int(i);
|
||||
TLBRefType *pIref;
|
||||
TRACE( typelib,"(%p) index %d\n", This, index);
|
||||
TRACE_(typelib)("(%p) index %d\n", This, index);
|
||||
for(i=0, pIref=This->impltypelist; i<index && pIref; i++, pIref=pIref->next)
|
||||
;
|
||||
if(i==index && pIref){
|
||||
|
@ -1828,7 +1828,7 @@ static HRESULT WINAPI ITypeInfo_fnGetIDsOfNames( LPTYPEINFO iface,
|
|||
TLBVarDesc * pVDesc;
|
||||
HRESULT ret=S_OK;
|
||||
PCHAR aszName= HEAP_strdupWtoA( GetProcessHeap(), 0, *rgszNames);
|
||||
TRACE( typelib,"(%p) Name %s cNames %d\n", This, debugstr_a(aszName),
|
||||
TRACE_(typelib)("(%p) Name %s cNames %d\n", This, debugstr_a(aszName),
|
||||
cNames);
|
||||
for(pFDesc=This->funclist; pFDesc; pFDesc=pFDesc->next) {
|
||||
int i, j;
|
||||
|
@ -1869,9 +1869,9 @@ static HRESULT WINAPI ITypeInfo_fnGetIDsOfNames( LPTYPEINFO iface,
|
|||
pTInfo->lpvtbl->fnRelease(pTInfo);
|
||||
return ret;
|
||||
}
|
||||
WARN( typelib,"Could not search inherited interface!\n");
|
||||
WARN_(typelib)("Could not search inherited interface!\n");
|
||||
} else
|
||||
WARN( typelib,"no names found\n");
|
||||
WARN_(typelib)("no names found\n");
|
||||
return DISP_E_UNKNOWNNAME;
|
||||
}
|
||||
|
||||
|
@ -1885,7 +1885,7 @@ static HRESULT WINAPI ITypeInfo_fnInvoke( LPTYPEINFO iface, VOID *pIUnk,
|
|||
VARIANT *pVarResult, EXCEPINFO *pExcepInfo, UINT *pArgErr)
|
||||
{
|
||||
ICOM_THIS( TLBTypeInfo, iface);
|
||||
FIXME( typelib,"(%p) stub!", This);
|
||||
FIXME_(typelib)("(%p) stub!", This);
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
@ -1901,7 +1901,7 @@ static HRESULT WINAPI ITypeInfo_fnGetDocumentation( LPTYPEINFO iface,
|
|||
ICOM_THIS( TLBTypeInfo, iface);
|
||||
TLBFuncDesc * pFDesc;
|
||||
TLBVarDesc * pVDesc;
|
||||
TRACE( typelib, "(%p) memid %ld Name(%p) DocString(%p)"
|
||||
TRACE_(typelib)("(%p) memid %ld Name(%p) DocString(%p)"
|
||||
" HelpContext(%p) HelpFile(%p)\n",
|
||||
This, memid, pBstrName, pBstrDocString, pdwHelpContext, pBstrHelpFile);
|
||||
if(memid==MEMBERID_NIL){ /* documentation for the typeinfo */
|
||||
|
@ -1937,7 +1937,7 @@ static HRESULT WINAPI ITypeInfo_fnGetDllEntry( LPTYPEINFO iface, MEMBERID memid,
|
|||
WORD *pwOrdinal)
|
||||
{
|
||||
ICOM_THIS( TLBTypeInfo, iface);
|
||||
FIXME( typelib,"(%p) stub!\n", This);
|
||||
FIXME_(typelib)("(%p) stub!\n", This);
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
|
@ -1991,7 +1991,7 @@ static HRESULT WINAPI ITypeInfo_fnGetRefTypeInfo( LPTYPEINFO iface,
|
|||
}
|
||||
}
|
||||
}
|
||||
TRACE( typelib,"(%p) hreftype 0x%04lx loaded %s (%p)\n", This, hRefType,
|
||||
TRACE_(typelib)("(%p) hreftype 0x%04lx loaded %s (%p)\n", This, hRefType,
|
||||
SUCCEEDED(result)? "SUCCESS":"FAILURE", *ppTInfo);
|
||||
return result;
|
||||
}
|
||||
|
@ -2005,7 +2005,7 @@ static HRESULT WINAPI ITypeInfo_fnAddressOfMember( LPTYPEINFO iface,
|
|||
MEMBERID memid, INVOKEKIND invKind, PVOID *ppv)
|
||||
{
|
||||
ICOM_THIS( TLBTypeInfo, iface);
|
||||
FIXME( typelib,"(%p) stub!\n", This);
|
||||
FIXME_(typelib)("(%p) stub!\n", This);
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
@ -2018,7 +2018,7 @@ static HRESULT WINAPI ITypeInfo_fnCreateInstance( LPTYPEINFO iface,
|
|||
IUnknown *pUnk, REFIID riid, VOID **ppvObj)
|
||||
{
|
||||
ICOM_THIS( TLBTypeInfo, iface);
|
||||
FIXME( typelib,"(%p) stub!\n", This);
|
||||
FIXME_(typelib)("(%p) stub!\n", This);
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
@ -2030,7 +2030,7 @@ static HRESULT WINAPI ITypeInfo_fnGetMops( LPTYPEINFO iface, MEMBERID memid,
|
|||
BSTR *pBstrMops)
|
||||
{
|
||||
ICOM_THIS( TLBTypeInfo, iface);
|
||||
FIXME( typelib,"(%p) stub!\n", This);
|
||||
FIXME_(typelib)("(%p) stub!\n", This);
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
@ -2046,7 +2046,7 @@ static HRESULT WINAPI ITypeInfo_fnGetContainingTypeLib( LPTYPEINFO iface,
|
|||
*ppTLib=(LPTYPELIB )(This->pTypeLib);
|
||||
*pIndex=This->index;
|
||||
(*ppTLib)->lpvtbl->fnAddRef(*ppTLib);
|
||||
TRACE( typelib,"(%p) returns (%p) index %d!\n", This, *ppTLib, *pIndex);
|
||||
TRACE_(typelib)("(%p) returns (%p) index %d!\n", This, *ppTLib, *pIndex);
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
@ -2059,7 +2059,7 @@ static HRESULT WINAPI ITypeInfo_fnReleaseTypeAttr( LPTYPEINFO iface,
|
|||
TYPEATTR* pTypeAttr)
|
||||
{
|
||||
ICOM_THIS( TLBTypeInfo, iface);
|
||||
TRACE( typelib,"(%p)->(%p)\n", This, pTypeAttr);
|
||||
TRACE_(typelib)("(%p)->(%p)\n", This, pTypeAttr);
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
@ -2071,7 +2071,7 @@ static HRESULT WINAPI ITypeInfo_fnReleaseFuncDesc( LPTYPEINFO iface,
|
|||
FUNCDESC *pFuncDesc)
|
||||
{
|
||||
ICOM_THIS( TLBTypeInfo, iface);
|
||||
TRACE( typelib,"(%p)->(%p)\n", This, pFuncDesc);
|
||||
TRACE_(typelib)("(%p)->(%p)\n", This, pFuncDesc);
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
@ -2083,7 +2083,7 @@ static HRESULT WINAPI ITypeInfo_fnReleaseVarDesc( LPTYPEINFO iface,
|
|||
VARDESC *pVarDesc)
|
||||
{
|
||||
ICOM_THIS( TLBTypeInfo, iface);
|
||||
TRACE( typelib,"(%p)->(%p)\n", This, pVarDesc);
|
||||
TRACE_(typelib)("(%p)->(%p)\n", This, pVarDesc);
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
@ -2097,7 +2097,7 @@ static HRESULT WINAPI ITypeInfo2_fnGetTypeKind( ITypeInfo * iface,
|
|||
{
|
||||
ICOM_THIS( TLBTypeInfo, iface);
|
||||
*pTypeKind=This->TypeAttr.typekind;
|
||||
TRACE( typelib,"(%p) type 0x%0x\n", This,*pTypeKind);
|
||||
TRACE_(typelib)("(%p) type 0x%0x\n", This,*pTypeKind);
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
@ -2113,7 +2113,7 @@ static HRESULT WINAPI ITypeInfo2_fnGetTypeFlags( ITypeInfo * iface,
|
|||
{
|
||||
ICOM_THIS( TLBTypeInfo, iface);
|
||||
*pTypeFlags=This->TypeAttr.wTypeFlags;
|
||||
TRACE( typelib,"(%p) flags 0x%04x\n", This,*pTypeFlags);
|
||||
TRACE_(typelib)("(%p) flags 0x%04x\n", This,*pTypeFlags);
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
@ -2139,7 +2139,7 @@ static HRESULT WINAPI ITypeInfo2_fnGetFuncIndexOfMemId( ITypeInfo * iface,
|
|||
*pFuncIndex=0;
|
||||
result=E_INVALIDARG;
|
||||
}
|
||||
TRACE( typelib,"(%p) memid 0x%08lx invKind 0x%04x -> %s\n", This,
|
||||
TRACE_(typelib)("(%p) memid 0x%08lx invKind 0x%04x -> %s\n", This,
|
||||
memid, invKind, SUCCEEDED(result)? "SUCCES":"FAILED");
|
||||
return result;
|
||||
}
|
||||
|
@ -2167,7 +2167,7 @@ static HRESULT WINAPI ITypeInfo2_fnGetVarIndexOfMemId( ITypeInfo * iface,
|
|||
*pVarIndex=0;
|
||||
result=E_INVALIDARG;
|
||||
}
|
||||
TRACE( typelib,"(%p) memid 0x%08lx -> %s\n", This,
|
||||
TRACE_(typelib)("(%p) memid 0x%08lx -> %s\n", This,
|
||||
memid, SUCCEEDED(result)? "SUCCES":"FAILED");
|
||||
return result;
|
||||
}
|
||||
|
@ -2186,7 +2186,7 @@ static HRESULT WINAPI ITypeInfo2_fnGetCustData( ITypeInfo * iface,
|
|||
if(TRACE_ON(typelib)){
|
||||
char xriid[50];
|
||||
WINE_StringFromCLSID((LPCLSID)guid,xriid);
|
||||
TRACE(typelib,"(%p) guid %s %s found!x)\n", This, xriid,
|
||||
TRACE_(typelib)("(%p) guid %s %s found!x)\n", This, xriid,
|
||||
pCData? "" : "NOT");
|
||||
}
|
||||
if(pCData){
|
||||
|
@ -2217,7 +2217,7 @@ static HRESULT WINAPI ITypeInfo2_fnGetFuncCustData( ITypeInfo * iface,
|
|||
if(TRACE_ON(typelib)){
|
||||
char xriid[50];
|
||||
WINE_StringFromCLSID((LPCLSID)guid,xriid);
|
||||
TRACE(typelib,"(%p) guid %s %s found!x)\n",This,xriid,
|
||||
TRACE_(typelib)("(%p) guid %s %s found!x)\n",This,xriid,
|
||||
pCData? "" : "NOT");
|
||||
}
|
||||
if(pCData){
|
||||
|
@ -2249,7 +2249,7 @@ static HRESULT WINAPI ITypeInfo2_fnGetParamCustData( ITypeInfo * iface,
|
|||
if(TRACE_ON(typelib)){
|
||||
char xriid[50];
|
||||
WINE_StringFromCLSID((LPCLSID)guid,xriid);
|
||||
TRACE(typelib,"(%p) guid %s %s found!x)\n",This,xriid,
|
||||
TRACE_(typelib)("(%p) guid %s %s found!x)\n",This,xriid,
|
||||
pCData? "" : "NOT");
|
||||
}
|
||||
if(pCData){
|
||||
|
@ -2280,7 +2280,7 @@ static HRESULT WINAPI ITypeInfo2_fnGetVarCustData( ITypeInfo * iface,
|
|||
if(TRACE_ON(typelib)){
|
||||
char xriid[50];
|
||||
WINE_StringFromCLSID((LPCLSID)guid,xriid);
|
||||
TRACE(typelib,"(%p) guid %s %s found!x)\n",This,xriid,
|
||||
TRACE_(typelib)("(%p) guid %s %s found!x)\n",This,xriid,
|
||||
pCData? "" : "NOT");
|
||||
}
|
||||
if(pCData){
|
||||
|
@ -2311,7 +2311,7 @@ static HRESULT WINAPI ITypeInfo2_fnGetImplTypeCustData( ITypeInfo * iface,
|
|||
if(TRACE_ON(typelib)){
|
||||
char xriid[50];
|
||||
WINE_StringFromCLSID((LPCLSID)guid,xriid);
|
||||
TRACE(typelib,"(%p) guid %s %s found!x)\n",This,xriid,
|
||||
TRACE_(typelib)("(%p) guid %s %s found!x)\n",This,xriid,
|
||||
pCData? "" : "NOT");
|
||||
}
|
||||
if(pCData){
|
||||
|
@ -2336,7 +2336,7 @@ static HRESULT WINAPI ITypeInfo2_fnGetDocumentation2( ITypeInfo * iface,
|
|||
ICOM_THIS( TLBTypeInfo, iface);
|
||||
TLBFuncDesc * pFDesc;
|
||||
TLBVarDesc * pVDesc;
|
||||
TRACE( typelib, "(%p) memid %ld lcid(0x%lx) HelpString(%p) "
|
||||
TRACE_(typelib)("(%p) memid %ld lcid(0x%lx) HelpString(%p) "
|
||||
"HelpStringContext(%p) HelpStringDll(%p)\n",
|
||||
This, memid, lcid, pbstrHelpString, pdwHelpStringContext,
|
||||
pbstrHelpStringDll );
|
||||
|
@ -2391,7 +2391,7 @@ static HRESULT WINAPI ITypeInfo2_fnGetAllCustData( ITypeInfo * iface,
|
|||
ICOM_THIS( TLBTypeInfo, iface);
|
||||
TLBCustData *pCData;
|
||||
int i;
|
||||
TRACE( typelib,"(%p) returning %d items\n", This, This->ctCustData);
|
||||
TRACE_(typelib)("(%p) returning %d items\n", This, This->ctCustData);
|
||||
pCustData->prgCustData = TLB_Alloc(This->ctCustData * sizeof(CUSTDATAITEM));
|
||||
if(pCustData->prgCustData ){
|
||||
pCustData->cCustData=This->ctCustData;
|
||||
|
@ -2400,7 +2400,7 @@ static HRESULT WINAPI ITypeInfo2_fnGetAllCustData( ITypeInfo * iface,
|
|||
VariantCopy(& pCustData->prgCustData[i].varValue, & pCData->data);
|
||||
}
|
||||
}else{
|
||||
ERR( typelib," OUT OF MEMORY! \n");
|
||||
ERR_(typelib)(" OUT OF MEMORY! \n");
|
||||
return E_OUTOFMEMORY;
|
||||
}
|
||||
return S_OK;
|
||||
|
@ -2418,7 +2418,7 @@ static HRESULT WINAPI ITypeInfo2_fnGetAllFuncCustData( ITypeInfo * iface,
|
|||
TLBCustData *pCData;
|
||||
TLBFuncDesc * pFDesc;
|
||||
int i;
|
||||
TRACE( typelib,"(%p) index %d\n", This, index);
|
||||
TRACE_(typelib)("(%p) index %d\n", This, index);
|
||||
for(i=0, pFDesc=This->funclist; i!=index && pFDesc; i++,
|
||||
pFDesc=pFDesc->next)
|
||||
;
|
||||
|
@ -2434,7 +2434,7 @@ static HRESULT WINAPI ITypeInfo2_fnGetAllFuncCustData( ITypeInfo * iface,
|
|||
& pCData->data);
|
||||
}
|
||||
}else{
|
||||
ERR( typelib," OUT OF MEMORY! \n");
|
||||
ERR_(typelib)(" OUT OF MEMORY! \n");
|
||||
return E_OUTOFMEMORY;
|
||||
}
|
||||
return S_OK;
|
||||
|
@ -2454,7 +2454,7 @@ static HRESULT WINAPI ITypeInfo2_fnGetAllParamCustData( ITypeInfo * iface,
|
|||
TLBCustData *pCData=NULL;
|
||||
TLBFuncDesc * pFDesc;
|
||||
int i;
|
||||
TRACE( typelib,"(%p) index %d\n", This, indexFunc);
|
||||
TRACE_(typelib)("(%p) index %d\n", This, indexFunc);
|
||||
for(i=0, pFDesc=This->funclist; i!=indexFunc && pFDesc; i++,
|
||||
pFDesc=pFDesc->next)
|
||||
;
|
||||
|
@ -2471,7 +2471,7 @@ static HRESULT WINAPI ITypeInfo2_fnGetAllParamCustData( ITypeInfo * iface,
|
|||
& pCData->data);
|
||||
}
|
||||
}else{
|
||||
ERR( typelib," OUT OF MEMORY! \n");
|
||||
ERR_(typelib)(" OUT OF MEMORY! \n");
|
||||
return E_OUTOFMEMORY;
|
||||
}
|
||||
return S_OK;
|
||||
|
@ -2491,7 +2491,7 @@ static HRESULT WINAPI ITypeInfo2_fnGetAllVarCustData( ITypeInfo * iface,
|
|||
TLBCustData *pCData;
|
||||
TLBVarDesc * pVDesc;
|
||||
int i;
|
||||
TRACE( typelib,"(%p) index %d\n", This, index);
|
||||
TRACE_(typelib)("(%p) index %d\n", This, index);
|
||||
for(i=0, pVDesc=This->varlist; i!=index && pVDesc; i++,
|
||||
pVDesc=pVDesc->next)
|
||||
;
|
||||
|
@ -2507,7 +2507,7 @@ static HRESULT WINAPI ITypeInfo2_fnGetAllVarCustData( ITypeInfo * iface,
|
|||
& pCData->data);
|
||||
}
|
||||
}else{
|
||||
ERR( typelib," OUT OF MEMORY! \n");
|
||||
ERR_(typelib)(" OUT OF MEMORY! \n");
|
||||
return E_OUTOFMEMORY;
|
||||
}
|
||||
return S_OK;
|
||||
|
@ -2527,7 +2527,7 @@ static HRESULT WINAPI ITypeInfo2_fnGetAllImplTypeCustData( ITypeInfo * iface,
|
|||
TLBCustData *pCData;
|
||||
TLBRefType * pRDesc;
|
||||
int i;
|
||||
TRACE( typelib,"(%p) index %d\n", This, index);
|
||||
TRACE_(typelib)("(%p) index %d\n", This, index);
|
||||
for(i=0, pRDesc=This->impltypelist; i!=index && pRDesc; i++,
|
||||
pRDesc=pRDesc->next)
|
||||
;
|
||||
|
@ -2543,7 +2543,7 @@ static HRESULT WINAPI ITypeInfo2_fnGetAllImplTypeCustData( ITypeInfo * iface,
|
|||
& pCData->data);
|
||||
}
|
||||
}else{
|
||||
ERR( typelib," OUT OF MEMORY! \n");
|
||||
ERR_(typelib)(" OUT OF MEMORY! \n");
|
||||
return E_OUTOFMEMORY;
|
||||
}
|
||||
return S_OK;
|
||||
|
|
260
ole/variant.c
260
ole/variant.c
File diff suppressed because it is too large
Load Diff
|
@ -10,7 +10,7 @@
|
|||
#include "module.h"
|
||||
#include "win.h"
|
||||
#include "winuser.h"
|
||||
#include "debug.h"
|
||||
#include "debugtools.h"
|
||||
|
||||
DEFAULT_DEBUG_CHANNEL(caret)
|
||||
|
||||
|
@ -82,7 +82,7 @@ static void CARET_DisplayCaret( DISPLAY_CARET status )
|
|||
*/
|
||||
static VOID CALLBACK CARET_Callback( HWND hwnd, UINT msg, UINT id, DWORD ctime)
|
||||
{
|
||||
TRACE(caret,"hwnd=%04x, timerid=%d, caret=%d\n",
|
||||
TRACE("hwnd=%04x, timerid=%d, caret=%d\n",
|
||||
hwnd, id, Caret.on);
|
||||
CARET_DisplayCaret(CARET_TOGGLE);
|
||||
}
|
||||
|
@ -141,7 +141,7 @@ void WINAPI CreateCaret16( HWND16 hwnd, HBITMAP16 bitmap,
|
|||
BOOL WINAPI CreateCaret( HWND hwnd, HBITMAP bitmap,
|
||||
INT width, INT height )
|
||||
{
|
||||
TRACE(caret,"hwnd=%04x\n", hwnd);
|
||||
TRACE("hwnd=%04x\n", hwnd);
|
||||
|
||||
if (!hwnd) return FALSE;
|
||||
|
||||
|
@ -193,7 +193,7 @@ BOOL WINAPI DestroyCaret(void)
|
|||
{
|
||||
if (!Caret.hwnd) return FALSE;
|
||||
|
||||
TRACE(caret,"hwnd=%04x, timerid=%d\n",
|
||||
TRACE("hwnd=%04x, timerid=%d\n",
|
||||
Caret.hwnd, Caret.timerid);
|
||||
|
||||
CARET_KillTimer();
|
||||
|
@ -221,7 +221,7 @@ BOOL WINAPI SetCaretPos( INT x, INT y)
|
|||
if (!Caret.hwnd) return FALSE;
|
||||
if ((x == Caret.x) && (y == Caret.y)) return TRUE;
|
||||
|
||||
TRACE(caret,"x=%d, y=%d\n", x, y);
|
||||
TRACE("x=%d, y=%d\n", x, y);
|
||||
|
||||
CARET_KillTimer();
|
||||
CARET_DisplayCaret(CARET_OFF);
|
||||
|
@ -253,7 +253,7 @@ BOOL WINAPI HideCaret( HWND hwnd )
|
|||
if (!Caret.hwnd) return FALSE;
|
||||
if (hwnd && (Caret.hwnd != hwnd)) return FALSE;
|
||||
|
||||
TRACE(caret,"hwnd=%04x, hidden=%d\n",
|
||||
TRACE("hwnd=%04x, hidden=%d\n",
|
||||
hwnd, Caret.hidden);
|
||||
|
||||
CARET_KillTimer();
|
||||
|
@ -280,7 +280,7 @@ BOOL WINAPI ShowCaret( HWND hwnd )
|
|||
if (!Caret.hwnd) return FALSE;
|
||||
if (hwnd && (Caret.hwnd != hwnd)) return FALSE;
|
||||
|
||||
TRACE(caret,"hwnd=%04x, hidden=%d\n",
|
||||
TRACE("hwnd=%04x, hidden=%d\n",
|
||||
hwnd, Caret.hidden);
|
||||
|
||||
if (Caret.hidden)
|
||||
|
@ -311,7 +311,7 @@ BOOL WINAPI SetCaretBlinkTime( UINT msecs )
|
|||
{
|
||||
if (!Caret.hwnd) return FALSE;
|
||||
|
||||
TRACE(caret,"hwnd=%04x, msecs=%d\n",
|
||||
TRACE("hwnd=%04x, msecs=%d\n",
|
||||
Caret.hwnd, msecs);
|
||||
|
||||
Caret.timeout = msecs;
|
||||
|
@ -345,7 +345,7 @@ VOID WINAPI GetCaretPos16( LPPOINT16 pt )
|
|||
{
|
||||
if (!Caret.hwnd || !pt) return;
|
||||
|
||||
TRACE(caret,"hwnd=%04x, pt=%p, x=%d, y=%d\n",
|
||||
TRACE("hwnd=%04x, pt=%p, x=%d, y=%d\n",
|
||||
Caret.hwnd, pt, Caret.x, Caret.y);
|
||||
pt->x = (INT16)Caret.x;
|
||||
pt->y = (INT16)Caret.y;
|
||||
|
|
112
windows/class.c
112
windows/class.c
|
@ -22,7 +22,7 @@
|
|||
#include "ldt.h"
|
||||
#include "toolhelp.h"
|
||||
#include "winproc.h"
|
||||
#include "debug.h"
|
||||
#include "debugtools.h"
|
||||
#include "winerror.h"
|
||||
#include "wine/winuser16.h"
|
||||
|
||||
|
@ -44,14 +44,14 @@ void CLASS_DumpClass( CLASS *ptr )
|
|||
|
||||
if (ptr->magic != CLASS_MAGIC)
|
||||
{
|
||||
DUMP("%p is not a class\n", ptr );
|
||||
DPRINTF("%p is not a class\n", ptr );
|
||||
return;
|
||||
}
|
||||
|
||||
GlobalGetAtomNameA( ptr->atomName, className, sizeof(className) );
|
||||
|
||||
DUMP( "Class %p:\n", ptr );
|
||||
DUMP( "next=%p name=%04x '%s' style=%08x wndProc=%08x\n"
|
||||
DPRINTF( "Class %p:\n", ptr );
|
||||
DPRINTF( "next=%p name=%04x '%s' style=%08x wndProc=%08x\n"
|
||||
"inst=%04x dce=%08x icon=%04x cursor=%04x bkgnd=%04x\n"
|
||||
"clsExtra=%d winExtra=%d #windows=%d\n",
|
||||
ptr->next, ptr->atomName, className, ptr->style,
|
||||
|
@ -60,12 +60,12 @@ void CLASS_DumpClass( CLASS *ptr )
|
|||
ptr->cbClsExtra, ptr->cbWndExtra, ptr->cWindows );
|
||||
if (ptr->cbClsExtra)
|
||||
{
|
||||
DUMP( "extra bytes:" );
|
||||
DPRINTF( "extra bytes:" );
|
||||
for (i = 0; i < ptr->cbClsExtra; i++)
|
||||
DUMP( " %02x", *((BYTE *)ptr->wExtra+i) );
|
||||
DUMP( "\n" );
|
||||
DPRINTF( " %02x", *((BYTE *)ptr->wExtra+i) );
|
||||
DPRINTF( "\n" );
|
||||
}
|
||||
DUMP( "\n" );
|
||||
DPRINTF( "\n" );
|
||||
}
|
||||
|
||||
|
||||
|
@ -79,14 +79,14 @@ void CLASS_WalkClasses(void)
|
|||
CLASS *ptr;
|
||||
char className[MAX_CLASSNAME+1];
|
||||
|
||||
DUMP( " Class Name Style WndProc\n" );
|
||||
DPRINTF( " Class Name Style WndProc\n" );
|
||||
for (ptr = firstClass; ptr; ptr = ptr->next)
|
||||
{
|
||||
GlobalGetAtomNameA( ptr->atomName, className, sizeof(className) );
|
||||
DUMP( "%08x %-20.20s %08x %08x\n", (UINT)ptr, className,
|
||||
DPRINTF( "%08x %-20.20s %08x %08x\n", (UINT)ptr, className,
|
||||
ptr->style, (UINT)ptr->winproc );
|
||||
}
|
||||
DUMP( "\n" );
|
||||
DPRINTF( "\n" );
|
||||
}
|
||||
|
||||
|
||||
|
@ -237,7 +237,7 @@ static void CLASS_SetClassNameW( CLASS *classPtr, LPCWSTR name )
|
|||
static BOOL CLASS_FreeClass( CLASS *classPtr )
|
||||
{
|
||||
CLASS **ppClass;
|
||||
TRACE(class,"%p \n", classPtr);
|
||||
TRACE("%p \n", classPtr);
|
||||
|
||||
/* Check if we can remove this class */
|
||||
|
||||
|
@ -249,7 +249,7 @@ static BOOL CLASS_FreeClass( CLASS *classPtr )
|
|||
if (*ppClass == classPtr) break;
|
||||
if (!*ppClass)
|
||||
{
|
||||
ERR( class, "Class list corrupted\n" );
|
||||
ERR("Class list corrupted\n" );
|
||||
return FALSE;
|
||||
}
|
||||
*ppClass = classPtr->next;
|
||||
|
@ -274,7 +274,7 @@ void CLASS_FreeModuleClasses( HMODULE16 hModule )
|
|||
{
|
||||
CLASS *ptr, *next;
|
||||
|
||||
TRACE(class,"0x%08x \n", hModule);
|
||||
TRACE("0x%08x \n", hModule);
|
||||
|
||||
for (ptr = firstClass; ptr; ptr = next)
|
||||
{
|
||||
|
@ -297,7 +297,7 @@ void CLASS_FreeModuleClasses( HMODULE16 hModule )
|
|||
CLASS *CLASS_FindClassByAtom( ATOM atom, HINSTANCE hinstance )
|
||||
{ CLASS * class, *tclass=0;
|
||||
|
||||
TRACE(class,"0x%08x 0x%08x\n", atom, hinstance);
|
||||
TRACE("0x%08x 0x%08x\n", atom, hinstance);
|
||||
|
||||
/* First search task-specific classes */
|
||||
|
||||
|
@ -308,7 +308,7 @@ CLASS *CLASS_FindClassByAtom( ATOM atom, HINSTANCE hinstance )
|
|||
{
|
||||
if (hinstance==class->hInstance || hinstance==0xffff )
|
||||
{
|
||||
TRACE(class,"-- found local %p\n", class);
|
||||
TRACE("-- found local %p\n", class);
|
||||
return class;
|
||||
}
|
||||
if (class->hInstance==0) tclass = class;
|
||||
|
@ -322,7 +322,7 @@ CLASS *CLASS_FindClassByAtom( ATOM atom, HINSTANCE hinstance )
|
|||
if (!(class->style & CS_GLOBALCLASS)) continue;
|
||||
if (class->atomName == atom)
|
||||
{
|
||||
TRACE(class,"-- found global %p\n", class);
|
||||
TRACE("-- found global %p\n", class);
|
||||
return class;
|
||||
}
|
||||
}
|
||||
|
@ -330,11 +330,11 @@ CLASS *CLASS_FindClassByAtom( ATOM atom, HINSTANCE hinstance )
|
|||
/* Then check if there was a local class with hInst=0*/
|
||||
if ( tclass )
|
||||
{
|
||||
WARN(class,"-- found local Class registred with hInst=0\n");
|
||||
WARN("-- found local Class registred with hInst=0\n");
|
||||
return tclass;
|
||||
}
|
||||
|
||||
TRACE(class,"-- not found\n");
|
||||
TRACE("-- not found\n");
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@ -351,7 +351,7 @@ static CLASS *CLASS_RegisterClass( ATOM atom, HINSTANCE hInstance,
|
|||
{
|
||||
CLASS *classPtr;
|
||||
|
||||
TRACE(class,"atom=0x%x hinst=0x%x style=0x%lx clExtr=0x%x winExtr=0x%x wndProc=0x%p ProcType=0x%x\n",
|
||||
TRACE("atom=0x%x hinst=0x%x style=0x%lx clExtr=0x%x winExtr=0x%x wndProc=0x%p ProcType=0x%x\n",
|
||||
atom, hInstance, style, classExtra, winExtra, wndProc, wndProcType);
|
||||
|
||||
/* Check if a class with this name already exists */
|
||||
|
@ -369,10 +369,10 @@ static CLASS *CLASS_RegisterClass( ATOM atom, HINSTANCE hInstance,
|
|||
|
||||
if (classExtra < 0) classExtra = 0;
|
||||
else if (classExtra > 40) /* Extra bytes are limited to 40 in Win32 */
|
||||
WARN(class, "Class extra bytes %d is > 40\n", classExtra);
|
||||
WARN("Class extra bytes %d is > 40\n", classExtra);
|
||||
if (winExtra < 0) winExtra = 0;
|
||||
else if (winExtra > 40) /* Extra bytes are limited to 40 in Win32 */
|
||||
WARN(class, "Win extra bytes %d is > 40\n", winExtra );
|
||||
WARN("Win extra bytes %d is > 40\n", winExtra );
|
||||
|
||||
/* Create the class */
|
||||
|
||||
|
@ -423,7 +423,7 @@ ATOM WINAPI RegisterClass16( const WNDCLASS16 *wc )
|
|||
return 0;
|
||||
}
|
||||
|
||||
TRACE(class, "atom=%04x wndproc=%08lx hinst=%04x "
|
||||
TRACE("atom=%04x wndproc=%08lx hinst=%04x "
|
||||
"bg=%04x style=%08x clsExt=%d winExt=%d class=%p name='%s'\n",
|
||||
atom, (DWORD)wc->lpfnWndProc, hInstance,
|
||||
wc->hbrBackground, wc->style, wc->cbClsExtra,
|
||||
|
@ -471,7 +471,7 @@ ATOM WINAPI RegisterClassA(
|
|||
return FALSE;
|
||||
}
|
||||
|
||||
TRACE(class, "atom=%04x wndproc=%08lx hinst=%04x bg=%04x style=%08x clsExt=%d winExt=%d class=%p name='%s'\n",
|
||||
TRACE("atom=%04x wndproc=%08lx hinst=%04x bg=%04x style=%08x clsExt=%d winExt=%d class=%p name='%s'\n",
|
||||
atom, (DWORD)wc->lpfnWndProc, wc->hInstance,
|
||||
wc->hbrBackground, wc->style, wc->cbClsExtra,
|
||||
wc->cbWndExtra, classPtr,
|
||||
|
@ -511,7 +511,7 @@ ATOM WINAPI RegisterClassW( const WNDCLASSW* wc )
|
|||
return 0;
|
||||
}
|
||||
|
||||
TRACE(class, "atom=%04x wndproc=%08lx hinst=%04x bg=%04x style=%08x clsExt=%d winExt=%d class=%p\n",
|
||||
TRACE("atom=%04x wndproc=%08lx hinst=%04x bg=%04x style=%08x clsExt=%d winExt=%d class=%p\n",
|
||||
atom, (DWORD)wc->lpfnWndProc, wc->hInstance,
|
||||
wc->hbrBackground, wc->style, wc->cbClsExtra,
|
||||
wc->cbWndExtra, classPtr );
|
||||
|
@ -545,7 +545,7 @@ ATOM WINAPI RegisterClassEx16( const WNDCLASSEX16 *wc )
|
|||
return 0;
|
||||
}
|
||||
|
||||
TRACE(class, "atom=%04x wndproc=%08lx hinst=%04x bg=%04x style=%08x clsExt=%d winExt=%d class=%p\n",
|
||||
TRACE("atom=%04x wndproc=%08lx hinst=%04x bg=%04x style=%08x clsExt=%d winExt=%d class=%p\n",
|
||||
atom, (DWORD)wc->lpfnWndProc, hInstance,
|
||||
wc->hbrBackground, wc->style, wc->cbClsExtra,
|
||||
wc->cbWndExtra, classPtr );
|
||||
|
@ -586,7 +586,7 @@ ATOM WINAPI RegisterClassExA( const WNDCLASSEXA* wc )
|
|||
return FALSE;
|
||||
}
|
||||
|
||||
TRACE(class, "atom=%04x wndproc=%08lx hinst=%04x bg=%04x style=%08x clsExt=%d winExt=%d class=%p\n",
|
||||
TRACE("atom=%04x wndproc=%08lx hinst=%04x bg=%04x style=%08x clsExt=%d winExt=%d class=%p\n",
|
||||
atom, (DWORD)wc->lpfnWndProc, wc->hInstance,
|
||||
wc->hbrBackground, wc->style, wc->cbClsExtra,
|
||||
wc->cbWndExtra, classPtr );
|
||||
|
@ -624,7 +624,7 @@ ATOM WINAPI RegisterClassExW( const WNDCLASSEXW* wc )
|
|||
return 0;
|
||||
}
|
||||
|
||||
TRACE(class, "atom=%04x wndproc=%08lx hinst=%04x bg=%04x style=%08x clsExt=%d winExt=%d class=%p\n",
|
||||
TRACE("atom=%04x wndproc=%08lx hinst=%04x bg=%04x style=%08x clsExt=%d winExt=%d class=%p\n",
|
||||
atom, (DWORD)wc->lpfnWndProc, wc->hInstance,
|
||||
wc->hbrBackground, wc->style, wc->cbClsExtra,
|
||||
wc->cbWndExtra, classPtr );
|
||||
|
@ -664,7 +664,7 @@ BOOL WINAPI UnregisterClassA( LPCSTR className, HINSTANCE hInstance )
|
|||
ATOM atom;
|
||||
BOOL ret;
|
||||
|
||||
TRACE(class,"%s %x\n",debugres_a(className), hInstance);
|
||||
TRACE("%s %x\n",debugres_a(className), hInstance);
|
||||
|
||||
if (!(atom = GlobalFindAtomA( className )))
|
||||
{
|
||||
|
@ -690,7 +690,7 @@ BOOL WINAPI UnregisterClassW( LPCWSTR className, HINSTANCE hInstance )
|
|||
ATOM atom;
|
||||
BOOL ret;
|
||||
|
||||
TRACE(class,"%s %x\n",debugres_w(className), hInstance);
|
||||
TRACE("%s %x\n",debugres_w(className), hInstance);
|
||||
|
||||
if (!(atom = GlobalFindAtomW( className )))
|
||||
{
|
||||
|
@ -725,7 +725,7 @@ WORD WINAPI GetClassWord( HWND hwnd, INT offset )
|
|||
WND * wndPtr;
|
||||
WORD retvalue = 0;
|
||||
|
||||
TRACE(class,"%x %x\n",hwnd, offset);
|
||||
TRACE("%x %x\n",hwnd, offset);
|
||||
|
||||
if (!(wndPtr = WIN_FindWndPtr( hwnd ))) return 0;
|
||||
if (offset >= 0)
|
||||
|
@ -755,7 +755,7 @@ WORD WINAPI GetClassWord( HWND hwnd, INT offset )
|
|||
retvalue = (WORD)GetClassLongA( hwnd, offset );
|
||||
}
|
||||
|
||||
WARN(class, "Invalid offset %d\n", offset);
|
||||
WARN("Invalid offset %d\n", offset);
|
||||
END:
|
||||
WIN_ReleaseWndPtr(wndPtr);
|
||||
return retvalue;
|
||||
|
@ -770,7 +770,7 @@ LONG WINAPI GetClassLong16( HWND16 hwnd, INT16 offset )
|
|||
WND *wndPtr;
|
||||
LONG ret;
|
||||
|
||||
TRACE(class,"%x %x\n",hwnd, offset);
|
||||
TRACE("%x %x\n",hwnd, offset);
|
||||
|
||||
switch( offset )
|
||||
{
|
||||
|
@ -796,7 +796,7 @@ LONG WINAPI GetClassLongA( HWND hwnd, INT offset )
|
|||
WND * wndPtr;
|
||||
LONG retvalue;
|
||||
|
||||
TRACE(class,"%x %x\n",hwnd, offset);
|
||||
TRACE("%x %x\n",hwnd, offset);
|
||||
|
||||
if (!(wndPtr = WIN_FindWndPtr( hwnd ))) return 0;
|
||||
if (offset >= 0)
|
||||
|
@ -832,7 +832,7 @@ LONG WINAPI GetClassLongA( HWND hwnd, INT offset )
|
|||
retvalue = GetClassWord( hwnd, offset );
|
||||
goto END;
|
||||
}
|
||||
WARN(class, "Invalid offset %d\n", offset);
|
||||
WARN("Invalid offset %d\n", offset);
|
||||
retvalue = 0;
|
||||
END:
|
||||
WIN_ReleaseWndPtr(wndPtr);
|
||||
|
@ -848,7 +848,7 @@ LONG WINAPI GetClassLongW( HWND hwnd, INT offset )
|
|||
WND * wndPtr;
|
||||
LONG retvalue;
|
||||
|
||||
TRACE(class,"%x %x\n",hwnd, offset);
|
||||
TRACE("%x %x\n",hwnd, offset);
|
||||
|
||||
switch(offset)
|
||||
{
|
||||
|
@ -886,7 +886,7 @@ WORD WINAPI SetClassWord( HWND hwnd, INT offset, WORD newval )
|
|||
WORD retval = 0;
|
||||
void *ptr;
|
||||
|
||||
TRACE(class,"%x %x %x\n",hwnd, offset, newval);
|
||||
TRACE("%x %x %x\n",hwnd, offset, newval);
|
||||
|
||||
if (!(wndPtr = WIN_FindWndPtr( hwnd ))) return 0;
|
||||
if (offset >= 0)
|
||||
|
@ -895,7 +895,7 @@ WORD WINAPI SetClassWord( HWND hwnd, INT offset, WORD newval )
|
|||
ptr = ((char *)wndPtr->class->wExtra) + offset;
|
||||
else
|
||||
{
|
||||
WARN( class, "Invalid offset %d\n", offset );
|
||||
WARN("Invalid offset %d\n", offset );
|
||||
WIN_ReleaseWndPtr(wndPtr);
|
||||
return 0;
|
||||
}
|
||||
|
@ -914,7 +914,7 @@ WORD WINAPI SetClassWord( HWND hwnd, INT offset, WORD newval )
|
|||
case GCW_HICONSM: ptr = &wndPtr->class->hIconSm; break;
|
||||
case GCW_ATOM: ptr = &wndPtr->class->atomName; break;
|
||||
default:
|
||||
WARN( class, "Invalid offset %d\n", offset);
|
||||
WARN("Invalid offset %d\n", offset);
|
||||
WIN_ReleaseWndPtr(wndPtr);
|
||||
return 0;
|
||||
}
|
||||
|
@ -928,7 +928,7 @@ WORD WINAPI SetClassWord( HWND hwnd, INT offset, WORD newval )
|
|||
if (offset == GCW_ATOM)
|
||||
{
|
||||
CLASS_SetClassNameA( wndPtr->class, NULL );
|
||||
FIXME(class,"GCW_ATOM changed for a class. Not updating className, so GetClassInfoEx may not return correct className!\n");
|
||||
FIXME("GCW_ATOM changed for a class. Not updating className, so GetClassInfoEx may not return correct className!\n");
|
||||
}
|
||||
WIN_ReleaseWndPtr(wndPtr);
|
||||
return retval;
|
||||
|
@ -943,7 +943,7 @@ LONG WINAPI SetClassLong16( HWND16 hwnd, INT16 offset, LONG newval )
|
|||
WND *wndPtr;
|
||||
LONG retval;
|
||||
|
||||
TRACE(class,"%x %x %lx\n",hwnd, offset, newval);
|
||||
TRACE("%x %x %lx\n",hwnd, offset, newval);
|
||||
|
||||
switch(offset)
|
||||
{
|
||||
|
@ -971,7 +971,7 @@ LONG WINAPI SetClassLongA( HWND hwnd, INT offset, LONG newval )
|
|||
LONG retval = 0;
|
||||
void *ptr;
|
||||
|
||||
TRACE(class,"%x %x %lx\n",hwnd, offset, newval);
|
||||
TRACE("%x %x %lx\n",hwnd, offset, newval);
|
||||
|
||||
if (!(wndPtr = WIN_FindWndPtr( hwnd ))) return 0;
|
||||
if (offset >= 0)
|
||||
|
@ -980,7 +980,7 @@ LONG WINAPI SetClassLongA( HWND hwnd, INT offset, LONG newval )
|
|||
ptr = ((char *)wndPtr->class->wExtra) + offset;
|
||||
else
|
||||
{
|
||||
WARN( class, "Invalid offset %d\n", offset );
|
||||
WARN("Invalid offset %d\n", offset );
|
||||
retval = 0;
|
||||
goto END;
|
||||
}
|
||||
|
@ -1008,7 +1008,7 @@ LONG WINAPI SetClassLongA( HWND hwnd, INT offset, LONG newval )
|
|||
case GCL_CBCLSEXTRA: ptr = &wndPtr->class->cbClsExtra; break;
|
||||
case GCL_HMODULE: ptr = &wndPtr->class->hInstance; break;
|
||||
default:
|
||||
WARN( class, "Invalid offset %d\n", offset );
|
||||
WARN("Invalid offset %d\n", offset );
|
||||
retval = 0;
|
||||
goto END;
|
||||
}
|
||||
|
@ -1028,7 +1028,7 @@ LONG WINAPI SetClassLongW( HWND hwnd, INT offset, LONG newval )
|
|||
WND *wndPtr;
|
||||
LONG retval;
|
||||
|
||||
TRACE(class,"%x %x %lx\n",hwnd, offset, newval);
|
||||
TRACE("%x %x %lx\n",hwnd, offset, newval);
|
||||
|
||||
switch(offset)
|
||||
{
|
||||
|
@ -1075,7 +1075,7 @@ INT WINAPI GetClassNameA( HWND hwnd, LPSTR buffer, INT count )
|
|||
ret = GlobalGetAtomNameA( wndPtr->class->atomName, buffer, count );
|
||||
|
||||
WIN_ReleaseWndPtr(wndPtr);
|
||||
TRACE(class,"%x %s %x\n",hwnd, buffer, count);
|
||||
TRACE("%x %s %x\n",hwnd, buffer, count);
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
@ -1090,7 +1090,7 @@ INT WINAPI GetClassNameW( HWND hwnd, LPWSTR buffer, INT count )
|
|||
if (!(wndPtr = WIN_FindWndPtr(hwnd))) return 0;
|
||||
ret = GlobalGetAtomNameW( wndPtr->class->atomName, buffer, count );
|
||||
WIN_ReleaseWndPtr(wndPtr);
|
||||
TRACE(class,"%x %s %x\n",hwnd, debugstr_w(buffer), count);
|
||||
TRACE("%x %s %x\n",hwnd, debugstr_w(buffer), count);
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
@ -1105,7 +1105,7 @@ BOOL16 WINAPI GetClassInfo16( HINSTANCE16 hInstance, SEGPTR name,
|
|||
ATOM atom;
|
||||
CLASS *classPtr;
|
||||
|
||||
TRACE(class,"%x %p %p\n",hInstance, PTR_SEG_TO_LIN (name), wc);
|
||||
TRACE("%x %p %p\n",hInstance, PTR_SEG_TO_LIN (name), wc);
|
||||
|
||||
hInstance = GetExePtr( hInstance );
|
||||
if (!(atom = GlobalFindAtom16( name )) ||
|
||||
|
@ -1141,7 +1141,7 @@ BOOL WINAPI GetClassInfoA( HINSTANCE hInstance, LPCSTR name,
|
|||
ATOM atom;
|
||||
CLASS *classPtr;
|
||||
|
||||
TRACE(class,"%x %p %p\n",hInstance, name, wc);
|
||||
TRACE("%x %p %p\n",hInstance, name, wc);
|
||||
|
||||
/* workaround: if hInstance=NULL you expect to get the system classes
|
||||
but this classes (as example from comctl32.dll SysListView) won't be
|
||||
|
@ -1155,7 +1155,7 @@ BOOL WINAPI GetClassInfoA( HINSTANCE hInstance, LPCSTR name,
|
|||
{
|
||||
if (hInstance) return FALSE;
|
||||
else
|
||||
WARN(class,"systemclass %s (hInst=0) demanded but only class with hInst!=0 found\n",name);
|
||||
WARN("systemclass %s (hInst=0) demanded but only class with hInst!=0 found\n",name);
|
||||
}
|
||||
|
||||
wc->style = classPtr->style;
|
||||
|
@ -1182,7 +1182,7 @@ BOOL WINAPI GetClassInfoW( HINSTANCE hInstance, LPCWSTR name,
|
|||
ATOM atom;
|
||||
CLASS *classPtr;
|
||||
|
||||
TRACE(class,"%x %p %p\n",hInstance, name, wc);
|
||||
TRACE("%x %p %p\n",hInstance, name, wc);
|
||||
|
||||
if (!(atom = GlobalFindAtomW( name )) ||
|
||||
!(classPtr = CLASS_FindClassByAtom( atom, hInstance )) ||
|
||||
|
@ -1216,7 +1216,7 @@ BOOL16 WINAPI GetClassInfoEx16( HINSTANCE16 hInstance, SEGPTR name,
|
|||
ATOM atom;
|
||||
CLASS *classPtr;
|
||||
|
||||
TRACE(class,"%x %p %p\n",hInstance,PTR_SEG_TO_LIN( name ), wc);
|
||||
TRACE("%x %p %p\n",hInstance,PTR_SEG_TO_LIN( name ), wc);
|
||||
|
||||
hInstance = GetExePtr( hInstance );
|
||||
if (!(atom = GlobalFindAtom16( name )) ||
|
||||
|
@ -1251,7 +1251,7 @@ BOOL WINAPI GetClassInfoExA( HINSTANCE hInstance, LPCSTR name,
|
|||
ATOM atom;
|
||||
CLASS *classPtr;
|
||||
|
||||
TRACE(class,"%x %p %p\n",hInstance, name, wc);
|
||||
TRACE("%x %p %p\n",hInstance, name, wc);
|
||||
|
||||
if (!(atom = GlobalFindAtomA( name )) ||
|
||||
!(classPtr = CLASS_FindClassByAtom( atom, hInstance ))
|
||||
|
@ -1281,7 +1281,7 @@ BOOL WINAPI GetClassInfoExW( HINSTANCE hInstance, LPCWSTR name,
|
|||
ATOM atom;
|
||||
CLASS *classPtr;
|
||||
|
||||
TRACE(class,"%x %p %p\n",hInstance, name, wc);
|
||||
TRACE("%x %p %p\n",hInstance, name, wc);
|
||||
|
||||
if (!(atom = GlobalFindAtomW( name )) ||
|
||||
!(classPtr = CLASS_FindClassByAtom( atom, hInstance )) ||
|
||||
|
@ -1307,7 +1307,7 @@ BOOL WINAPI GetClassInfoExW( HINSTANCE hInstance, LPCWSTR name,
|
|||
*/
|
||||
BOOL16 WINAPI ClassFirst16( CLASSENTRY *pClassEntry )
|
||||
{
|
||||
TRACE(class,"%p\n",pClassEntry);
|
||||
TRACE("%p\n",pClassEntry);
|
||||
pClassEntry->wNext = 1;
|
||||
return ClassNext16( pClassEntry );
|
||||
}
|
||||
|
@ -1321,7 +1321,7 @@ BOOL16 WINAPI ClassNext16( CLASSENTRY *pClassEntry )
|
|||
int i;
|
||||
CLASS *class = firstClass;
|
||||
|
||||
TRACE(class,"%p\n",pClassEntry);
|
||||
TRACE("%p\n",pClassEntry);
|
||||
|
||||
if (!pClassEntry->wNext) return FALSE;
|
||||
for (i = 1; (i < pClassEntry->wNext) && class; i++) class = class->next;
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
#include "message.h"
|
||||
#include "clipboard.h"
|
||||
#include "xmalloc.h"
|
||||
#include "debug.h"
|
||||
#include "debugtools.h"
|
||||
|
||||
DEFAULT_DEBUG_CHANNEL(clipboard)
|
||||
|
||||
|
@ -173,7 +173,7 @@ BOOL WINAPI OpenClipboard( HWND hWnd )
|
|||
{
|
||||
BOOL bRet;
|
||||
|
||||
TRACE(clipboard,"(%04x)...\n", hWnd);
|
||||
TRACE("(%04x)...\n", hWnd);
|
||||
|
||||
if (!hqClipLock)
|
||||
{
|
||||
|
@ -184,7 +184,7 @@ BOOL WINAPI OpenClipboard( HWND hWnd )
|
|||
}
|
||||
else bRet = FALSE;
|
||||
|
||||
TRACE(clipboard," returning %i\n", bRet);
|
||||
TRACE(" returning %i\n", bRet);
|
||||
return bRet;
|
||||
}
|
||||
|
||||
|
@ -203,7 +203,7 @@ BOOL16 WINAPI CloseClipboard16(void)
|
|||
*/
|
||||
BOOL WINAPI CloseClipboard(void)
|
||||
{
|
||||
TRACE(clipboard,"!\n");
|
||||
TRACE("!\n");
|
||||
|
||||
if (hqClipLock == GetFastQueue16())
|
||||
{
|
||||
|
@ -233,7 +233,7 @@ BOOL WINAPI EmptyClipboard(void)
|
|||
{
|
||||
LPWINE_CLIPFORMAT lpFormat = ClipFormats;
|
||||
|
||||
TRACE(clipboard,"(void)\n");
|
||||
TRACE("(void)\n");
|
||||
|
||||
if (hqClipLock != GetFastQueue16()) return FALSE;
|
||||
|
||||
|
@ -283,7 +283,7 @@ HANDLE16 WINAPI SetClipboardData16( UINT16 wFormat, HANDLE16 hData )
|
|||
{
|
||||
LPWINE_CLIPFORMAT lpFormat = __lookup_format( ClipFormats, wFormat );
|
||||
|
||||
TRACE(clipboard, "(%04X, %04x) !\n", wFormat, hData);
|
||||
TRACE("(%04X, %04x) !\n", wFormat, hData);
|
||||
|
||||
/* NOTE: If the hData is zero and current owner doesn't match
|
||||
* the window that opened the clipboard then this application
|
||||
|
@ -331,7 +331,7 @@ HANDLE WINAPI SetClipboardData( UINT wFormat, HANDLE hData )
|
|||
{
|
||||
LPWINE_CLIPFORMAT lpFormat = __lookup_format( ClipFormats, wFormat );
|
||||
|
||||
TRACE(clipboard, "(%08X, %08x) !\n", wFormat, hData);
|
||||
TRACE("(%08X, %08x) !\n", wFormat, hData);
|
||||
|
||||
/* NOTE: If the hData is zero and current owner doesn't match
|
||||
* the window that opened the clipboard then this application
|
||||
|
@ -384,7 +384,7 @@ static BOOL CLIPBOARD_RenderFormat(LPWINE_CLIPFORMAT lpFormat)
|
|||
(WPARAM16)lpFormat->wFormatID,0L);
|
||||
else
|
||||
{
|
||||
WARN(clipboard, "\thWndClipOwner (%04x) is lost!\n",
|
||||
WARN("\thWndClipOwner (%04x) is lost!\n",
|
||||
hWndClipOwner);
|
||||
hWndClipOwner = 0; lpFormat->wDataPresent = 0;
|
||||
return FALSE;
|
||||
|
@ -419,7 +419,7 @@ static BOOL CLIPBOARD_RenderText(LPWINE_CLIPFORMAT lpTarget, LPWINE_CLIPFORMAT l
|
|||
}
|
||||
|
||||
if( !lpstrS ) return FALSE;
|
||||
TRACE(clipboard,"\tconverting from '%s' to '%s', %i chars\n",
|
||||
TRACE("\tconverting from '%s' to '%s', %i chars\n",
|
||||
lpSource->Name, lpTarget->Name, size);
|
||||
|
||||
lpTarget->hData32 = GlobalAlloc(GMEM_ZEROINIT, size);
|
||||
|
@ -431,7 +431,7 @@ static BOOL CLIPBOARD_RenderText(LPWINE_CLIPFORMAT lpTarget, LPWINE_CLIPFORMAT l
|
|||
CharToOemBuffA(lpstrS, lpstrT, size);
|
||||
else
|
||||
OemToCharBuffA(lpstrS, lpstrT, size);
|
||||
TRACE(clipboard,"\tgot %s\n", lpstrT);
|
||||
TRACE("\tgot %s\n", lpstrT);
|
||||
GlobalUnlock(lpTarget->hData32);
|
||||
if (lpSource->hData32)
|
||||
GlobalUnlock(lpSource->hData32);
|
||||
|
@ -458,7 +458,7 @@ HANDLE16 WINAPI GetClipboardData16( UINT16 wFormat )
|
|||
|
||||
if (hqClipLock != GetFastQueue16()) return 0;
|
||||
|
||||
TRACE(clipboard,"(%04X)\n", wFormat);
|
||||
TRACE("(%04X)\n", wFormat);
|
||||
|
||||
if( wFormat == CF_TEXT && !lpRender[CF_TEXT-1].wDataPresent
|
||||
&& lpRender[CF_OEMTEXT-1].wDataPresent )
|
||||
|
@ -466,7 +466,7 @@ HANDLE16 WINAPI GetClipboardData16( UINT16 wFormat )
|
|||
lpRender = &ClipFormats[CF_OEMTEXT-1];
|
||||
lpUpdate = &ClipFormats[CF_TEXT-1];
|
||||
|
||||
TRACE(clipboard,"\tOEMTEXT -> TEXT\n");
|
||||
TRACE("\tOEMTEXT -> TEXT\n");
|
||||
}
|
||||
else if( wFormat == CF_OEMTEXT && !lpRender[CF_OEMTEXT-1].wDataPresent
|
||||
&& lpRender[CF_TEXT-1].wDataPresent )
|
||||
|
@ -474,7 +474,7 @@ HANDLE16 WINAPI GetClipboardData16( UINT16 wFormat )
|
|||
lpRender = &ClipFormats[CF_TEXT-1];
|
||||
lpUpdate = &ClipFormats[CF_OEMTEXT-1];
|
||||
|
||||
TRACE(clipboard,"\tTEXT -> OEMTEXT\n");
|
||||
TRACE("\tTEXT -> OEMTEXT\n");
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -495,13 +495,13 @@ HANDLE16 WINAPI GetClipboardData16( UINT16 wFormat )
|
|||
size = GlobalSize(lpUpdate->hData32);
|
||||
lpUpdate->hData16 = GlobalAlloc16(GMEM_ZEROINIT, size);
|
||||
if( !lpUpdate->hData16 )
|
||||
ERR(clipboard, "(%04X) -- not enough memory in 16b heap\n", wFormat);
|
||||
ERR("(%04X) -- not enough memory in 16b heap\n", wFormat);
|
||||
else
|
||||
{
|
||||
if( lpUpdate->wFormatID == CF_METAFILEPICT )
|
||||
{
|
||||
FIXME(clipboard,"\timplement function CopyMetaFilePict32to16\n");
|
||||
FIXME(clipboard,"\tin the appropriate file.\n");
|
||||
FIXME("\timplement function CopyMetaFilePict32to16\n");
|
||||
FIXME("\tin the appropriate file.\n");
|
||||
#ifdef SOMEONE_IMPLEMENTED_ME
|
||||
CopyMetaFilePict32to16( GlobalLock16(lpUpdate->hData16),
|
||||
GlobalLock(lpUpdate->hData32) );
|
||||
|
@ -518,7 +518,7 @@ HANDLE16 WINAPI GetClipboardData16( UINT16 wFormat )
|
|||
}
|
||||
}
|
||||
|
||||
TRACE(clipboard,"\treturning %04x (type %i)\n",
|
||||
TRACE("\treturning %04x (type %i)\n",
|
||||
lpUpdate->hData16, lpUpdate->wFormatID);
|
||||
return lpUpdate->hData16;
|
||||
}
|
||||
|
@ -534,7 +534,7 @@ HANDLE WINAPI GetClipboardData( UINT wFormat )
|
|||
|
||||
if (hqClipLock != GetFastQueue16()) return 0;
|
||||
|
||||
TRACE(clipboard,"(%08X)\n", wFormat);
|
||||
TRACE("(%08X)\n", wFormat);
|
||||
|
||||
if( wFormat == CF_TEXT && !lpRender[CF_TEXT-1].wDataPresent
|
||||
&& lpRender[CF_OEMTEXT-1].wDataPresent )
|
||||
|
@ -542,7 +542,7 @@ HANDLE WINAPI GetClipboardData( UINT wFormat )
|
|||
lpRender = &ClipFormats[CF_OEMTEXT-1];
|
||||
lpUpdate = &ClipFormats[CF_TEXT-1];
|
||||
|
||||
TRACE(clipboard,"\tOEMTEXT -> TEXT\n");
|
||||
TRACE("\tOEMTEXT -> TEXT\n");
|
||||
}
|
||||
else if( wFormat == CF_OEMTEXT && !lpRender[CF_OEMTEXT-1].wDataPresent
|
||||
&& lpRender[CF_TEXT-1].wDataPresent )
|
||||
|
@ -550,7 +550,7 @@ HANDLE WINAPI GetClipboardData( UINT wFormat )
|
|||
lpRender = &ClipFormats[CF_TEXT-1];
|
||||
lpUpdate = &ClipFormats[CF_OEMTEXT-1];
|
||||
|
||||
TRACE(clipboard,"\tTEXT -> OEMTEXT\n");
|
||||
TRACE("\tTEXT -> OEMTEXT\n");
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -572,8 +572,8 @@ HANDLE WINAPI GetClipboardData( UINT wFormat )
|
|||
lpUpdate->hData32 = GlobalAlloc(GMEM_ZEROINIT, size);
|
||||
if( lpUpdate->wFormatID == CF_METAFILEPICT )
|
||||
{
|
||||
FIXME(clipboard,"\timplement function CopyMetaFilePict16to32\n");
|
||||
FIXME(clipboard,"\tin the appropriate file.\n");
|
||||
FIXME("\timplement function CopyMetaFilePict16to32\n");
|
||||
FIXME("\tin the appropriate file.\n");
|
||||
#ifdef SOMEONE_IMPLEMENTED_ME
|
||||
CopyMetaFilePict16to32( GlobalLock16(lpUpdate->hData32),
|
||||
GlobalLock(lpUpdate->hData16) );
|
||||
|
@ -589,7 +589,7 @@ HANDLE WINAPI GetClipboardData( UINT wFormat )
|
|||
GlobalUnlock16(lpUpdate->hData16);
|
||||
}
|
||||
|
||||
TRACE(clipboard,"\treturning %04x (type %i)\n",
|
||||
TRACE("\treturning %04x (type %i)\n",
|
||||
lpUpdate->hData32, lpUpdate->wFormatID);
|
||||
return lpUpdate->hData32;
|
||||
}
|
||||
|
@ -611,7 +611,7 @@ INT WINAPI CountClipboardFormats(void)
|
|||
INT FormatCount = 0;
|
||||
LPWINE_CLIPFORMAT lpFormat = ClipFormats;
|
||||
|
||||
TRACE(clipboard,"(void)\n");
|
||||
TRACE("(void)\n");
|
||||
|
||||
while(TRUE)
|
||||
{
|
||||
|
@ -622,7 +622,7 @@ INT WINAPI CountClipboardFormats(void)
|
|||
|
||||
if (lpFormat->wDataPresent)
|
||||
{
|
||||
TRACE(clipboard, "\tdata found for format %i\n", lpFormat->wFormatID);
|
||||
TRACE("\tdata found for format %i\n", lpFormat->wFormatID);
|
||||
FormatCount++;
|
||||
}
|
||||
lpFormat = lpFormat->NextFormat;
|
||||
|
@ -633,7 +633,7 @@ INT WINAPI CountClipboardFormats(void)
|
|||
FormatCount += abs(ClipFormats[CF_TEXT-1].wDataPresent -
|
||||
ClipFormats[CF_OEMTEXT-1].wDataPresent);
|
||||
|
||||
TRACE(clipboard,"\ttotal %d\n", FormatCount);
|
||||
TRACE("\ttotal %d\n", FormatCount);
|
||||
return FormatCount;
|
||||
}
|
||||
|
||||
|
@ -654,7 +654,7 @@ UINT WINAPI EnumClipboardFormats( UINT wFormat )
|
|||
{
|
||||
LPWINE_CLIPFORMAT lpFormat = ClipFormats;
|
||||
|
||||
TRACE(clipboard,"(%04X)\n", wFormat);
|
||||
TRACE("(%04X)\n", wFormat);
|
||||
|
||||
if( hqClipLock != GetFastQueue16() ) return 0;
|
||||
|
||||
|
@ -700,7 +700,7 @@ UINT16 WINAPI RegisterClipboardFormat16( LPCSTR FormatName )
|
|||
|
||||
if (FormatName == NULL) return 0;
|
||||
|
||||
TRACE(clipboard,"('%s') !\n", FormatName);
|
||||
TRACE("('%s') !\n", FormatName);
|
||||
|
||||
/* walk format chain to see if it's already registered */
|
||||
|
||||
|
@ -774,12 +774,12 @@ INT WINAPI GetClipboardFormatNameA( UINT wFormat, LPSTR retStr, INT maxlen )
|
|||
{
|
||||
LPWINE_CLIPFORMAT lpFormat = __lookup_format( ClipFormats, wFormat );
|
||||
|
||||
TRACE(clipboard, "(%04X, %p, %d) !\n", wFormat, retStr, maxlen);
|
||||
TRACE("(%04X, %p, %d) !\n", wFormat, retStr, maxlen);
|
||||
|
||||
if (lpFormat == NULL || lpFormat->Name == NULL ||
|
||||
lpFormat->wFormatID < CF_REGFORMATBASE) return 0;
|
||||
|
||||
TRACE(clipboard, "Name='%s' !\n", lpFormat->Name);
|
||||
TRACE("Name='%s' !\n", lpFormat->Name);
|
||||
|
||||
lstrcpynA( retStr, lpFormat->Name, maxlen );
|
||||
return strlen(retStr);
|
||||
|
@ -815,7 +815,7 @@ HWND WINAPI SetClipboardViewer( HWND hWnd )
|
|||
{
|
||||
HWND hwndPrev = hWndViewer;
|
||||
|
||||
TRACE(clipboard,"(%04x): returning %04x\n", hWnd, hwndPrev);
|
||||
TRACE("(%04x): returning %04x\n", hWnd, hwndPrev);
|
||||
|
||||
hWndViewer = hWnd;
|
||||
return hwndPrev;
|
||||
|
@ -855,13 +855,13 @@ BOOL WINAPI ChangeClipboardChain(HWND hWnd, HWND hWndNext)
|
|||
{
|
||||
BOOL bRet = 0;
|
||||
|
||||
FIXME(clipboard, "(0x%04x, 0x%04x): stub?\n", hWnd, hWndNext);
|
||||
FIXME("(0x%04x, 0x%04x): stub?\n", hWnd, hWndNext);
|
||||
|
||||
if( hWndViewer )
|
||||
bRet = !SendMessage16( hWndViewer, WM_CHANGECBCHAIN,
|
||||
(WPARAM16)hWnd, (LPARAM)hWndNext);
|
||||
else
|
||||
WARN(clipboard, "hWndViewer is lost\n");
|
||||
WARN("hWndViewer is lost\n");
|
||||
|
||||
if( hWnd == hWndViewer ) hWndViewer = hWndNext;
|
||||
|
||||
|
@ -884,7 +884,7 @@ BOOL16 WINAPI IsClipboardFormatAvailable16( UINT16 wFormat )
|
|||
*/
|
||||
BOOL WINAPI IsClipboardFormatAvailable( UINT wFormat )
|
||||
{
|
||||
TRACE(clipboard,"(%04X) !\n", wFormat);
|
||||
TRACE("(%04X) !\n", wFormat);
|
||||
|
||||
CLIPBOARD_Driver->pGetData( (wFormat == CF_TEXT) ? CF_OEMTEXT : wFormat );
|
||||
|
||||
|
@ -915,7 +915,7 @@ HWND WINAPI GetOpenClipboardWindow(void)
|
|||
*/
|
||||
INT16 WINAPI GetPriorityClipboardFormat16( UINT16 *lpPriorityList, INT16 nCount)
|
||||
{
|
||||
FIXME(clipboard, "(%p,%d): stub\n", lpPriorityList, nCount );
|
||||
FIXME("(%p,%d): stub\n", lpPriorityList, nCount );
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
@ -27,7 +27,7 @@
|
|||
#include "region.h"
|
||||
#include "heap.h"
|
||||
#include "local.h"
|
||||
#include "debug.h"
|
||||
#include "debugtools.h"
|
||||
#include "wine/winuser16.h"
|
||||
|
||||
DEFAULT_DEBUG_CHANNEL(dc)
|
||||
|
@ -51,10 +51,10 @@ static void DCE_DumpCache(void)
|
|||
WIN_LockWnds();
|
||||
dce = firstDCE;
|
||||
|
||||
DUMP("DCE:\n");
|
||||
DPRINTF("DCE:\n");
|
||||
while( dce )
|
||||
{
|
||||
DUMP("\t[0x%08x] hWnd 0x%04x, dcx %08x, %s %s\n",
|
||||
DPRINTF("\t[0x%08x] hWnd 0x%04x, dcx %08x, %s %s\n",
|
||||
(unsigned)dce, dce->hwndCurrent, (unsigned)dce->DCXflags,
|
||||
(dce->DCXflags & DCX_CACHE) ? "Cache" : "Owned",
|
||||
(dce->DCXflags & DCX_DCEBUSY) ? "InUse" : "" );
|
||||
|
@ -169,7 +169,7 @@ void DCE_FreeWindowDCE( WND* pWnd )
|
|||
}
|
||||
else if( pDCE->DCXflags & DCX_DCEBUSY ) /* shared cache DCE */
|
||||
{
|
||||
ERR(dc,"[%04x] GetDC() without ReleaseDC()!\n",
|
||||
ERR("[%04x] GetDC() without ReleaseDC()!\n",
|
||||
pWnd->hwndSelf);
|
||||
DCE_ReleaseDC( pDCE );
|
||||
}
|
||||
|
@ -201,7 +201,7 @@ static void DCE_DeleteClipRgn( DCE* dce )
|
|||
|
||||
dce->hClipRgn = 0;
|
||||
|
||||
TRACE(dc,"\trestoring VisRgn\n");
|
||||
TRACE("\trestoring VisRgn\n");
|
||||
|
||||
RestoreVisRgn16(dce->hDC);
|
||||
}
|
||||
|
@ -257,7 +257,7 @@ BOOL DCE_InvalidateDCE(WND* pWnd, const RECT* pRectUpdate)
|
|||
{
|
||||
DCE *dce;
|
||||
|
||||
TRACE(dc,"scope hwnd = %04x, (%i,%i - %i,%i)\n",
|
||||
TRACE("scope hwnd = %04x, (%i,%i - %i,%i)\n",
|
||||
wndScope->hwndSelf, pRectUpdate->left,pRectUpdate->top,
|
||||
pRectUpdate->right,pRectUpdate->bottom);
|
||||
if(TRACE_ON(dc))
|
||||
|
@ -310,7 +310,7 @@ BOOL DCE_InvalidateDCE(WND* pWnd, const RECT* pRectUpdate)
|
|||
{
|
||||
/* Don't bother with visible regions of unused DCEs */
|
||||
|
||||
TRACE(dc,"\tpurged %08x dce [%04x]\n",
|
||||
TRACE("\tpurged %08x dce [%04x]\n",
|
||||
(unsigned)dce, wndCurrent->hwndSelf);
|
||||
|
||||
dce->hwndCurrent = 0;
|
||||
|
@ -321,7 +321,7 @@ BOOL DCE_InvalidateDCE(WND* pWnd, const RECT* pRectUpdate)
|
|||
{
|
||||
/* Set dirty bits in the hDC and DCE structs */
|
||||
|
||||
TRACE(dc,"\tfixed up %08x dce [%04x]\n",
|
||||
TRACE("\tfixed up %08x dce [%04x]\n",
|
||||
(unsigned)dce, wndCurrent->hwndSelf);
|
||||
|
||||
dce->DCXflags |= DCX_DCEDIRTY;
|
||||
|
@ -655,7 +655,7 @@ HDC WINAPI GetDCEx( HWND hwnd, HRGN hrgnClip, DWORD flags )
|
|||
BOOL bUpdateVisRgn = TRUE;
|
||||
BOOL bUpdateClipOrigin = FALSE;
|
||||
|
||||
TRACE(dc,"hwnd %04x, hrgnClip %04x, flags %08x\n",
|
||||
TRACE("hwnd %04x, hrgnClip %04x, flags %08x\n",
|
||||
hwnd, hrgnClip, (unsigned)flags);
|
||||
|
||||
if (!(wndPtr = WIN_FindWndPtr( hwnd ))) return 0;
|
||||
|
@ -734,7 +734,7 @@ HDC WINAPI GetDCEx( HWND hwnd, HRGN hrgnClip, DWORD flags )
|
|||
((dce->DCXflags & (DCX_CLIPSIBLINGS | DCX_CLIPCHILDREN |
|
||||
DCX_CACHE | DCX_WINDOW | DCX_PARENTCLIP)) == dcxFlags))
|
||||
{
|
||||
TRACE(dc,"\tfound valid %08x dce [%04x], flags %08x\n",
|
||||
TRACE("\tfound valid %08x dce [%04x], flags %08x\n",
|
||||
(unsigned)dce, hwnd, (unsigned)dcxFlags );
|
||||
bUpdateVisRgn = FALSE;
|
||||
bUpdateClipOrigin = TRUE;
|
||||
|
@ -756,7 +756,7 @@ HDC WINAPI GetDCEx( HWND hwnd, HRGN hrgnClip, DWORD flags )
|
|||
dce = (wndPtr->class->style & CS_OWNDC) ? wndPtr->dce : wndPtr->class->dce;
|
||||
if( dce->hwndCurrent == hwnd )
|
||||
{
|
||||
TRACE(dc,"\tskipping hVisRgn update\n");
|
||||
TRACE("\tskipping hVisRgn update\n");
|
||||
bUpdateVisRgn = FALSE; /* updated automatically, via DCHook() */
|
||||
|
||||
if( (dce->DCXflags & (DCX_EXCLUDERGN | DCX_INTERSECTRGN)) &&
|
||||
|
@ -766,7 +766,7 @@ HDC WINAPI GetDCEx( HWND hwnd, HRGN hrgnClip, DWORD flags )
|
|||
|
||||
if( dce->hClipRgn != hrgnClip )
|
||||
{
|
||||
FIXME(dc,"new hrgnClip[%04x] smashes the previous[%04x]\n",
|
||||
FIXME("new hrgnClip[%04x] smashes the previous[%04x]\n",
|
||||
hrgnClip, dce->hClipRgn );
|
||||
DCE_DeleteClipRgn( dce );
|
||||
}
|
||||
|
@ -798,7 +798,7 @@ HDC WINAPI GetDCEx( HWND hwnd, HRGN hrgnClip, DWORD flags )
|
|||
wndPtr->pDriver->pSetDrawable( wndPtr, dc, flags, bUpdateClipOrigin );
|
||||
if( bUpdateVisRgn )
|
||||
{
|
||||
TRACE(dc,"updating visrgn for %08x dce, hwnd [%04x]\n", (unsigned)dce, hwnd);
|
||||
TRACE("updating visrgn for %08x dce, hwnd [%04x]\n", (unsigned)dce, hwnd);
|
||||
|
||||
if (flags & DCX_PARENTCLIP)
|
||||
{
|
||||
|
@ -839,7 +839,7 @@ HDC WINAPI GetDCEx( HWND hwnd, HRGN hrgnClip, DWORD flags )
|
|||
SelectVisRgn16( hdc, hrgnVisible );
|
||||
}
|
||||
else
|
||||
TRACE(dc,"no visrgn update %08x dce, hwnd [%04x]\n", (unsigned)dce, hwnd);
|
||||
TRACE("no visrgn update %08x dce, hwnd [%04x]\n", (unsigned)dce, hwnd);
|
||||
|
||||
/* apply additional region operation (if any) */
|
||||
|
||||
|
@ -850,7 +850,7 @@ HDC WINAPI GetDCEx( HWND hwnd, HRGN hrgnClip, DWORD flags )
|
|||
dce->DCXflags |= flags & (DCX_KEEPCLIPRGN | DCX_INTERSECTRGN | DCX_EXCLUDERGN);
|
||||
dce->hClipRgn = hrgnClip;
|
||||
|
||||
TRACE(dc, "\tsaved VisRgn, clipRgn = %04x\n", hrgnClip);
|
||||
TRACE("\tsaved VisRgn, clipRgn = %04x\n", hrgnClip);
|
||||
|
||||
SaveVisRgn16( hdc );
|
||||
CombineRgn( hrgnVisible, hrgnClip, 0, RGN_COPY );
|
||||
|
@ -862,7 +862,7 @@ HDC WINAPI GetDCEx( HWND hwnd, HRGN hrgnClip, DWORD flags )
|
|||
|
||||
if( hrgnVisible ) DeleteObject( hrgnVisible );
|
||||
|
||||
TRACE(dc, "(%04x,%04x,0x%lx): returning %04x\n",
|
||||
TRACE("(%04x,%04x,0x%lx): returning %04x\n",
|
||||
hwnd, hrgnClip, flags, hdc);
|
||||
END:
|
||||
WIN_ReleaseWndPtr(wndPtr);
|
||||
|
@ -940,7 +940,7 @@ INT WINAPI ReleaseDC(
|
|||
WIN_LockWnds();
|
||||
dce = firstDCE;
|
||||
|
||||
TRACE(dc, "%04x %04x\n", hwnd, hdc );
|
||||
TRACE("%04x %04x\n", hwnd, hdc );
|
||||
|
||||
while (dce && (dce->hDC != hdc)) dce = dce->next;
|
||||
|
||||
|
@ -966,7 +966,7 @@ BOOL16 WINAPI DCHook16( HDC16 hDC, WORD code, DWORD data, LPARAM lParam )
|
|||
DC *dc;
|
||||
WND *wndPtr;
|
||||
|
||||
TRACE(dc,"hDC = %04x, %i\n", hDC, code);
|
||||
TRACE("hDC = %04x, %i\n", hDC, code);
|
||||
|
||||
if (!dce) return 0;
|
||||
assert(dce->hDC == hDC);
|
||||
|
@ -995,7 +995,7 @@ BOOL16 WINAPI DCHook16( HDC16 hDC, WORD code, DWORD data, LPARAM lParam )
|
|||
SetHookFlags16(hDC, DCHF_VALIDATEVISRGN);
|
||||
hVisRgn = DCE_GetVisRgn(dce->hwndCurrent, dce->DCXflags, 0, 0);
|
||||
|
||||
TRACE(dc,"\tapplying saved clipRgn\n");
|
||||
TRACE("\tapplying saved clipRgn\n");
|
||||
|
||||
/* clip this region with saved clipping region */
|
||||
|
||||
|
@ -1017,7 +1017,7 @@ BOOL16 WINAPI DCHook16( HDC16 hDC, WORD code, DWORD data, LPARAM lParam )
|
|||
WIN_ReleaseWndPtr( wndPtr ); /* Release WIN_FindWndPtr lock */
|
||||
}
|
||||
else /* non-fatal but shouldn't happen */
|
||||
WARN(dc, "DC is not in use!\n");
|
||||
WARN("DC is not in use!\n");
|
||||
break;
|
||||
|
||||
case DCHC_DELETEDC:
|
||||
|
@ -1028,13 +1028,13 @@ BOOL16 WINAPI DCHook16( HDC16 hDC, WORD code, DWORD data, LPARAM lParam )
|
|||
|
||||
if ( dce->DCXflags & DCX_DCEBUSY )
|
||||
{
|
||||
WARN(dc, "Application trying to delete a busy DC\n");
|
||||
WARN("Application trying to delete a busy DC\n");
|
||||
retv = FALSE;
|
||||
}
|
||||
break;
|
||||
|
||||
default:
|
||||
FIXME(dc,"unknown code\n");
|
||||
FIXME("unknown code\n");
|
||||
}
|
||||
|
||||
WIN_UnlockWnds(); /* Release the wnd lock */
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
#include "nonclient.h"
|
||||
#include "winpos.h"
|
||||
#include "dce.h"
|
||||
#include "debug.h"
|
||||
#include "debugtools.h"
|
||||
#include "spy.h"
|
||||
#include "tweak.h"
|
||||
#include "cache.h"
|
||||
|
@ -121,7 +121,7 @@ static void DEFWND_SetRedraw( WND* wndPtr, WPARAM wParam )
|
|||
{
|
||||
BOOL bVisible = wndPtr->dwStyle & WS_VISIBLE;
|
||||
|
||||
TRACE(win,"%04x %i\n", wndPtr->hwndSelf, (wParam!=0) );
|
||||
TRACE("%04x %i\n", wndPtr->hwndSelf, (wParam!=0) );
|
||||
|
||||
if( wParam )
|
||||
{
|
||||
|
@ -166,7 +166,7 @@ static void DEFWND_Print(
|
|||
(uFlags & PRF_OWNED) ||
|
||||
(uFlags & PRF_NONCLIENT) )
|
||||
{
|
||||
WARN(win,"WM_PRINT message with unsupported flags\n");
|
||||
WARN("WM_PRINT message with unsupported flags\n");
|
||||
}
|
||||
|
||||
/*
|
||||
|
@ -224,7 +224,7 @@ static LRESULT DEFWND_DefWinProc( WND *wndPtr, UINT msg, WPARAM wParam,
|
|||
TrackPopupMenu32(wndPtr->hSysMenu,TPM_LEFTALIGN | TPM_RETURNCMD,LOWORD(lParam),HIWORD(lParam),0,wndPtr->hwndSelf,NULL);
|
||||
DestroyMenu32(wndPtr->hSysMenu);
|
||||
*/
|
||||
FIXME(win,"Display default popup menu\n");
|
||||
FIXME("Display default popup menu\n");
|
||||
/* Track system popup if click was in the caption area. */
|
||||
}
|
||||
break;
|
||||
|
@ -257,7 +257,7 @@ static LRESULT DEFWND_DefWinProc( WND *wndPtr, UINT msg, WPARAM wParam,
|
|||
GetSystemMetrics(SM_CXICON))/2;
|
||||
int y = (wndPtr->rectWindow.bottom - wndPtr->rectWindow.top -
|
||||
GetSystemMetrics(SM_CYICON))/2;
|
||||
TRACE(win,"Painting class icon: vis rect=(%i,%i - %i,%i)\n",
|
||||
TRACE("Painting class icon: vis rect=(%i,%i - %i,%i)\n",
|
||||
ps.rcPaint.left, ps.rcPaint.top, ps.rcPaint.right, ps.rcPaint.bottom );
|
||||
DrawIcon( hdc, x, y, wndPtr->class->hIcon );
|
||||
}
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
#include "user.h"
|
||||
#include "winproc.h"
|
||||
#include "message.h"
|
||||
#include "debug.h"
|
||||
#include "debugtools.h"
|
||||
|
||||
DEFAULT_DEBUG_CHANNEL(dialog)
|
||||
|
||||
|
@ -166,7 +166,7 @@ BOOL DIALOG_Init(void)
|
|||
xBaseUnit = size.cx;
|
||||
yBaseUnit = size.cy;
|
||||
|
||||
TRACE(dialog, "base units = %d,%d\n", xBaseUnit, yBaseUnit );
|
||||
TRACE("base units = %d,%d\n", xBaseUnit, yBaseUnit );
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
@ -228,12 +228,12 @@ static LPCSTR DIALOG_GetControl16( LPCSTR p, DLG_CONTROL_INFO *info )
|
|||
p += *p + 1;
|
||||
|
||||
if(int_id)
|
||||
TRACE(dialog," %s %04x %d, %d, %d, %d, %d, %08lx, %08lx\n",
|
||||
TRACE(" %s %04x %d, %d, %d, %d, %d, %08lx, %08lx\n",
|
||||
info->className, LOWORD(info->windowName),
|
||||
info->id, info->x, info->y, info->cx, info->cy,
|
||||
info->style, (DWORD)info->data);
|
||||
else
|
||||
TRACE(dialog," %s '%s' %d, %d, %d, %d, %d, %08lx, %08lx\n",
|
||||
TRACE(" %s '%s' %d, %d, %d, %d, %d, %08lx, %08lx\n",
|
||||
info->className, info->windowName,
|
||||
info->id, info->x, info->y, info->cx, info->cy,
|
||||
info->style, (DWORD)info->data);
|
||||
|
@ -297,7 +297,7 @@ static const WORD *DIALOG_GetControl32( const WORD *p, DLG_CONTROL_INFO *info,
|
|||
else
|
||||
{
|
||||
info->className = NULL;
|
||||
ERR( dialog, "Unknown built-in class id %04x\n", id );
|
||||
ERR("Unknown built-in class id %04x\n", id );
|
||||
}
|
||||
p += 2;
|
||||
}
|
||||
|
@ -318,7 +318,7 @@ static const WORD *DIALOG_GetControl32( const WORD *p, DLG_CONTROL_INFO *info,
|
|||
p += lstrlenW( (LPCWSTR)p ) + 1;
|
||||
}
|
||||
|
||||
TRACE(dialog," %s %s %d, %d, %d, %d, %d, %08lx, %08lx, %08lx\n",
|
||||
TRACE(" %s %s %d, %d, %d, %d, %d, %08lx, %08lx, %08lx\n",
|
||||
debugstr_w( (LPCWSTR)info->className ),
|
||||
debugres_w( (LPCWSTR)info->windowName ),
|
||||
info->id, info->x, info->y, info->cx, info->cy,
|
||||
|
@ -329,11 +329,11 @@ static const WORD *DIALOG_GetControl32( const WORD *p, DLG_CONTROL_INFO *info,
|
|||
if (TRACE_ON(dialog))
|
||||
{
|
||||
WORD i, count = GET_WORD(p) / sizeof(WORD);
|
||||
TRACE(dialog, " BEGIN\n");
|
||||
TRACE(dialog, " ");
|
||||
for (i = 0; i < count; i++) DUMP( "%04x,", GET_WORD(p+i+1) );
|
||||
DUMP("\n");
|
||||
TRACE(dialog, " END\n" );
|
||||
TRACE(" BEGIN\n");
|
||||
TRACE(" ");
|
||||
for (i = 0; i < count; i++) DPRINTF( "%04x,", GET_WORD(p+i+1) );
|
||||
DPRINTF("\n");
|
||||
TRACE(" END\n" );
|
||||
}
|
||||
info->data = (LPVOID)(p + 1);
|
||||
p += GET_WORD(p) / sizeof(WORD);
|
||||
|
@ -360,7 +360,7 @@ static BOOL DIALOG_CreateControls( WND *pWnd, LPCSTR template,
|
|||
HWND hwndCtrl, hwndDefButton = 0;
|
||||
INT items = dlgTemplate->nbItems;
|
||||
|
||||
TRACE(dialog, " BEGIN\n" );
|
||||
TRACE(" BEGIN\n" );
|
||||
while (items--)
|
||||
{
|
||||
if (!win32)
|
||||
|
@ -375,7 +375,7 @@ static BOOL DIALOG_CreateControls( WND *pWnd, LPCSTR template,
|
|||
dlgInfo->hDialogHeap = GlobalAlloc16(GMEM_FIXED, 0x10000);
|
||||
if (!dlgInfo->hDialogHeap)
|
||||
{
|
||||
ERR(dialog, "Insufficient memory to create heap for edit control\n" );
|
||||
ERR("Insufficient memory to create heap for edit control\n" );
|
||||
continue;
|
||||
}
|
||||
LocalInit16(dlgInfo->hDialogHeap, 0, 0xffff);
|
||||
|
@ -425,7 +425,7 @@ static BOOL DIALOG_CreateControls( WND *pWnd, LPCSTR template,
|
|||
dlgInfo->idResult = GetWindowWord( hwndCtrl, GWW_ID );
|
||||
}
|
||||
}
|
||||
TRACE(dialog, " END\n" );
|
||||
TRACE(" END\n" );
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
@ -445,9 +445,9 @@ static LPCSTR DIALOG_ParseTemplate16( LPCSTR p, DLG_TEMPLATE * result )
|
|||
result->y = GET_WORD(p); p += sizeof(WORD);
|
||||
result->cx = GET_WORD(p); p += sizeof(WORD);
|
||||
result->cy = GET_WORD(p); p += sizeof(WORD);
|
||||
TRACE(dialog, "DIALOG %d, %d, %d, %d\n",
|
||||
TRACE("DIALOG %d, %d, %d, %d\n",
|
||||
result->x, result->y, result->cx, result->cy );
|
||||
TRACE(dialog, " STYLE %08lx\n", result->style );
|
||||
TRACE(" STYLE %08lx\n", result->style );
|
||||
|
||||
/* Get the menu name */
|
||||
|
||||
|
@ -460,11 +460,11 @@ static LPCSTR DIALOG_ParseTemplate16( LPCSTR p, DLG_TEMPLATE * result )
|
|||
case 0xff:
|
||||
result->menuName = (LPCSTR)(UINT)GET_WORD( p + 1 );
|
||||
p += 3;
|
||||
TRACE(dialog, " MENU %04x\n", LOWORD(result->menuName) );
|
||||
TRACE(" MENU %04x\n", LOWORD(result->menuName) );
|
||||
break;
|
||||
default:
|
||||
result->menuName = p;
|
||||
TRACE(dialog, " MENU '%s'\n", p );
|
||||
TRACE(" MENU '%s'\n", p );
|
||||
p += strlen(p) + 1;
|
||||
break;
|
||||
}
|
||||
|
@ -474,7 +474,7 @@ static LPCSTR DIALOG_ParseTemplate16( LPCSTR p, DLG_TEMPLATE * result )
|
|||
if (*p)
|
||||
{
|
||||
result->className = p;
|
||||
TRACE(dialog, " CLASS '%s'\n", result->className );
|
||||
TRACE(" CLASS '%s'\n", result->className );
|
||||
}
|
||||
else result->className = DIALOG_CLASS_ATOM;
|
||||
p += strlen(p) + 1;
|
||||
|
@ -483,7 +483,7 @@ static LPCSTR DIALOG_ParseTemplate16( LPCSTR p, DLG_TEMPLATE * result )
|
|||
|
||||
result->caption = p;
|
||||
p += strlen(p) + 1;
|
||||
TRACE(dialog, " CAPTION '%s'\n", result->caption );
|
||||
TRACE(" CAPTION '%s'\n", result->caption );
|
||||
|
||||
/* Get the font name */
|
||||
|
||||
|
@ -493,7 +493,7 @@ static LPCSTR DIALOG_ParseTemplate16( LPCSTR p, DLG_TEMPLATE * result )
|
|||
p += sizeof(WORD);
|
||||
result->faceName = p;
|
||||
p += strlen(p) + 1;
|
||||
TRACE(dialog, " FONT %d,'%s'\n",
|
||||
TRACE(" FONT %d,'%s'\n",
|
||||
result->pointSize, result->faceName );
|
||||
}
|
||||
return p;
|
||||
|
@ -529,11 +529,11 @@ static LPCSTR DIALOG_ParseTemplate32( LPCSTR template, DLG_TEMPLATE * result )
|
|||
result->y = GET_WORD(p); p++;
|
||||
result->cx = GET_WORD(p); p++;
|
||||
result->cy = GET_WORD(p); p++;
|
||||
TRACE( dialog, "DIALOG%s %d, %d, %d, %d, %ld\n",
|
||||
TRACE("DIALOG%s %d, %d, %d, %d, %ld\n",
|
||||
result->dialogEx ? "EX" : "", result->x, result->y,
|
||||
result->cx, result->cy, result->helpId );
|
||||
TRACE( dialog, " STYLE 0x%08lx\n", result->style );
|
||||
TRACE( dialog, " EXSTYLE 0x%08lx\n", result->exStyle );
|
||||
TRACE(" STYLE 0x%08lx\n", result->style );
|
||||
TRACE(" EXSTYLE 0x%08lx\n", result->exStyle );
|
||||
|
||||
/* Get the menu name */
|
||||
|
||||
|
@ -546,11 +546,11 @@ static LPCSTR DIALOG_ParseTemplate32( LPCSTR template, DLG_TEMPLATE * result )
|
|||
case 0xffff:
|
||||
result->menuName = (LPCSTR)(UINT)GET_WORD( p + 1 );
|
||||
p += 2;
|
||||
TRACE(dialog, " MENU %04x\n", LOWORD(result->menuName) );
|
||||
TRACE(" MENU %04x\n", LOWORD(result->menuName) );
|
||||
break;
|
||||
default:
|
||||
result->menuName = (LPCSTR)p;
|
||||
TRACE(dialog, " MENU %s\n", debugstr_w( (LPCWSTR)p ));
|
||||
TRACE(" MENU %s\n", debugstr_w( (LPCWSTR)p ));
|
||||
p += lstrlenW( (LPCWSTR)p ) + 1;
|
||||
break;
|
||||
}
|
||||
|
@ -566,11 +566,11 @@ static LPCSTR DIALOG_ParseTemplate32( LPCSTR template, DLG_TEMPLATE * result )
|
|||
case 0xffff:
|
||||
result->className = (LPCSTR)(UINT)GET_WORD( p + 1 );
|
||||
p += 2;
|
||||
TRACE(dialog, " CLASS %04x\n", LOWORD(result->className) );
|
||||
TRACE(" CLASS %04x\n", LOWORD(result->className) );
|
||||
break;
|
||||
default:
|
||||
result->className = (LPCSTR)p;
|
||||
TRACE(dialog, " CLASS %s\n", debugstr_w( (LPCWSTR)p ));
|
||||
TRACE(" CLASS %s\n", debugstr_w( (LPCWSTR)p ));
|
||||
p += lstrlenW( (LPCWSTR)p ) + 1;
|
||||
break;
|
||||
}
|
||||
|
@ -579,7 +579,7 @@ static LPCSTR DIALOG_ParseTemplate32( LPCSTR template, DLG_TEMPLATE * result )
|
|||
|
||||
result->caption = (LPCSTR)p;
|
||||
p += lstrlenW( (LPCWSTR)p ) + 1;
|
||||
TRACE(dialog, " CAPTION %s\n", debugstr_w( (LPCWSTR)result->caption ) );
|
||||
TRACE(" CAPTION %s\n", debugstr_w( (LPCWSTR)result->caption ) );
|
||||
|
||||
/* Get the font name */
|
||||
|
||||
|
@ -599,7 +599,7 @@ static LPCSTR DIALOG_ParseTemplate32( LPCSTR template, DLG_TEMPLATE * result )
|
|||
}
|
||||
result->faceName = (LPCSTR)p;
|
||||
p += lstrlenW( (LPCWSTR)p ) + 1;
|
||||
TRACE(dialog, " FONT %d, %s, %d, %s\n",
|
||||
TRACE(" FONT %d, %s, %d, %s\n",
|
||||
result->pointSize, debugstr_w( (LPCWSTR)result->faceName ),
|
||||
result->weight, result->italic ? "TRUE" : "FALSE" );
|
||||
}
|
||||
|
@ -807,7 +807,7 @@ HWND16 WINAPI CreateDialogParam16( HINSTANCE16 hInst, SEGPTR dlgTemplate,
|
|||
HGLOBAL16 hmem;
|
||||
LPCVOID data;
|
||||
|
||||
TRACE(dialog, "%04x,%08lx,%04x,%08lx,%ld\n",
|
||||
TRACE("%04x,%08lx,%04x,%08lx,%ld\n",
|
||||
hInst, (DWORD)dlgTemplate, owner, (DWORD)dlgProc, param );
|
||||
|
||||
if (!(hRsrc = FindResource16( hInst, dlgTemplate, RT_DIALOG16 ))) return 0;
|
||||
|
@ -894,7 +894,7 @@ HWND WINAPI CreateDialogIndirectParamAorW( HINSTANCE hInst,
|
|||
LPCVOID dlgTemplate,
|
||||
HWND owner, DLGPROC dlgProc,
|
||||
LPARAM param )
|
||||
{ FIXME(dialog,"assume WIN_PROC_32W\n");
|
||||
{ FIXME("assume WIN_PROC_32W\n");
|
||||
return DIALOG_CreateIndirect( hInst, dlgTemplate, TRUE, owner,
|
||||
(DLGPROC16)dlgProc, param, WIN_PROC_32W );
|
||||
}
|
||||
|
@ -1069,7 +1069,7 @@ BOOL WINAPI EndDialog( HWND hwnd, INT retval )
|
|||
WND * wndPtr = WIN_FindWndPtr( hwnd );
|
||||
DIALOGINFO * dlgInfo = (DIALOGINFO *)wndPtr->wExtra;
|
||||
|
||||
TRACE(dialog, "%04x %d\n", hwnd, retval );
|
||||
TRACE("%04x %d\n", hwnd, retval );
|
||||
|
||||
if( dlgInfo )
|
||||
{
|
||||
|
@ -1934,7 +1934,7 @@ static BOOL DIALOG_DlgDirSelect( HWND hwnd, LPSTR str, INT len,
|
|||
BOOL ret;
|
||||
HWND listbox = GetDlgItem( hwnd, id );
|
||||
|
||||
TRACE(dialog, "%04x '%s' %d\n", hwnd, str, id );
|
||||
TRACE("%04x '%s' %d\n", hwnd, str, id );
|
||||
if (!listbox) return FALSE;
|
||||
if (win32)
|
||||
{
|
||||
|
@ -1983,7 +1983,7 @@ static BOOL DIALOG_DlgDirSelect( HWND hwnd, LPSTR str, INT len,
|
|||
if (unicode) lstrcpynAtoW( (LPWSTR)str, ptr, len );
|
||||
else lstrcpynA( str, ptr, len );
|
||||
SEGPTR_FREE( buffer );
|
||||
TRACE(dialog, "Returning %d '%s'\n", ret, str );
|
||||
TRACE("Returning %d '%s'\n", ret, str );
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
@ -2004,7 +2004,7 @@ static INT DIALOG_DlgDirList( HWND hDlg, LPSTR spec, INT idLBox,
|
|||
((attrib & DDL_POSTMSGS) ? PostMessageA( hwnd, msg, wparam, lparam ) \
|
||||
: SendMessageA( hwnd, msg, wparam, lparam ))
|
||||
|
||||
TRACE(dialog, "%04x '%s' %d %d %04x\n",
|
||||
TRACE("%04x '%s' %d %d %04x\n",
|
||||
hDlg, spec ? spec : "NULL", idLBox, idStatic, attrib );
|
||||
|
||||
if (spec && spec[0] && (spec[1] == ':'))
|
||||
|
@ -2036,7 +2036,7 @@ static INT DIALOG_DlgDirList( HWND hDlg, LPSTR spec, INT idLBox,
|
|||
}
|
||||
}
|
||||
|
||||
TRACE(dialog, "path=%c:\\%s mask=%s\n",
|
||||
TRACE("path=%c:\\%s mask=%s\n",
|
||||
'A' + drive, DRIVE_GetDosCwd(drive), spec );
|
||||
|
||||
if (idLBox && ((hwnd = GetDlgItem( hDlg, idLBox )) != 0))
|
||||
|
|
150
windows/dinput.c
150
windows/dinput.c
|
@ -25,7 +25,7 @@
|
|||
#include <sys/signal.h>
|
||||
|
||||
#include "wine/obj_base.h"
|
||||
#include "debug.h"
|
||||
#include "debugtools.h"
|
||||
#include "dinput.h"
|
||||
#include "display.h"
|
||||
#include "keyboard.h"
|
||||
|
@ -124,8 +124,8 @@ static void _dump_cooperativelevel(DWORD dwFlags) {
|
|||
};
|
||||
for (i=0;i<sizeof(flags)/sizeof(flags[0]);i++)
|
||||
if (flags[i].mask & dwFlags)
|
||||
DUMP("%s ",flags[i].name);
|
||||
DUMP("\n");
|
||||
DPRINTF("%s ",flags[i].name);
|
||||
DPRINTF("\n");
|
||||
}
|
||||
|
||||
struct IDirectInputAImpl
|
||||
|
@ -140,7 +140,7 @@ struct IDirectInputAImpl
|
|||
HRESULT WINAPI DirectInputCreateA(HINSTANCE hinst, DWORD dwVersion, LPDIRECTINPUTA *ppDI, LPUNKNOWN punkOuter)
|
||||
{
|
||||
IDirectInputAImpl* This;
|
||||
TRACE(dinput, "(0x%08lx,%04lx,%p,%p)\n",
|
||||
TRACE("(0x%08lx,%04lx,%p,%p)\n",
|
||||
(DWORD)hinst,dwVersion,ppDI,punkOuter
|
||||
);
|
||||
This = (IDirectInputAImpl*)HeapAlloc(GetProcessHeap(),0,sizeof(IDirectInputAImpl));
|
||||
|
@ -161,7 +161,7 @@ static HRESULT WINAPI IDirectInputAImpl_EnumDevices(
|
|||
DIDEVICEINSTANCEA devInstance;
|
||||
int ret;
|
||||
|
||||
TRACE(dinput, "(this=%p,0x%04lx,%p,%p,%04lx)\n", This, dwDevType, lpCallback, pvRef, dwFlags);
|
||||
TRACE("(this=%p,0x%04lx,%p,%p,%04lx)\n", This, dwDevType, lpCallback, pvRef, dwFlags);
|
||||
|
||||
devInstance.dwSize = sizeof(DIDEVICEINSTANCEA);
|
||||
|
||||
|
@ -174,7 +174,7 @@ static HRESULT WINAPI IDirectInputAImpl_EnumDevices(
|
|||
strcpy(devInstance.tszProductName, "Wine Keyboard");
|
||||
|
||||
ret = lpCallback(&devInstance, pvRef);
|
||||
TRACE(dinput, "Keyboard registered\n");
|
||||
TRACE("Keyboard registered\n");
|
||||
|
||||
if (ret == DIENUM_STOP)
|
||||
return 0;
|
||||
|
@ -189,7 +189,7 @@ static HRESULT WINAPI IDirectInputAImpl_EnumDevices(
|
|||
strcpy(devInstance.tszProductName, "Wine Mouse");
|
||||
|
||||
ret = lpCallback(&devInstance, pvRef);
|
||||
TRACE(dinput, "Mouse registered\n");
|
||||
TRACE("Mouse registered\n");
|
||||
}
|
||||
|
||||
/* Should also do joystick enumerations.... */
|
||||
|
@ -221,7 +221,7 @@ static HRESULT WINAPI IDirectInputAImpl_CreateDevice(
|
|||
char xbuf[50];
|
||||
|
||||
WINE_StringFromCLSID(rguid,xbuf);
|
||||
FIXME(dinput,"(this=%p,%s,%p,%p): stub\n",This,xbuf,pdev,punk);
|
||||
FIXME("(this=%p,%s,%p,%p): stub\n",This,xbuf,pdev,punk);
|
||||
if ((!memcmp(&GUID_SysKeyboard,rguid,sizeof(GUID_SysKeyboard))) || /* Generic Keyboard */
|
||||
(!memcmp(&DInput_Wine_Keyboard_GUID,rguid,sizeof(GUID_SysKeyboard)))) { /* Wine Keyboard */
|
||||
SysKeyboardAImpl* newDevice;
|
||||
|
@ -253,7 +253,7 @@ static HRESULT WINAPI IDirectInputAImpl_QueryInterface(
|
|||
char xbuf[50];
|
||||
|
||||
WINE_StringFromCLSID(riid,xbuf);
|
||||
TRACE(dinput,"(this=%p,%s,%p)\n",This,xbuf,ppobj);
|
||||
TRACE("(this=%p,%s,%p)\n",This,xbuf,ppobj);
|
||||
if (!memcmp(&IID_IUnknown,riid,sizeof(*riid))) {
|
||||
IDirectInputA_AddRef(iface);
|
||||
*ppobj = This;
|
||||
|
@ -279,7 +279,7 @@ static HRESULT WINAPI IDirectInputAImpl_GetDeviceStatus(LPDIRECTINPUTA iface,
|
|||
char xbuf[50];
|
||||
|
||||
WINE_StringFromCLSID(rguid,xbuf);
|
||||
FIXME(dinput,"(%p)->(%s): stub\n",This,xbuf);
|
||||
FIXME("(%p)->(%s): stub\n",This,xbuf);
|
||||
|
||||
return DI_OK;
|
||||
}
|
||||
|
@ -288,7 +288,7 @@ static HRESULT WINAPI IDirectInputAImpl_RunControlPanel(LPDIRECTINPUTA iface,
|
|||
HWND hwndOwner,
|
||||
DWORD dwFlags) {
|
||||
ICOM_THIS(IDirectInputAImpl,iface);
|
||||
FIXME(dinput,"(%p)->(%08lx,%08lx): stub\n",This, (DWORD) hwndOwner, dwFlags);
|
||||
FIXME("(%p)->(%08lx,%08lx): stub\n",This, (DWORD) hwndOwner, dwFlags);
|
||||
|
||||
return DI_OK;
|
||||
}
|
||||
|
@ -343,7 +343,7 @@ static HRESULT WINAPI IDirectInputDevice2AImpl_SetCooperativeLevel(
|
|||
LPDIRECTINPUTDEVICE2A iface,HWND hwnd,DWORD dwflags
|
||||
) {
|
||||
ICOM_THIS(IDirectInputDevice2AImpl,iface);
|
||||
FIXME(dinput,"(this=%p,0x%08lx,0x%08lx): stub\n",This,(DWORD)hwnd,dwflags);
|
||||
FIXME("(this=%p,0x%08lx,0x%08lx): stub\n",This,(DWORD)hwnd,dwflags);
|
||||
if (TRACE_ON(dinput))
|
||||
_dump_cooperativelevel(dwflags);
|
||||
return 0;
|
||||
|
@ -353,7 +353,7 @@ static HRESULT WINAPI IDirectInputDevice2AImpl_SetEventNotification(
|
|||
LPDIRECTINPUTDEVICE2A iface,HANDLE hnd
|
||||
) {
|
||||
ICOM_THIS(IDirectInputDevice2AImpl,iface);
|
||||
FIXME(dinput,"(this=%p,0x%08lx): stub\n",This,(DWORD)hnd);
|
||||
FIXME("(this=%p,0x%08lx): stub\n",This,(DWORD)hnd);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@ -378,19 +378,19 @@ static HRESULT WINAPI SysKeyboardAImpl_SetProperty(
|
|||
WINE_StringFromCLSID(rguid,xbuf);
|
||||
else
|
||||
sprintf(xbuf,"<special guid %ld>",(DWORD)rguid);
|
||||
TRACE(dinput,"(this=%p,%s,%p)\n",This,xbuf,ph);
|
||||
TRACE(dinput,"(size=%ld,headersize=%ld,obj=%ld,how=%ld\n",
|
||||
TRACE("(this=%p,%s,%p)\n",This,xbuf,ph);
|
||||
TRACE("(size=%ld,headersize=%ld,obj=%ld,how=%ld\n",
|
||||
ph->dwSize,ph->dwHeaderSize,ph->dwObj,ph->dwHow);
|
||||
if (!HIWORD(rguid)) {
|
||||
switch ((DWORD)rguid) {
|
||||
case (DWORD) DIPROP_BUFFERSIZE: {
|
||||
LPCDIPROPDWORD pd = (LPCDIPROPDWORD)ph;
|
||||
|
||||
TRACE(dinput,"(buffersize=%ld)\n",pd->dwData);
|
||||
TRACE("(buffersize=%ld)\n",pd->dwData);
|
||||
break;
|
||||
}
|
||||
default:
|
||||
WARN(dinput,"Unknown type %ld\n",(DWORD)rguid);
|
||||
WARN("Unknown type %ld\n",(DWORD)rguid);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
@ -411,7 +411,7 @@ static HRESULT WINAPI SysKeyboardAImpl_GetDeviceData(
|
|||
{
|
||||
ICOM_THIS(SysKeyboardAImpl,iface);
|
||||
|
||||
TRACE(dinput, "(this=%p,%ld,%p,%p(%ld)),0x%08lx)\n",
|
||||
TRACE("(this=%p,%ld,%p,%p(%ld)),0x%08lx)\n",
|
||||
This,dodsize,dod,entries,entries?*entries:0,flags);
|
||||
|
||||
return KEYBOARD_Driver->pGetDIData(
|
||||
|
@ -421,14 +421,14 @@ static HRESULT WINAPI SysKeyboardAImpl_GetDeviceData(
|
|||
static HRESULT WINAPI SysKeyboardAImpl_Acquire(LPDIRECTINPUTDEVICE2A iface)
|
||||
{
|
||||
ICOM_THIS(SysKeyboardAImpl,iface);
|
||||
TRACE(dinput,"(this=%p): stub\n",This);
|
||||
TRACE("(this=%p): stub\n",This);
|
||||
return 0;
|
||||
}
|
||||
|
||||
static HRESULT WINAPI SysKeyboardAImpl_Unacquire(LPDIRECTINPUTDEVICE2A iface)
|
||||
{
|
||||
ICOM_THIS(SysKeyboardAImpl,iface);
|
||||
TRACE(dinput,"(this=%p): stub\n",This);
|
||||
TRACE("(this=%p): stub\n",This);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@ -440,7 +440,7 @@ static HRESULT WINAPI IDirectInputDevice2AImpl_QueryInterface(
|
|||
char xbuf[50];
|
||||
|
||||
WINE_StringFromCLSID(riid,xbuf);
|
||||
TRACE(dinput,"(this=%p,%s,%p)\n",This,xbuf,ppobj);
|
||||
TRACE("(this=%p,%s,%p)\n",This,xbuf,ppobj);
|
||||
if (!memcmp(&IID_IUnknown,riid,sizeof(*riid))) {
|
||||
IDirectInputDevice2_AddRef(iface);
|
||||
*ppobj = This;
|
||||
|
@ -471,7 +471,7 @@ static HRESULT WINAPI IDirectInputDevice2AImpl_GetCapabilities(
|
|||
LPDIDEVCAPS lpDIDevCaps)
|
||||
{
|
||||
lpDIDevCaps->dwFlags = DIDC_ATTACHED;
|
||||
FIXME(dinput, "stub!\n");
|
||||
FIXME("stub!\n");
|
||||
return DI_OK;
|
||||
}
|
||||
|
||||
|
@ -481,7 +481,7 @@ static HRESULT WINAPI IDirectInputDevice2AImpl_EnumObjects(
|
|||
LPVOID lpvRef,
|
||||
DWORD dwFlags)
|
||||
{
|
||||
FIXME(dinput, "stub!\n");
|
||||
FIXME("stub!\n");
|
||||
#if 0
|
||||
if (lpCallback)
|
||||
lpCallback(NULL, lpvRef);
|
||||
|
@ -494,7 +494,7 @@ static HRESULT WINAPI IDirectInputDevice2AImpl_GetProperty(
|
|||
REFGUID rguid,
|
||||
LPDIPROPHEADER pdiph)
|
||||
{
|
||||
FIXME(dinput, "stub!\n");
|
||||
FIXME("stub!\n");
|
||||
return DI_OK;
|
||||
}
|
||||
|
||||
|
@ -504,7 +504,7 @@ static HRESULT WINAPI IDirectInputDevice2AImpl_GetObjectInfo(
|
|||
DWORD dwObj,
|
||||
DWORD dwHow)
|
||||
{
|
||||
FIXME(dinput, "stub!\n");
|
||||
FIXME("stub!\n");
|
||||
return DI_OK;
|
||||
}
|
||||
|
||||
|
@ -512,7 +512,7 @@ static HRESULT WINAPI IDirectInputDevice2AImpl_GetDeviceInfo(
|
|||
LPDIRECTINPUTDEVICE2A iface,
|
||||
LPDIDEVICEINSTANCEA pdidi)
|
||||
{
|
||||
FIXME(dinput, "stub!\n");
|
||||
FIXME("stub!\n");
|
||||
return DI_OK;
|
||||
}
|
||||
|
||||
|
@ -521,7 +521,7 @@ static HRESULT WINAPI IDirectInputDevice2AImpl_RunControlPanel(
|
|||
HWND hwndOwner,
|
||||
DWORD dwFlags)
|
||||
{
|
||||
FIXME(dinput, "stub!\n");
|
||||
FIXME("stub!\n");
|
||||
return DI_OK;
|
||||
}
|
||||
|
||||
|
@ -531,7 +531,7 @@ static HRESULT WINAPI IDirectInputDevice2AImpl_Initialize(
|
|||
DWORD dwVersion,
|
||||
REFGUID rguid)
|
||||
{
|
||||
FIXME(dinput, "stub!\n");
|
||||
FIXME("stub!\n");
|
||||
return DI_OK;
|
||||
}
|
||||
|
||||
|
@ -546,7 +546,7 @@ static HRESULT WINAPI IDirectInputDevice2AImpl_CreateEffect(
|
|||
LPDIRECTINPUTEFFECT *ppdef,
|
||||
LPUNKNOWN pUnkOuter)
|
||||
{
|
||||
FIXME(dinput, "stub!\n");
|
||||
FIXME("stub!\n");
|
||||
return DI_OK;
|
||||
}
|
||||
|
||||
|
@ -556,7 +556,7 @@ static HRESULT WINAPI IDirectInputDevice2AImpl_EnumEffects(
|
|||
LPVOID lpvRef,
|
||||
DWORD dwFlags)
|
||||
{
|
||||
FIXME(dinput, "stub!\n");
|
||||
FIXME("stub!\n");
|
||||
if (lpCallback)
|
||||
lpCallback(NULL, lpvRef);
|
||||
return DI_OK;
|
||||
|
@ -567,7 +567,7 @@ static HRESULT WINAPI IDirectInputDevice2AImpl_GetEffectInfo(
|
|||
LPDIEFFECTINFOA lpdei,
|
||||
REFGUID rguid)
|
||||
{
|
||||
FIXME(dinput, "stub!\n");
|
||||
FIXME("stub!\n");
|
||||
return DI_OK;
|
||||
}
|
||||
|
||||
|
@ -575,7 +575,7 @@ static HRESULT WINAPI IDirectInputDevice2AImpl_GetForceFeedbackState(
|
|||
LPDIRECTINPUTDEVICE2A iface,
|
||||
LPDWORD pdwOut)
|
||||
{
|
||||
FIXME(dinput, "stub!\n");
|
||||
FIXME("stub!\n");
|
||||
return DI_OK;
|
||||
}
|
||||
|
||||
|
@ -583,7 +583,7 @@ static HRESULT WINAPI IDirectInputDevice2AImpl_SendForceFeedbackCommand(
|
|||
LPDIRECTINPUTDEVICE2A iface,
|
||||
DWORD dwFlags)
|
||||
{
|
||||
FIXME(dinput, "stub!\n");
|
||||
FIXME("stub!\n");
|
||||
return DI_OK;
|
||||
}
|
||||
|
||||
|
@ -593,7 +593,7 @@ static HRESULT WINAPI IDirectInputDevice2AImpl_EnumCreatedEffectObjects(
|
|||
LPVOID lpvRef,
|
||||
DWORD dwFlags)
|
||||
{
|
||||
FIXME(dinput, "stub!\n");
|
||||
FIXME("stub!\n");
|
||||
if (lpCallback)
|
||||
lpCallback(NULL, lpvRef);
|
||||
return DI_OK;
|
||||
|
@ -603,14 +603,14 @@ static HRESULT WINAPI IDirectInputDevice2AImpl_Escape(
|
|||
LPDIRECTINPUTDEVICE2A iface,
|
||||
LPDIEFFESCAPE lpDIEEsc)
|
||||
{
|
||||
FIXME(dinput, "stub!\n");
|
||||
FIXME("stub!\n");
|
||||
return DI_OK;
|
||||
}
|
||||
|
||||
static HRESULT WINAPI IDirectInputDevice2AImpl_Poll(
|
||||
LPDIRECTINPUTDEVICE2A iface)
|
||||
{
|
||||
FIXME(dinput, "stub!\n");
|
||||
FIXME("stub!\n");
|
||||
return DI_OK;
|
||||
}
|
||||
|
||||
|
@ -621,7 +621,7 @@ static HRESULT WINAPI IDirectInputDevice2AImpl_SendDeviceData(
|
|||
LPDWORD pdwInOut,
|
||||
DWORD dwFlags)
|
||||
{
|
||||
FIXME(dinput, "stub!\n");
|
||||
FIXME("stub!\n");
|
||||
return DI_OK;
|
||||
}
|
||||
|
||||
|
@ -664,7 +664,7 @@ static HRESULT WINAPI SysMouseAImpl_SetCooperativeLevel(
|
|||
{
|
||||
ICOM_THIS(SysMouseAImpl,iface);
|
||||
|
||||
TRACE(dinput,"(this=%p,0x%08lx,0x%08lx): stub\n",This,(DWORD)hwnd,dwflags);
|
||||
TRACE("(this=%p,0x%08lx,0x%08lx): stub\n",This,(DWORD)hwnd,dwflags);
|
||||
|
||||
if (TRACE_ON(dinput))
|
||||
_dump_cooperativelevel(dwflags);
|
||||
|
@ -690,13 +690,13 @@ static HRESULT WINAPI SysMouseAImpl_SetDataFormat(
|
|||
ICOM_THIS(SysMouseAImpl,iface);
|
||||
int i;
|
||||
|
||||
TRACE(dinput,"(this=%p,%p)\n",This,df);
|
||||
TRACE("(this=%p,%p)\n",This,df);
|
||||
|
||||
TRACE(dinput,"(df.dwSize=%ld)\n",df->dwSize);
|
||||
TRACE(dinput,"(df.dwObjsize=%ld)\n",df->dwObjSize);
|
||||
TRACE(dinput,"(df.dwFlags=0x%08lx)\n",df->dwFlags);
|
||||
TRACE(dinput,"(df.dwDataSize=%ld)\n",df->dwDataSize);
|
||||
TRACE(dinput,"(df.dwNumObjs=%ld)\n",df->dwNumObjs);
|
||||
TRACE("(df.dwSize=%ld)\n",df->dwSize);
|
||||
TRACE("(df.dwObjsize=%ld)\n",df->dwObjSize);
|
||||
TRACE("(df.dwFlags=0x%08lx)\n",df->dwFlags);
|
||||
TRACE("(df.dwDataSize=%ld)\n",df->dwDataSize);
|
||||
TRACE("(df.dwNumObjs=%ld)\n",df->dwNumObjs);
|
||||
|
||||
for (i=0;i<df->dwNumObjs;i++) {
|
||||
char xbuf[50];
|
||||
|
@ -705,16 +705,16 @@ static HRESULT WINAPI SysMouseAImpl_SetDataFormat(
|
|||
WINE_StringFromCLSID(df->rgodf[i].pguid,xbuf);
|
||||
else
|
||||
strcpy(xbuf,"<no guid>");
|
||||
TRACE(dinput,"df.rgodf[%d].guid %s (%p)\n",i,xbuf, df->rgodf[i].pguid);
|
||||
TRACE(dinput,"df.rgodf[%d].dwOfs %ld\n",i,df->rgodf[i].dwOfs);
|
||||
TRACE(dinput,"dwType 0x%02x,dwInstance %d\n",DIDFT_GETTYPE(df->rgodf[i].dwType),DIDFT_GETINSTANCE(df->rgodf[i].dwType));
|
||||
TRACE(dinput,"df.rgodf[%d].dwFlags 0x%08lx\n",i,df->rgodf[i].dwFlags);
|
||||
TRACE("df.rgodf[%d].guid %s (%p)\n",i,xbuf, df->rgodf[i].pguid);
|
||||
TRACE("df.rgodf[%d].dwOfs %ld\n",i,df->rgodf[i].dwOfs);
|
||||
TRACE("dwType 0x%02x,dwInstance %d\n",DIDFT_GETTYPE(df->rgodf[i].dwType),DIDFT_GETINSTANCE(df->rgodf[i].dwType));
|
||||
TRACE("df.rgodf[%d].dwFlags 0x%08lx\n",i,df->rgodf[i].dwFlags);
|
||||
}
|
||||
|
||||
/* Check size of data format to prevent crashes if the applications
|
||||
sends a smaller buffer */
|
||||
if (df->dwDataSize != sizeof(struct DIMOUSESTATE)) {
|
||||
FIXME(dinput, "non-standard mouse configuration not supported yet.");
|
||||
FIXME("non-standard mouse configuration not supported yet.");
|
||||
return DIERR_INVALIDPARAM;
|
||||
}
|
||||
|
||||
|
@ -759,11 +759,11 @@ static void WINAPI dinput_mouse_event( DWORD dwFlags, DWORD dx, DWORD dy,
|
|||
posX = (dx * GetSystemMetrics(SM_CXSCREEN)) >> 16;
|
||||
posY = (dy * GetSystemMetrics(SM_CYSCREEN)) >> 16;
|
||||
} else {
|
||||
ERR(dinput, "Mouse event not supported...\n");
|
||||
ERR("Mouse event not supported...\n");
|
||||
return ;
|
||||
}
|
||||
|
||||
TRACE(dinput, " %ld %ld ", posX, posY);
|
||||
TRACE(" %ld %ld ", posX, posY);
|
||||
|
||||
if ( dwFlags & MOUSEEVENTF_MOVE ) {
|
||||
if (This->absolute) {
|
||||
|
@ -795,42 +795,42 @@ static void WINAPI dinput_mouse_event( DWORD dwFlags, DWORD dx, DWORD dy,
|
|||
}
|
||||
if ( dwFlags & MOUSEEVENTF_LEFTDOWN ) {
|
||||
if (TRACE_ON(dinput))
|
||||
DUMP(" LD ");
|
||||
DPRINTF(" LD ");
|
||||
|
||||
GEN_EVENT(DIMOFS_BUTTON0, 0xFF, time, 0);
|
||||
}
|
||||
if ( dwFlags & MOUSEEVENTF_LEFTUP ) {
|
||||
if (TRACE_ON(dinput))
|
||||
DUMP(" LU ");
|
||||
DPRINTF(" LU ");
|
||||
|
||||
GEN_EVENT(DIMOFS_BUTTON0, 0x00, time, 0);
|
||||
}
|
||||
if ( dwFlags & MOUSEEVENTF_RIGHTDOWN ) {
|
||||
if (TRACE_ON(dinput))
|
||||
DUMP(" RD ");
|
||||
DPRINTF(" RD ");
|
||||
|
||||
GEN_EVENT(DIMOFS_BUTTON1, 0xFF, time, 0);
|
||||
}
|
||||
if ( dwFlags & MOUSEEVENTF_RIGHTUP ) {
|
||||
if (TRACE_ON(dinput))
|
||||
DUMP(" RU ");
|
||||
DPRINTF(" RU ");
|
||||
|
||||
GEN_EVENT(DIMOFS_BUTTON1, 0x00, time, 0);
|
||||
}
|
||||
if ( dwFlags & MOUSEEVENTF_MIDDLEDOWN ) {
|
||||
if (TRACE_ON(dinput))
|
||||
DUMP(" MD ");
|
||||
DPRINTF(" MD ");
|
||||
|
||||
GEN_EVENT(DIMOFS_BUTTON2, 0xFF, time, 0);
|
||||
}
|
||||
if ( dwFlags & MOUSEEVENTF_MIDDLEUP ) {
|
||||
if (TRACE_ON(dinput))
|
||||
DUMP(" MU ");
|
||||
DPRINTF(" MU ");
|
||||
|
||||
GEN_EVENT(DIMOFS_BUTTON2, 0x00, time, 0);
|
||||
}
|
||||
if (TRACE_ON(dinput))
|
||||
DUMP("\n");
|
||||
DPRINTF("\n");
|
||||
|
||||
This->prevX = posX;
|
||||
This->prevY = posY;
|
||||
|
@ -845,7 +845,7 @@ static HRESULT WINAPI SysMouseAImpl_Acquire(LPDIRECTINPUTDEVICE2A iface)
|
|||
ICOM_THIS(SysMouseAImpl,iface);
|
||||
RECT rect;
|
||||
|
||||
TRACE(dinput,"(this=%p)\n",This);
|
||||
TRACE("(this=%p)\n",This);
|
||||
|
||||
if (This->acquired == 0) {
|
||||
POINT point;
|
||||
|
@ -865,7 +865,7 @@ static HRESULT WINAPI SysMouseAImpl_Acquire(LPDIRECTINPUTDEVICE2A iface)
|
|||
This->win_centerY = (rect.bottom - rect.top ) / 2;
|
||||
|
||||
/* Warp the mouse to the center of the window */
|
||||
TRACE(dinput, "Warping mouse to %ld - %ld\n", This->win_centerX, This->win_centerY);
|
||||
TRACE("Warping mouse to %ld - %ld\n", This->win_centerX, This->win_centerY);
|
||||
point.x = This->win_centerX;
|
||||
point.y = This->win_centerY;
|
||||
MapWindowPoints(This->win, HWND_DESKTOP, &point, 1);
|
||||
|
@ -883,7 +883,7 @@ static HRESULT WINAPI SysMouseAImpl_Unacquire(LPDIRECTINPUTDEVICE2A iface)
|
|||
{
|
||||
ICOM_THIS(SysMouseAImpl,iface);
|
||||
|
||||
TRACE(dinput,"(this=%p)\n",This);
|
||||
TRACE("(this=%p)\n",This);
|
||||
|
||||
/* Reinstall previous mouse event handler */
|
||||
MOUSE_Enable(This->prev_handler);
|
||||
|
@ -911,17 +911,17 @@ static HRESULT WINAPI SysMouseAImpl_GetDeviceState(
|
|||
DWORD rx, ry, state;
|
||||
struct DIMOUSESTATE *mstate = (struct DIMOUSESTATE *) ptr;
|
||||
|
||||
TRACE(dinput,"(this=%p,0x%08lx,%p): \n",This,len,ptr);
|
||||
TRACE("(this=%p,0x%08lx,%p): \n",This,len,ptr);
|
||||
|
||||
/* Check if the buffer is big enough */
|
||||
if (len < sizeof(struct DIMOUSESTATE)) {
|
||||
FIXME(dinput, "unsupported state structure.");
|
||||
FIXME("unsupported state structure.");
|
||||
return DIERR_INVALIDPARAM;
|
||||
}
|
||||
|
||||
/* Get the mouse position */
|
||||
EVENT_QueryPointer(&rx, &ry, &state);
|
||||
TRACE(dinput,"(X:%ld - Y:%ld)\n", rx, ry);
|
||||
TRACE("(X:%ld - Y:%ld)\n", rx, ry);
|
||||
|
||||
/* Fill the mouse state structure */
|
||||
if (This->absolute) {
|
||||
|
@ -944,7 +944,7 @@ static HRESULT WINAPI SysMouseAImpl_GetDeviceState(
|
|||
if (This->need_warp) {
|
||||
POINT point;
|
||||
|
||||
TRACE(dinput, "Warping mouse to %ld - %ld\n", This->win_centerX, This->win_centerY);
|
||||
TRACE("Warping mouse to %ld - %ld\n", This->win_centerX, This->win_centerY);
|
||||
point.x = This->win_centerX;
|
||||
point.y = This->win_centerY;
|
||||
MapWindowPoints(This->win, HWND_DESKTOP, &point, 1);
|
||||
|
@ -953,7 +953,7 @@ static HRESULT WINAPI SysMouseAImpl_GetDeviceState(
|
|||
This->need_warp = 0;
|
||||
}
|
||||
|
||||
TRACE(dinput, "(X: %ld - Y: %ld L: %02x M: %02x R: %02x)\n",
|
||||
TRACE("(X: %ld - Y: %ld L: %02x M: %02x R: %02x)\n",
|
||||
mstate->lX, mstate->lY,
|
||||
mstate->rgbButtons[0], mstate->rgbButtons[2], mstate->rgbButtons[1]);
|
||||
|
||||
|
@ -971,11 +971,11 @@ static HRESULT WINAPI SysMouseAImpl_GetDeviceData(LPDIRECTINPUTDEVICE2A iface,
|
|||
) {
|
||||
ICOM_THIS(SysMouseAImpl,iface);
|
||||
|
||||
TRACE(dinput,"(%p)->(%ld,%p,%p(0x%08lx),0x%08lx)\n",
|
||||
TRACE("(%p)->(%ld,%p,%p(0x%08lx),0x%08lx)\n",
|
||||
This,dodsize,dod,entries,*entries,flags);
|
||||
|
||||
if (flags & DIGDD_PEEK)
|
||||
TRACE(dinput, "DIGDD_PEEK\n");
|
||||
TRACE("DIGDD_PEEK\n");
|
||||
|
||||
if (dod == NULL) {
|
||||
*entries = This->queue_pos;
|
||||
|
@ -983,15 +983,15 @@ static HRESULT WINAPI SysMouseAImpl_GetDeviceData(LPDIRECTINPUTDEVICE2A iface,
|
|||
} else {
|
||||
/* Check for buffer overflow */
|
||||
if (This->queue_pos > *entries) {
|
||||
WARN(dinput, "Buffer overflow not handled properly yet...\n");
|
||||
WARN("Buffer overflow not handled properly yet...\n");
|
||||
This->queue_pos = *entries;
|
||||
}
|
||||
if (dodsize != sizeof(DIDEVICEOBJECTDATA)) {
|
||||
ERR(dinput, "Wrong structure size !\n");
|
||||
ERR("Wrong structure size !\n");
|
||||
return DIERR_INVALIDPARAM;
|
||||
}
|
||||
|
||||
TRACE(dinput, "Application retrieving %d event(s).\n", This->queue_pos);
|
||||
TRACE("Application retrieving %d event(s).\n", This->queue_pos);
|
||||
|
||||
/* Copy the buffered data into the application queue */
|
||||
memcpy(dod, This->data_queue, This->queue_pos * dodsize);
|
||||
|
@ -1004,7 +1004,7 @@ static HRESULT WINAPI SysMouseAImpl_GetDeviceData(LPDIRECTINPUTDEVICE2A iface,
|
|||
if (This->need_warp) {
|
||||
POINT point;
|
||||
|
||||
TRACE(dinput, "Warping mouse to %ld - %ld\n", This->win_centerX, This->win_centerY);
|
||||
TRACE("Warping mouse to %ld - %ld\n", This->win_centerX, This->win_centerY);
|
||||
point.x = This->win_centerX;
|
||||
point.y = This->win_centerY;
|
||||
MapWindowPoints(This->win, HWND_DESKTOP, &point, 1);
|
||||
|
@ -1031,14 +1031,14 @@ static HRESULT WINAPI SysMouseAImpl_SetProperty(LPDIRECTINPUTDEVICE2A iface,
|
|||
else
|
||||
sprintf(xbuf,"<special guid %ld>",(DWORD)rguid);
|
||||
|
||||
TRACE(dinput,"(this=%p,%s,%p)\n",This,xbuf,ph);
|
||||
TRACE("(this=%p,%s,%p)\n",This,xbuf,ph);
|
||||
|
||||
if (!HIWORD(rguid)) {
|
||||
switch ((DWORD)rguid) {
|
||||
case (DWORD) DIPROP_BUFFERSIZE: {
|
||||
LPCDIPROPDWORD pd = (LPCDIPROPDWORD)ph;
|
||||
|
||||
TRACE(dinput,"buffersize = %ld\n",pd->dwData);
|
||||
TRACE("buffersize = %ld\n",pd->dwData);
|
||||
|
||||
This->data_queue = (LPDIDEVICEOBJECTDATA)HeapAlloc(GetProcessHeap(),0,
|
||||
pd->dwData * sizeof(DIDEVICEOBJECTDATA));
|
||||
|
@ -1047,7 +1047,7 @@ static HRESULT WINAPI SysMouseAImpl_SetProperty(LPDIRECTINPUTDEVICE2A iface,
|
|||
break;
|
||||
}
|
||||
default:
|
||||
WARN(dinput,"Unknown type %ld\n",(DWORD)rguid);
|
||||
WARN("Unknown type %ld\n",(DWORD)rguid);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
*
|
||||
*/
|
||||
|
||||
#include "debug.h"
|
||||
#include "debugtools.h"
|
||||
#include "display.h"
|
||||
#include "mouse.h"
|
||||
#include "windef.h"
|
||||
|
@ -46,7 +46,7 @@ VOID WINAPI DISPLAY_MoveCursor( WORD wAbsX, WORD wAbsY )
|
|||
*/
|
||||
VOID WINAPI DISPLAY_CheckCursor( void )
|
||||
{
|
||||
TRACE( cursor, "stub\n" );
|
||||
TRACE("stub\n" );
|
||||
}
|
||||
|
||||
/***********************************************************************
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
#include "hook.h"
|
||||
#include "message.h"
|
||||
#include "task.h"
|
||||
#include "debug.h"
|
||||
#include "debugtools.h"
|
||||
|
||||
DEFAULT_DEBUG_CHANNEL(win)
|
||||
|
||||
|
@ -78,7 +78,7 @@ HWND WINAPI SetFocus( HWND hwnd )
|
|||
/* Get the messageQ for the current thread */
|
||||
if (!(pCurMsgQ = (MESSAGEQUEUE *)QUEUE_Lock( GetFastQueue16() )))
|
||||
{
|
||||
WARN( win, "\tCurrent message queue not found. Exiting!\n" );
|
||||
WARN("\tCurrent message queue not found. Exiting!\n" );
|
||||
goto CLEANUP;
|
||||
}
|
||||
|
||||
|
@ -99,7 +99,7 @@ HWND WINAPI SetFocus( HWND hwnd )
|
|||
pMsgQ = (MESSAGEQUEUE *)QUEUE_Lock( wndPtr->hmemTaskQ );
|
||||
if ( !pMsgQ )
|
||||
{
|
||||
WARN( win, "\tMessage queue not found. Exiting!\n" );
|
||||
WARN("\tMessage queue not found. Exiting!\n" );
|
||||
goto CLEANUP;
|
||||
}
|
||||
|
||||
|
@ -187,7 +187,7 @@ HWND WINAPI GetFocus(void)
|
|||
/* Get the messageQ for the current thread */
|
||||
if (!(pCurMsgQ = (MESSAGEQUEUE *)QUEUE_Lock( GetFastQueue16() )))
|
||||
{
|
||||
WARN( win, "\tCurrent message queue not found. Exiting!\n" );
|
||||
WARN("\tCurrent message queue not found. Exiting!\n" );
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
#include "heap.h"
|
||||
#include "struct32.h"
|
||||
#include "winproc.h"
|
||||
#include "debug.h"
|
||||
#include "debugtools.h"
|
||||
|
||||
DEFAULT_DEBUG_CHANNEL(hook)
|
||||
|
||||
|
@ -227,7 +227,7 @@ static void HOOK_Map16To32Common(INT id, INT code, WPARAM *pwParam,
|
|||
case WH_HARDWARE:
|
||||
case WH_FOREGROUNDIDLE:
|
||||
case WH_CALLWNDPROCRET:
|
||||
FIXME(hook, "\t[%i] 16to32 translation unimplemented\n", id);
|
||||
FIXME("\t[%i] 16to32 translation unimplemented\n", id);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -331,7 +331,7 @@ static void HOOK_UnMap16To32Common(INT id, INT code, WPARAM wParamOrig,
|
|||
case WH_HARDWARE:
|
||||
case WH_FOREGROUNDIDLE:
|
||||
case WH_CALLWNDPROCRET:
|
||||
FIXME(hook, "\t[%i] skipping unmap\n", id);
|
||||
FIXME("\t[%i] skipping unmap\n", id);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
@ -495,7 +495,7 @@ static void HOOK_Map32To16Common(INT id, INT code, WPARAM *pwParam,
|
|||
case WH_HARDWARE:
|
||||
case WH_FOREGROUNDIDLE:
|
||||
case WH_CALLWNDPROCRET:
|
||||
FIXME(hook,"\t[%i] 32to16 translation unimplemented\n", id);
|
||||
FIXME("\t[%i] 32to16 translation unimplemented\n", id);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -645,7 +645,7 @@ static void HOOK_UnMap32To16Common(INT id, INT code, WPARAM wParamOrig,
|
|||
case WH_HARDWARE:
|
||||
case WH_FOREGROUNDIDLE:
|
||||
case WH_CALLWNDPROCRET:
|
||||
FIXME(hook, "\t[%i] skipping unmap\n", id);
|
||||
FIXME("\t[%i] skipping unmap\n", id);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -859,7 +859,7 @@ static HHOOK HOOK_SetHook( INT16 id, LPVOID proc, INT type,
|
|||
|
||||
if ((id < WH_MINHOOK) || (id > WH_MAXHOOK)) return 0;
|
||||
|
||||
TRACE(hook, "Setting hook %d: %08x %04x %08lx\n",
|
||||
TRACE("Setting hook %d: %08x %04x %08lx\n",
|
||||
id, (UINT)proc, hModule, dwThreadId );
|
||||
|
||||
/* Create task queue if none present */
|
||||
|
@ -899,7 +899,7 @@ static HHOOK HOOK_SetHook( INT16 id, LPVOID proc, INT type,
|
|||
data->next = HOOK_systemHooks[id - WH_MINHOOK];
|
||||
HOOK_systemHooks[id - WH_MINHOOK] = handle;
|
||||
}
|
||||
TRACE(hook, "Setting hook %d: ret=%04x [next=%04x]\n",
|
||||
TRACE("Setting hook %d: ret=%04x [next=%04x]\n",
|
||||
id, handle, data->next );
|
||||
|
||||
return (HHOOK)( handle? MAKELONG( handle, HOOK_MAGIC ) : 0 );
|
||||
|
@ -916,13 +916,13 @@ static BOOL HOOK_RemoveHook( HANDLE16 hook )
|
|||
HOOKDATA *data;
|
||||
HANDLE16 *prevHook;
|
||||
|
||||
TRACE(hook, "Removing hook %04x\n", hook );
|
||||
TRACE("Removing hook %04x\n", hook );
|
||||
|
||||
if (!(data = (HOOKDATA *)USER_HEAP_LIN_ADDR(hook))) return FALSE;
|
||||
if (data->flags & HOOK_INUSE)
|
||||
{
|
||||
/* Mark it for deletion later on */
|
||||
WARN(hook, "Hook still running, deletion delayed\n" );
|
||||
WARN("Hook still running, deletion delayed\n" );
|
||||
data->proc = (HOOKPROC)0;
|
||||
return TRUE;
|
||||
}
|
||||
|
@ -998,7 +998,7 @@ static LRESULT HOOK_CallHook( HANDLE16 hook, INT fromtype, INT code,
|
|||
queue->hCurHook = hook;
|
||||
data->flags |= HOOK_INUSE;
|
||||
|
||||
TRACE(hook, "Calling hook %04x: %d %08x %08lx\n",
|
||||
TRACE("Calling hook %04x: %d %08x %08lx\n",
|
||||
hook, code, wParam, lParam );
|
||||
|
||||
/* Suspend window structure locks before calling user code */
|
||||
|
@ -1017,7 +1017,7 @@ static LRESULT HOOK_CallHook( HANDLE16 hook, INT fromtype, INT code,
|
|||
|
||||
WIN_RestoreWndsLock(iWndsLocks);
|
||||
|
||||
TRACE(hook, "Ret hook %04x = %08lx\n", hook, ret );
|
||||
TRACE("Ret hook %04x = %08lx\n", hook, ret );
|
||||
|
||||
data->flags &= ~HOOK_INUSE;
|
||||
queue->hCurHook = prevHook;
|
||||
|
@ -1238,7 +1238,7 @@ HHOOK WINAPI SetWindowsHookEx16( INT16 id, HOOKPROC16 proc, HINSTANCE16 hInst,
|
|||
{
|
||||
if (id == WH_DEBUG)
|
||||
{
|
||||
FIXME(hook, "WH_DEBUG is broken in 16-bit Windows.\n");
|
||||
FIXME("WH_DEBUG is broken in 16-bit Windows.\n");
|
||||
return 0;
|
||||
}
|
||||
return HOOK_SetHook( id, proc, HOOK_WIN16, GetExePtr(hInst), (DWORD)hTask );
|
||||
|
@ -1278,7 +1278,7 @@ BOOL WINAPI UnhookWindowsHook( INT id, HOOKPROC proc )
|
|||
{
|
||||
HANDLE16 hook = HOOK_GetHook( id, GetFastQueue16() );
|
||||
|
||||
TRACE(hook, "%d %08lx\n", id, (DWORD)proc );
|
||||
TRACE("%d %08lx\n", id, (DWORD)proc );
|
||||
|
||||
while (hook)
|
||||
{
|
||||
|
@ -1346,7 +1346,7 @@ LRESULT WINAPI CallNextHookEx( HHOOK hhook, INT code, WPARAM wParam,
|
|||
fromtype = oldhook->flags & HOOK_MAPTYPE;
|
||||
|
||||
if (fromtype == HOOK_WIN16)
|
||||
ERR(hook, "called from 16bit hook!\n");
|
||||
ERR("called from 16bit hook!\n");
|
||||
|
||||
return HOOK_CallHook( next, fromtype, code, wParam, lParam );
|
||||
}
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
#include "scroll.h"
|
||||
#include "struct32.h"
|
||||
#include "tweak.h"
|
||||
#include "debug.h"
|
||||
#include "debugtools.h"
|
||||
|
||||
DEFAULT_DEBUG_CHANNEL(mdi)
|
||||
|
||||
|
@ -123,7 +123,7 @@ static BOOL MDI_MenuDeleteItem(WND* clientWnd, HWND hWndChild )
|
|||
WND *tmpWnd = WIN_FindWndPtr(MDI_GetChildByID(clientWnd,index));
|
||||
if( !tmpWnd )
|
||||
{
|
||||
TRACE(mdi,"no window for id=%i\n",index);
|
||||
TRACE("no window for id=%i\n",index);
|
||||
WIN_ReleaseWndPtr(tmpWnd);
|
||||
continue;
|
||||
}
|
||||
|
@ -212,7 +212,7 @@ static LRESULT MDISetMenu( HWND hwnd, HMENU hmenuFrame,
|
|||
HWND hwndFrame = GetParent(hwnd);
|
||||
HMENU oldFrameMenu = GetMenu(hwndFrame);
|
||||
|
||||
TRACE(mdi, "%04x %04x %04x\n",
|
||||
TRACE("%04x %04x %04x\n",
|
||||
hwnd, hmenuFrame, hmenuWindow);
|
||||
|
||||
ci = (MDICLIENTINFO *) w->wExtra;
|
||||
|
@ -277,10 +277,10 @@ static LRESULT MDIRefreshMenu( HWND hwnd, HMENU hmenuFrame,
|
|||
HWND hwndFrame = GetParent(hwnd);
|
||||
HMENU oldFrameMenu = GetMenu(hwndFrame);
|
||||
|
||||
TRACE(mdi, "%04x %04x %04x\n",
|
||||
TRACE("%04x %04x %04x\n",
|
||||
hwnd, hmenuFrame, hmenuWindow);
|
||||
|
||||
FIXME(mdi,"partially function stub\n");
|
||||
FIXME("partially function stub\n");
|
||||
|
||||
return oldFrameMenu;
|
||||
}
|
||||
|
@ -301,7 +301,7 @@ static HWND MDICreateChild( WND *w, MDICLIENTINFO *ci, HWND parent,
|
|||
WORD wIDmenu = ci->idFirstChild + ci->nActiveChildren;
|
||||
char lpstrDef[]="junk!";
|
||||
|
||||
TRACE(mdi, "origin %i,%i - dim %i,%i, style %08x\n",
|
||||
TRACE("origin %i,%i - dim %i,%i, style %08x\n",
|
||||
cs->x, cs->y, cs->cx, cs->cy, (unsigned)cs->style);
|
||||
/* calculate placement */
|
||||
MDI_CalcDefaultChildPos(w, ci->nTotalCreated++, pos, 0);
|
||||
|
@ -406,7 +406,7 @@ static HWND MDICreateChild( WND *w, MDICLIENTINFO *ci, HWND parent,
|
|||
|
||||
}
|
||||
WIN_ReleaseWndPtr(wnd);
|
||||
TRACE(mdi, "created child - %04x\n",hwnd);
|
||||
TRACE("created child - %04x\n",hwnd);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -443,7 +443,7 @@ static void MDI_ChildGetMinMaxInfo( WND* clientWnd, HWND hwnd,
|
|||
|
||||
WIN_ReleaseWndPtr(childWnd);
|
||||
|
||||
TRACE(mdi,"max rect (%i,%i - %i, %i)\n",
|
||||
TRACE("max rect (%i,%i - %i, %i)\n",
|
||||
rect.left,rect.top,rect.right,rect.bottom);
|
||||
|
||||
}
|
||||
|
@ -466,7 +466,7 @@ static void MDI_SwitchActiveChild( HWND clientHwnd, HWND childHwnd,
|
|||
|
||||
ci = (MDICLIENTINFO *) w->wExtra;
|
||||
|
||||
TRACE(mdi, "from %04x, to %04x\n",childHwnd,hwndTo);
|
||||
TRACE("from %04x, to %04x\n",childHwnd,hwndTo);
|
||||
|
||||
if ( !hwndTo ) goto END; /* no window to switch to */
|
||||
|
||||
|
@ -529,7 +529,7 @@ static LRESULT MDIDestroyChild( WND *w_parent, MDICLIENTINFO *ci,
|
|||
|
||||
ci->nActiveChildren--;
|
||||
|
||||
TRACE(mdi,"child destroyed - %04x\n",child);
|
||||
TRACE("child destroyed - %04x\n",child);
|
||||
|
||||
if (flagDestroy)
|
||||
{
|
||||
|
@ -571,7 +571,7 @@ static LONG MDI_ChildActivate( WND *clientPtr, HWND hWndChild )
|
|||
}
|
||||
}
|
||||
|
||||
TRACE(mdi,"%04x\n", hWndChild);
|
||||
TRACE("%04x\n", hWndChild);
|
||||
|
||||
if( GetActiveWindow() == clientPtr->parent->hwndSelf )
|
||||
isActiveFrameWnd = TRUE;
|
||||
|
@ -705,7 +705,7 @@ static LONG MDICascade(WND* clientWnd, MDICLIENTINFO *ci)
|
|||
while (ppWnd != heapPtr)
|
||||
{
|
||||
ppWnd--;
|
||||
TRACE(mdi, "move %04x to (%ld,%ld) size [%ld,%ld]\n",
|
||||
TRACE("move %04x to (%ld,%ld) size [%ld,%ld]\n",
|
||||
(*ppWnd)->hwndSelf, pos[0].x, pos[0].y, pos[1].x, pos[1].y);
|
||||
|
||||
MDI_CalcDefaultChildPos(clientWnd, n++, pos, delta);
|
||||
|
@ -739,7 +739,7 @@ static void MDITile( WND* wndClient, MDICLIENTINFO *ci, WPARAM wParam )
|
|||
ppWnd = WIN_BuildWinArray(wndClient, BWA_SKIPHIDDEN | BWA_SKIPOWNED | BWA_SKIPICONIC |
|
||||
((wParam & MDITILE_SKIPDISABLED)? BWA_SKIPDISABLED : 0), &total );
|
||||
|
||||
TRACE(mdi,"%u windows to tile\n", total);
|
||||
TRACE("%u windows to tile\n", total);
|
||||
|
||||
if( ppWnd )
|
||||
{
|
||||
|
@ -809,7 +809,7 @@ static BOOL MDI_AugmentFrameMenu( MDICLIENTINFO* ci, WND *frame,
|
|||
HMENU hSysPopup = 0;
|
||||
HBITMAP hSysMenuBitmap = 0;
|
||||
|
||||
TRACE(mdi,"frame %p,child %04x\n",frame,hChild);
|
||||
TRACE("frame %p,child %04x\n",frame,hChild);
|
||||
|
||||
if( !frame->wIDmenu || !child->hSysMenu )
|
||||
{
|
||||
|
@ -823,7 +823,7 @@ static BOOL MDI_AugmentFrameMenu( MDICLIENTINFO* ci, WND *frame,
|
|||
if (!(hSysPopup = LoadMenuA(GetModuleHandleA("USER32"), "SYSMENU")))
|
||||
return 0;
|
||||
|
||||
TRACE(mdi,"\tgot popup %04x in sysmenu %04x\n",
|
||||
TRACE("\tgot popup %04x in sysmenu %04x\n",
|
||||
hSysPopup, child->hSysMenu);
|
||||
|
||||
AppendMenuA(frame->wIDmenu,MF_HELP | MF_BITMAP,
|
||||
|
@ -870,7 +870,7 @@ static BOOL MDI_AugmentFrameMenu( MDICLIENTINFO* ci, WND *frame,
|
|||
if( !InsertMenuA(frame->wIDmenu,0,MF_BYPOSITION | MF_BITMAP | MF_POPUP,
|
||||
hSysPopup, (LPSTR)(DWORD)hSysMenuBitmap))
|
||||
{
|
||||
TRACE(mdi,"not inserted\n");
|
||||
TRACE("not inserted\n");
|
||||
DestroyMenu(hSysPopup);
|
||||
return 0;
|
||||
}
|
||||
|
@ -901,7 +901,7 @@ static BOOL MDI_RestoreFrameMenu( WND *frameWnd, HWND hChild )
|
|||
INT nItems = GetMenuItemCount(frameWnd->wIDmenu) - 1;
|
||||
UINT iId = GetMenuItemID(frameWnd->wIDmenu,nItems) ;
|
||||
|
||||
TRACE(mdi,"frameWnd %p,child %04x\n",frameWnd,hChild);
|
||||
TRACE("frameWnd %p,child %04x\n",frameWnd,hChild);
|
||||
|
||||
if(!(iId == SC_RESTORE || iId == SC_CLOSE) )
|
||||
return 0;
|
||||
|
@ -939,7 +939,7 @@ static void MDI_UpdateFrameText( WND *frameWnd, HWND hClient,
|
|||
WND* clientWnd = WIN_FindWndPtr(hClient);
|
||||
MDICLIENTINFO *ci = (MDICLIENTINFO *) clientWnd->wExtra;
|
||||
|
||||
TRACE(mdi, "repaint %i, frameText %s\n", repaint, (lpTitle)?lpTitle:"NULL");
|
||||
TRACE("repaint %i, frameText %s\n", repaint, (lpTitle)?lpTitle:"NULL");
|
||||
|
||||
if (!clientWnd)
|
||||
return;
|
||||
|
@ -1075,7 +1075,7 @@ LRESULT WINAPI MDIClientWndProc( HWND hwnd, UINT message, WPARAM wParam,
|
|||
NC_HandleNCCalcSize( w, &rect );
|
||||
w->rectClient = rect;
|
||||
|
||||
TRACE(mdi,"Client created - hwnd = %04x, idFirst = %u\n",
|
||||
TRACE("Client created - hwnd = %04x, idFirst = %u\n",
|
||||
hwnd, ci->idFirstChild );
|
||||
|
||||
retvalue = 0;
|
||||
|
@ -1185,7 +1185,7 @@ LRESULT WINAPI MDIClientWndProc( HWND hwnd, UINT message, WPARAM wParam,
|
|||
POINT16 pt = MAKEPOINT16(lParam);
|
||||
HWND16 child = ChildWindowFromPoint16(hwnd, pt);
|
||||
|
||||
TRACE(mdi,"notification from %04x (%i,%i)\n",child,pt.x,pt.y);
|
||||
TRACE("notification from %04x (%i,%i)\n",child,pt.x,pt.y);
|
||||
|
||||
if( child && child != hwnd && child != ci->hwndActiveChild )
|
||||
SetWindowPos(child, 0,0,0,0,0, SWP_NOSIZE | SWP_NOMOVE );
|
||||
|
@ -1251,7 +1251,7 @@ LRESULT WINAPI DefFrameProc16( HWND16 hwnd, HWND16 hwndMDIClient,
|
|||
wndPtr = WIN_FindWndPtr(hwndMDIClient);
|
||||
|
||||
if (!wndPtr) {
|
||||
ERR(mdi,"null wndPtr for mdi window hwndMDIClient=%04x\n",
|
||||
ERR("null wndPtr for mdi window hwndMDIClient=%04x\n",
|
||||
hwndMDIClient);
|
||||
return 0;
|
||||
}
|
||||
|
@ -1468,7 +1468,7 @@ LRESULT WINAPI DefMDIChildProc16( HWND16 hwnd, UINT16 message,
|
|||
goto END;
|
||||
|
||||
case WM_NCPAINT:
|
||||
TRACE(mdi,"WM_NCPAINT for %04x, active %04x\n",
|
||||
TRACE("WM_NCPAINT for %04x, active %04x\n",
|
||||
hwnd, ci->hwndActiveChild );
|
||||
break;
|
||||
|
||||
|
@ -1549,7 +1549,7 @@ LRESULT WINAPI DefMDIChildProc16( HWND16 hwnd, UINT16 message,
|
|||
SendMessage16( hMaxChild, WM_SETREDRAW, TRUE, 0L );
|
||||
}
|
||||
|
||||
TRACE(mdi,"maximizing child %04x\n", hwnd );
|
||||
TRACE("maximizing child %04x\n", hwnd );
|
||||
|
||||
ci->hwndChildMaximized = hwnd; /* !!! */
|
||||
ci->hwndActiveChild = hwnd;
|
||||
|
@ -1757,7 +1757,7 @@ HWND WINAPI CreateMDIWindowA(
|
|||
HINSTANCE hInstance, /* [in] Handle to application instance */
|
||||
LPARAM lParam) /* [in] Application-defined value */
|
||||
{
|
||||
WARN(mdi,"is only single threaded!\n");
|
||||
WARN("is only single threaded!\n");
|
||||
return MDI_CreateMDIWindowA(lpClassName, lpWindowName, dwStyle, X, Y,
|
||||
nWidth, nHeight, hWndParent, hInstance, lParam);
|
||||
}
|
||||
|
@ -1784,12 +1784,12 @@ HWND MDI_CreateMDIWindowA(
|
|||
WND *pWnd=WIN_FindWndPtr(hWndParent);
|
||||
HWND retvalue;
|
||||
|
||||
TRACE(mdi, "(%s,%s,%ld,%d,%d,%d,%d,%x,%d,%ld)\n",
|
||||
TRACE("(%s,%s,%ld,%d,%d,%d,%d,%x,%d,%ld)\n",
|
||||
debugstr_a(lpClassName),debugstr_a(lpWindowName),dwStyle,X,Y,
|
||||
nWidth,nHeight,hWndParent,hInstance,lParam);
|
||||
|
||||
if(!pWnd){
|
||||
ERR(mdi," bad hwnd for MDI-client: %d\n",hWndParent);
|
||||
ERR(" bad hwnd for MDI-client: %d\n",hWndParent);
|
||||
return 0;
|
||||
}
|
||||
cs.szClass=lpClassName;
|
||||
|
@ -1828,7 +1828,7 @@ HWND WINAPI CreateMDIWindowW(
|
|||
HINSTANCE hInstance, /* [in] Handle to application instance */
|
||||
LPARAM lParam) /* [in] Application-defined value */
|
||||
{
|
||||
FIXME(mdi, "(%s,%s,%ld,%d,%d,%d,%d,%x,%d,%ld): stub\n",
|
||||
FIXME("(%s,%s,%ld,%d,%d,%d,%d,%x,%d,%ld): stub\n",
|
||||
debugstr_w(lpClassName),debugstr_w(lpWindowName),dwStyle,X,Y,
|
||||
nWidth,nHeight,hWndParent,hInstance,lParam);
|
||||
return (HWND)NULL;
|
||||
|
@ -1852,7 +1852,7 @@ HWND MDI_CreateMDIWindowW(
|
|||
HINSTANCE hInstance, /* [in] Handle to application instance */
|
||||
LPARAM lParam) /* [in] Application-defined value */
|
||||
{
|
||||
FIXME(mdi, "(%s,%s,%ld,%d,%d,%d,%d,%x,%d,%ld): stub\n",
|
||||
FIXME("(%s,%s,%ld,%d,%d,%d,%d,%x,%d,%ld): stub\n",
|
||||
debugstr_w(lpClassName),debugstr_w(lpWindowName),dwStyle,X,Y,
|
||||
nWidth,nHeight,hWndParent,hInstance,lParam);
|
||||
return (HWND)NULL;
|
||||
|
@ -1912,7 +1912,7 @@ BOOL16 WINAPI TranslateMDISysAccel16( HWND16 hwndClient, LPMSG16 msg )
|
|||
default:
|
||||
return 0;
|
||||
}
|
||||
TRACE(mdi,"wParam = %04x\n", wParam);
|
||||
TRACE("wParam = %04x\n", wParam);
|
||||
SendMessage16( ci->hwndActiveChild, WM_SYSCOMMAND,
|
||||
wParam, (LPARAM)msg->wParam);
|
||||
return 1;
|
||||
|
@ -2078,7 +2078,7 @@ WORD WINAPI
|
|||
CascadeWindows (HWND hwndParent, UINT wFlags, const LPRECT lpRect,
|
||||
UINT cKids, const HWND *lpKids)
|
||||
{
|
||||
FIXME (mdi, "(0x%08x,0x%08x,...,%u,...): stub\n",
|
||||
FIXME("(0x%08x,0x%08x,...,%u,...): stub\n",
|
||||
hwndParent, wFlags, cKids);
|
||||
|
||||
return 0;
|
||||
|
@ -2096,7 +2096,7 @@ WORD WINAPI
|
|||
TileWindows (HWND hwndParent, UINT wFlags, const LPRECT lpRect,
|
||||
UINT cKids, const HWND *lpKids)
|
||||
{
|
||||
FIXME (mdi, "(0x%08x,0x%08x,...,%u,...): stub\n",
|
||||
FIXME("(0x%08x,0x%08x,...,%u,...): stub\n",
|
||||
hwndParent, wFlags, cKids);
|
||||
|
||||
return 0;
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
*
|
||||
*/
|
||||
|
||||
#include "debug.h"
|
||||
#include "debugtools.h"
|
||||
#include "mouse.h"
|
||||
#include "monitor.h"
|
||||
#include "winuser.h"
|
||||
|
@ -67,7 +67,7 @@ void MOUSE_SendEvent( DWORD mouseStatus, DWORD posX, DWORD posY,
|
|||
|
||||
if ( !DefMouseEventProc ) return;
|
||||
|
||||
TRACE( event, "(%04lX,%ld,%ld)\n", mouseStatus, posX, posY );
|
||||
TRACE("(%04lX,%ld,%ld)\n", mouseStatus, posX, posY );
|
||||
|
||||
mouseStatus |= MOUSEEVENTF_ABSOLUTE;
|
||||
posX = (((long)posX << 16) + width-1) / width;
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
#include "dlgs.h"
|
||||
#include "heap.h"
|
||||
#include "ldt.h"
|
||||
#include "debug.h"
|
||||
#include "debugtools.h"
|
||||
#include "debugstr.h"
|
||||
#include "tweak.h"
|
||||
|
||||
|
@ -190,7 +190,7 @@ static LRESULT CALLBACK MSGBOX_DlgProc( HWND hwnd, UINT message,
|
|||
|
||||
default:
|
||||
/* Ok. Ignore all the other messages */
|
||||
TRACE (dialog, "Message number %i is being ignored.\n", message);
|
||||
TRACE("Message number %i is being ignored.\n", message);
|
||||
break;
|
||||
}
|
||||
return 0;
|
||||
|
@ -202,7 +202,7 @@ static LRESULT CALLBACK MSGBOX_DlgProc( HWND hwnd, UINT message,
|
|||
*/
|
||||
INT16 WINAPI MessageBox16( HWND16 hwnd, LPCSTR text, LPCSTR title, UINT16 type)
|
||||
{
|
||||
WARN(dialog,"Messagebox\n");
|
||||
WARN("Messagebox\n");
|
||||
return MessageBoxA( hwnd, text, title, type );
|
||||
}
|
||||
|
||||
|
@ -220,7 +220,7 @@ INT WINAPI MessageBoxA(HWND hWnd, LPCSTR text, LPCSTR title, UINT type)
|
|||
HRSRC hRes;
|
||||
MSGBOXPARAMSA mbox;
|
||||
|
||||
WARN(dialog,"Messagebox\n");
|
||||
WARN("Messagebox\n");
|
||||
|
||||
if(!(hRes = FindResourceA(GetModuleHandleA("USER32"), "MSGBOX", RT_DIALOGA)))
|
||||
return 0;
|
||||
|
@ -248,7 +248,7 @@ INT WINAPI MessageBoxW( HWND hwnd, LPCWSTR text, LPCWSTR title,
|
|||
LPSTR textA = HEAP_strdupWtoA( GetProcessHeap(), 0, text );
|
||||
INT ret;
|
||||
|
||||
WARN(dialog,"Messagebox\n");
|
||||
WARN("Messagebox\n");
|
||||
|
||||
ret = MessageBoxA( hwnd, textA, titleA, type );
|
||||
HeapFree( GetProcessHeap(), 0, titleA );
|
||||
|
@ -263,7 +263,7 @@ INT WINAPI MessageBoxW( HWND hwnd, LPCWSTR text, LPCWSTR title,
|
|||
INT WINAPI MessageBoxExA( HWND hWnd, LPCSTR text, LPCSTR title,
|
||||
UINT type, WORD langid )
|
||||
{
|
||||
WARN(dialog,"Messagebox\n");
|
||||
WARN("Messagebox\n");
|
||||
/* ignore language id for now */
|
||||
return MessageBoxA(hWnd,text,title,type);
|
||||
}
|
||||
|
@ -274,7 +274,7 @@ INT WINAPI MessageBoxExA( HWND hWnd, LPCSTR text, LPCSTR title,
|
|||
INT WINAPI MessageBoxExW( HWND hWnd, LPCWSTR text, LPCWSTR title,
|
||||
UINT type, WORD langid )
|
||||
{
|
||||
WARN(dialog,"Messagebox\n");
|
||||
WARN("Messagebox\n");
|
||||
/* ignore language id for now */
|
||||
return MessageBoxW(hWnd,text,title,type);
|
||||
}
|
||||
|
@ -288,7 +288,7 @@ INT16 WINAPI MessageBoxIndirect16( LPMSGBOXPARAMS16 msgbox )
|
|||
HRSRC hRes;
|
||||
MSGBOXPARAMSA msgbox32;
|
||||
|
||||
WARN(dialog,"Messagebox\n");
|
||||
WARN("Messagebox\n");
|
||||
|
||||
if(!(hRes = FindResourceA(GetModuleHandleA("USER32"), "MSGBOX", RT_DIALOGA)))
|
||||
return 0;
|
||||
|
@ -319,7 +319,7 @@ INT WINAPI MessageBoxIndirectA( LPMSGBOXPARAMSA msgbox )
|
|||
LPVOID template;
|
||||
HRSRC hRes;
|
||||
|
||||
WARN(dialog,"Messagebox\n");
|
||||
WARN("Messagebox\n");
|
||||
|
||||
if(!(hRes = FindResourceA(GetModuleHandleA("USER32"), "MSGBOX", RT_DIALOGA)))
|
||||
return 0;
|
||||
|
@ -337,7 +337,7 @@ INT WINAPI MessageBoxIndirectA( LPMSGBOXPARAMSA msgbox )
|
|||
INT WINAPI MessageBoxIndirectW( LPMSGBOXPARAMSW msgbox )
|
||||
{
|
||||
MSGBOXPARAMSA msgboxa;
|
||||
WARN(dialog,"Messagebox\n");
|
||||
WARN("Messagebox\n");
|
||||
|
||||
memcpy(&msgboxa,msgbox,sizeof(msgboxa));
|
||||
if (msgbox->lpszCaption)
|
||||
|
@ -354,7 +354,7 @@ INT WINAPI MessageBoxIndirectW( LPMSGBOXPARAMSW msgbox )
|
|||
*/
|
||||
void WINAPI FatalAppExit16( UINT16 action, LPCSTR str )
|
||||
{
|
||||
WARN(dialog,"AppExit\n");
|
||||
WARN("AppExit\n");
|
||||
FatalAppExitA( action, str );
|
||||
}
|
||||
|
||||
|
@ -364,7 +364,7 @@ void WINAPI FatalAppExit16( UINT16 action, LPCSTR str )
|
|||
*/
|
||||
void WINAPI FatalAppExitA( UINT action, LPCSTR str )
|
||||
{
|
||||
WARN(dialog,"AppExit\n");
|
||||
WARN("AppExit\n");
|
||||
MessageBoxA( 0, str, NULL, MB_SYSTEMMODAL | MB_OK );
|
||||
ExitProcess(0);
|
||||
}
|
||||
|
@ -375,7 +375,7 @@ void WINAPI FatalAppExitA( UINT action, LPCSTR str )
|
|||
*/
|
||||
void WINAPI FatalAppExitW( UINT action, LPCWSTR str )
|
||||
{
|
||||
WARN(dialog,"AppExit\n");
|
||||
WARN("AppExit\n");
|
||||
MessageBoxW( 0, str, NULL, MB_SYSTEMMODAL | MB_OK );
|
||||
ExitProcess(0);
|
||||
}
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
#include "wine/winuser16.h"
|
||||
#include "win.h"
|
||||
#include "heap.h"
|
||||
#include "debug.h"
|
||||
#include "debugtools.h"
|
||||
|
||||
DEFAULT_DEBUG_CHANNEL(prop)
|
||||
|
||||
|
@ -80,10 +80,10 @@ HANDLE WINAPI GetPropA( HWND hwnd, LPCSTR str )
|
|||
PROPERTY *prop = PROP_FindProp( hwnd, str );
|
||||
|
||||
if (HIWORD(str))
|
||||
TRACE(prop, "(%08x,'%s'): returning %08x\n",
|
||||
TRACE("(%08x,'%s'): returning %08x\n",
|
||||
hwnd, str, prop ? prop->handle : 0 );
|
||||
else
|
||||
TRACE(prop, "(%08x,#%04x): returning %08x\n",
|
||||
TRACE("(%08x,#%04x): returning %08x\n",
|
||||
hwnd, LOWORD(str), prop ? prop->handle : 0 );
|
||||
|
||||
return prop ? prop->handle : 0;
|
||||
|
@ -123,9 +123,9 @@ BOOL WINAPI SetPropA( HWND hwnd, LPCSTR str, HANDLE handle )
|
|||
PROPERTY *prop;
|
||||
|
||||
if (HIWORD(str))
|
||||
TRACE(prop, "%04x '%s' %08x\n", hwnd, str, handle );
|
||||
TRACE("%04x '%s' %08x\n", hwnd, str, handle );
|
||||
else
|
||||
TRACE(prop, "%04x #%04x %08x\n",
|
||||
TRACE("%04x #%04x %08x\n",
|
||||
hwnd, LOWORD(str), handle );
|
||||
|
||||
if (!(prop = PROP_FindProp( hwnd, str )))
|
||||
|
@ -191,9 +191,9 @@ HANDLE WINAPI RemovePropA( HWND hwnd, LPCSTR str )
|
|||
WND *pWnd = WIN_FindWndPtr( hwnd );
|
||||
|
||||
if (HIWORD(str))
|
||||
TRACE(prop, "%04x '%s'\n", hwnd, str );
|
||||
TRACE("%04x '%s'\n", hwnd, str );
|
||||
else
|
||||
TRACE(prop, "%04x #%04x\n", hwnd, LOWORD(str));
|
||||
TRACE("%04x #%04x\n", hwnd, LOWORD(str));
|
||||
|
||||
|
||||
if (!pWnd) return (HANDLE)0;
|
||||
|
@ -277,7 +277,7 @@ INT16 WINAPI EnumProps16( HWND16 hwnd, PROPENUMPROC16 func )
|
|||
WND *pWnd;
|
||||
INT16 ret = -1;
|
||||
|
||||
TRACE(prop, "%04x %08x\n", hwnd, (UINT)func );
|
||||
TRACE("%04x %08x\n", hwnd, (UINT)func );
|
||||
if (!(pWnd = WIN_FindWndPtr( hwnd ))) return -1;
|
||||
for (prop = pWnd->pProp; (prop); prop = next)
|
||||
{
|
||||
|
@ -285,7 +285,7 @@ INT16 WINAPI EnumProps16( HWND16 hwnd, PROPENUMPROC16 func )
|
|||
/* function removes the current property. */
|
||||
next = prop->next;
|
||||
|
||||
TRACE(prop, " Callback: handle=%08x str='%s'\n",
|
||||
TRACE(" Callback: handle=%08x str='%s'\n",
|
||||
prop->handle, prop->string );
|
||||
ret = func( hwnd, SEGPTR_GET(prop->string), prop->handle );
|
||||
if (!ret) break;
|
||||
|
@ -322,7 +322,7 @@ INT WINAPI EnumPropsExA(HWND hwnd, PROPENUMPROCEXA func, LPARAM lParam)
|
|||
WND *pWnd;
|
||||
INT ret = -1;
|
||||
|
||||
TRACE(prop, "%04x %08x %08lx\n",
|
||||
TRACE("%04x %08x %08lx\n",
|
||||
hwnd, (UINT)func, lParam );
|
||||
if (!(pWnd = WIN_FindWndPtr( hwnd ))) return -1;
|
||||
for (prop = pWnd->pProp; (prop); prop = next)
|
||||
|
@ -331,7 +331,7 @@ INT WINAPI EnumPropsExA(HWND hwnd, PROPENUMPROCEXA func, LPARAM lParam)
|
|||
/* function removes the current property. */
|
||||
next = prop->next;
|
||||
|
||||
TRACE(prop, " Callback: handle=%08x str='%s'\n",
|
||||
TRACE(" Callback: handle=%08x str='%s'\n",
|
||||
prop->handle, prop->string );
|
||||
ret = func( hwnd, prop->string, prop->handle, lParam );
|
||||
if (!ret) break;
|
||||
|
@ -350,7 +350,7 @@ INT WINAPI EnumPropsExW(HWND hwnd, PROPENUMPROCEXW func, LPARAM lParam)
|
|||
WND *pWnd;
|
||||
INT ret = -1;
|
||||
|
||||
TRACE(prop, "%04x %08x %08lx\n",
|
||||
TRACE("%04x %08x %08lx\n",
|
||||
hwnd, (UINT)func, lParam );
|
||||
if (!(pWnd = WIN_FindWndPtr( hwnd ))) return -1;
|
||||
for (prop = pWnd->pProp; (prop); prop = next)
|
||||
|
@ -359,7 +359,7 @@ INT WINAPI EnumPropsExW(HWND hwnd, PROPENUMPROCEXW func, LPARAM lParam)
|
|||
/* function removes the current property. */
|
||||
next = prop->next;
|
||||
|
||||
TRACE(prop, " Callback: handle=%08x str='%s'\n",
|
||||
TRACE(" Callback: handle=%08x str='%s'\n",
|
||||
prop->handle, prop->string );
|
||||
if (HIWORD(prop->string))
|
||||
{
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
#include "gdi.h"
|
||||
#include "dce.h"
|
||||
#include "region.h"
|
||||
#include "debug.h"
|
||||
#include "debugtools.h"
|
||||
|
||||
DEFAULT_DEBUG_CHANNEL(scroll)
|
||||
|
||||
|
@ -81,7 +81,7 @@ BOOL WINAPI ScrollDC( HDC hdc, INT dx, INT dy, const RECT *rc,
|
|||
POINT src, dest;
|
||||
DC *dc = (DC *)GDI_GetObjPtr(hdc, DC_MAGIC);
|
||||
|
||||
TRACE(scroll,"%04x %d,%d hrgnUpdate=%04x rcUpdate = %p cliprc = (%d,%d-%d,%d), rc=(%d,%d-%d,%d)\n",
|
||||
TRACE("%04x %d,%d hrgnUpdate=%04x rcUpdate = %p cliprc = (%d,%d-%d,%d), rc=(%d,%d-%d,%d)\n",
|
||||
(HDC16)hdc, dx, dy, hrgnUpdate, rcUpdate,
|
||||
prLClip ? prLClip->left : 0, prLClip ? prLClip->top : 0, prLClip ? prLClip->right : 0, prLClip ? prLClip->bottom : 0,
|
||||
rc ? rc->left : 0, rc ? rc->top : 0, rc ? rc->right : 0, rc ? rc->bottom : 0 );
|
||||
|
@ -259,7 +259,7 @@ INT WINAPI ScrollWindowEx( HWND hwnd, INT dx, INT dy,
|
|||
HRGN hrgnTemp = CreateRectRgnIndirect(&rc);
|
||||
RECT caretrc;
|
||||
|
||||
TRACE(scroll,"%04x, %d,%d hrgnUpdate=%04x rcUpdate = %p \
|
||||
TRACE("%04x, %d,%d hrgnUpdate=%04x rcUpdate = %p \
|
||||
cliprc = (%d,%d-%d,%d), rc=(%d,%d-%d,%d) %04x\n",
|
||||
(HWND16)hwnd, dx, dy, hrgnUpdate, rcUpdate,
|
||||
clipRect?clipRect->left:0, clipRect?clipRect->top:0, clipRect?clipRect->right:0, clipRect?clipRect->bottom:0,
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
#include "sysmetrics.h"
|
||||
#include "winbase.h"
|
||||
#include "winuser.h"
|
||||
#include "debug.h"
|
||||
#include "debugtools.h"
|
||||
#include "tweak.h"
|
||||
#include "winreg.h"
|
||||
#include "winversion.h"
|
||||
|
@ -251,7 +251,7 @@ HBRUSH WINAPI GetSysColorBrush( INT index )
|
|||
{
|
||||
if (0 <= index && index < NUM_SYS_COLORS)
|
||||
return SysColorBrushes[index];
|
||||
WARN(syscolor, "Unknown index(%d)\n", index );
|
||||
WARN("Unknown index(%d)\n", index );
|
||||
return GetStockObject(LTGRAY_BRUSH);
|
||||
}
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
#include "winproc.h"
|
||||
#include "services.h"
|
||||
#include "message.h"
|
||||
#include "debug.h"
|
||||
#include "debugtools.h"
|
||||
|
||||
DEFAULT_DEBUG_CHANNEL(timer)
|
||||
|
||||
|
@ -136,7 +136,7 @@ static void CALLBACK TIMER_CheckTimer( ULONG_PTR timer_ptr )
|
|||
|
||||
if ( !pTimer->expired )
|
||||
{
|
||||
TRACE(timer, "Timer expired: %04x, %04x, %04x, %08lx\n",
|
||||
TRACE("Timer expired: %04x, %04x, %04x, %08lx\n",
|
||||
pTimer->hwnd, pTimer->msg, pTimer->id, (DWORD)pTimer->proc);
|
||||
|
||||
pTimer->expired = TRUE;
|
||||
|
@ -177,7 +177,7 @@ BOOL TIMER_GetTimerMsg( MSG *msg, HWND hwnd,
|
|||
return FALSE; /* No timer */
|
||||
}
|
||||
|
||||
TRACE(timer, "Timer got message: %04x, %04x, %04x, %08lx\n",
|
||||
TRACE("Timer got message: %04x, %04x, %04x, %08lx\n",
|
||||
pTimer->hwnd, pTimer->msg, pTimer->id, (DWORD)pTimer->proc);
|
||||
|
||||
if (remove)
|
||||
|
@ -251,7 +251,7 @@ static UINT TIMER_SetTimer( HWND hwnd, UINT id, UINT timeout,
|
|||
pTimer->hService = SERVICE_AddTimer( timeout * 1000L,
|
||||
TIMER_CheckTimer, (ULONG_PTR)pTimer );
|
||||
|
||||
TRACE(timer, "Timer added: %p, %04x, %04x, %04x, %08lx\n",
|
||||
TRACE("Timer added: %p, %04x, %04x, %04x, %08lx\n",
|
||||
pTimer, pTimer->hwnd, pTimer->msg, pTimer->id,
|
||||
(DWORD)pTimer->proc );
|
||||
|
||||
|
@ -303,7 +303,7 @@ static BOOL TIMER_KillTimer( HWND hwnd, UINT id, BOOL sys )
|
|||
UINT16 WINAPI SetTimer16( HWND16 hwnd, UINT16 id, UINT16 timeout,
|
||||
TIMERPROC16 proc )
|
||||
{
|
||||
TRACE(timer, "%04x %d %d %08lx\n",
|
||||
TRACE("%04x %d %d %08lx\n",
|
||||
hwnd, id, timeout, (LONG)proc );
|
||||
return TIMER_SetTimer( hwnd, id, timeout, (WNDPROC16)proc,
|
||||
WIN_PROC_16, FALSE );
|
||||
|
@ -316,7 +316,7 @@ UINT16 WINAPI SetTimer16( HWND16 hwnd, UINT16 id, UINT16 timeout,
|
|||
UINT WINAPI SetTimer( HWND hwnd, UINT id, UINT timeout,
|
||||
TIMERPROC proc )
|
||||
{
|
||||
TRACE(timer, "%04x %d %d %08lx\n",
|
||||
TRACE("%04x %d %d %08lx\n",
|
||||
hwnd, id, timeout, (LONG)proc );
|
||||
return TIMER_SetTimer( hwnd, id, timeout, (WNDPROC16)proc,
|
||||
WIN_PROC_32A, FALSE );
|
||||
|
@ -329,7 +329,7 @@ UINT WINAPI SetTimer( HWND hwnd, UINT id, UINT timeout,
|
|||
UINT16 WINAPI SetSystemTimer16( HWND16 hwnd, UINT16 id, UINT16 timeout,
|
||||
TIMERPROC16 proc )
|
||||
{
|
||||
TRACE(timer, "%04x %d %d %08lx\n",
|
||||
TRACE("%04x %d %d %08lx\n",
|
||||
hwnd, id, timeout, (LONG)proc );
|
||||
return TIMER_SetTimer( hwnd, id, timeout, (WNDPROC16)proc,
|
||||
WIN_PROC_16, TRUE );
|
||||
|
@ -342,7 +342,7 @@ UINT16 WINAPI SetSystemTimer16( HWND16 hwnd, UINT16 id, UINT16 timeout,
|
|||
UINT WINAPI SetSystemTimer( HWND hwnd, UINT id, UINT timeout,
|
||||
TIMERPROC proc )
|
||||
{
|
||||
TRACE(timer, "%04x %d %d %08lx\n",
|
||||
TRACE("%04x %d %d %08lx\n",
|
||||
hwnd, id, timeout, (LONG)proc );
|
||||
return TIMER_SetTimer( hwnd, id, timeout, (WNDPROC16)proc,
|
||||
WIN_PROC_32A, TRUE );
|
||||
|
@ -354,7 +354,7 @@ UINT WINAPI SetSystemTimer( HWND hwnd, UINT id, UINT timeout,
|
|||
*/
|
||||
BOOL16 WINAPI KillTimer16( HWND16 hwnd, UINT16 id )
|
||||
{
|
||||
TRACE(timer, "%04x %d\n", hwnd, id );
|
||||
TRACE("%04x %d\n", hwnd, id );
|
||||
return TIMER_KillTimer( hwnd, id, FALSE );
|
||||
}
|
||||
|
||||
|
@ -364,7 +364,7 @@ BOOL16 WINAPI KillTimer16( HWND16 hwnd, UINT16 id )
|
|||
*/
|
||||
BOOL WINAPI KillTimer( HWND hwnd, UINT id )
|
||||
{
|
||||
TRACE(timer, "%04x %d\n", hwnd, id );
|
||||
TRACE("%04x %d\n", hwnd, id );
|
||||
return TIMER_KillTimer( hwnd, id, FALSE );
|
||||
}
|
||||
|
||||
|
@ -374,7 +374,7 @@ BOOL WINAPI KillTimer( HWND hwnd, UINT id )
|
|||
*/
|
||||
BOOL16 WINAPI KillSystemTimer16( HWND16 hwnd, UINT16 id )
|
||||
{
|
||||
TRACE(timer, "%04x %d\n", hwnd, id );
|
||||
TRACE("%04x %d\n", hwnd, id );
|
||||
return TIMER_KillTimer( hwnd, id, TRUE );
|
||||
}
|
||||
|
||||
|
@ -384,6 +384,6 @@ BOOL16 WINAPI KillSystemTimer16( HWND16 hwnd, UINT16 id )
|
|||
*/
|
||||
BOOL WINAPI KillSystemTimer( HWND hwnd, UINT id )
|
||||
{
|
||||
TRACE(timer, "%04x %d\n", hwnd, id );
|
||||
TRACE("%04x %d\n", hwnd, id );
|
||||
return TIMER_KillTimer( hwnd, id, TRUE );
|
||||
}
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <unistd.h>
|
||||
#include "debug.h"
|
||||
#include "debugtools.h"
|
||||
#include "wine/winuser16.h"
|
||||
#include "wine/winbase16.h"
|
||||
#include "heap.h"
|
||||
|
@ -86,7 +86,7 @@ BOOL WINAPI WinHelpA( HWND hWnd, LPCSTR lpHelpFile, UINT wCommand,
|
|||
dsize = ((LPHELPWININFO)dwData)->wStructSize;
|
||||
break;
|
||||
default:
|
||||
WARN( win,"Unknown help command %d\n",wCommand);
|
||||
WARN("Unknown help command %d\n",wCommand);
|
||||
return FALSE;
|
||||
}
|
||||
if(lpHelpFile)
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
#include "winpos.h"
|
||||
#include "dce.h"
|
||||
#include "nonclient.h"
|
||||
#include "debug.h"
|
||||
#include "debugtools.h"
|
||||
#include "local.h"
|
||||
#include "ldt.h"
|
||||
|
||||
|
@ -91,7 +91,7 @@ void WINPOS_CheckInternalPos( WND* wndPtr )
|
|||
pMsgQ = (MESSAGEQUEUE *)QUEUE_Lock( wndPtr->hmemTaskQ );
|
||||
if ( !pMsgQ )
|
||||
{
|
||||
WARN( win, "\tMessage queue not found. Exiting!\n" );
|
||||
WARN("\tMessage queue not found. Exiting!\n" );
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -100,7 +100,7 @@ void WINPOS_CheckInternalPos( WND* wndPtr )
|
|||
if( hwnd == PERQDATA_GetActiveWnd( pMsgQ->pQData ) )
|
||||
{
|
||||
PERQDATA_SetActiveWnd( pMsgQ->pQData, 0 );
|
||||
WARN(win, "\tattempt to activate destroyed window!\n");
|
||||
WARN("\tattempt to activate destroyed window!\n");
|
||||
}
|
||||
|
||||
if( lpPos )
|
||||
|
@ -274,13 +274,13 @@ BOOL WINAPI GetWindowRgn ( HWND hwnd, HRGN hrgn )
|
|||
WND * wndPtr = WIN_FindWndPtr( hwnd );
|
||||
if (!wndPtr) return (ERROR);
|
||||
|
||||
FIXME (win, "GetWindowRgn: doesn't really do regions\n");
|
||||
FIXME("GetWindowRgn: doesn't really do regions\n");
|
||||
|
||||
memset (&rect, 0, sizeof(rect));
|
||||
|
||||
GetWindowRect ( hwnd, &rect );
|
||||
|
||||
FIXME (win, "Check whether a valid region here\n");
|
||||
FIXME("Check whether a valid region here\n");
|
||||
|
||||
SetRectRgn ( hrgn, rect.left, rect.top, rect.right, rect.bottom );
|
||||
|
||||
|
@ -295,7 +295,7 @@ INT WINAPI SetWindowRgn( HWND hwnd, HRGN hrgn,BOOL bRedraw)
|
|||
|
||||
{
|
||||
|
||||
FIXME (win, "SetWindowRgn: stub\n");
|
||||
FIXME("SetWindowRgn: stub\n");
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
@ -306,7 +306,7 @@ INT16 WINAPI SetWindowRgn16( HWND16 hwnd, HRGN16 hrgn,BOOL16 bRedraw)
|
|||
|
||||
{
|
||||
|
||||
FIXME (win, "SetWindowRgn16: stub\n");
|
||||
FIXME("SetWindowRgn16: stub\n");
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
@ -656,7 +656,7 @@ static void WINPOS_GetWinOffset( HWND hwndFrom, HWND hwndTo,
|
|||
{
|
||||
if (!(wndPtr = WIN_FindWndPtr( hwndFrom )))
|
||||
{
|
||||
ERR(win,"bad hwndFrom = %04x\n",hwndFrom);
|
||||
ERR("bad hwndFrom = %04x\n",hwndFrom);
|
||||
return;
|
||||
}
|
||||
while (wndPtr->parent)
|
||||
|
@ -673,7 +673,7 @@ static void WINPOS_GetWinOffset( HWND hwndFrom, HWND hwndTo,
|
|||
{
|
||||
if (!(wndPtr = WIN_FindWndPtr( hwndTo )))
|
||||
{
|
||||
ERR(win,"bad hwndTo = %04x\n", hwndTo );
|
||||
ERR("bad hwndTo = %04x\n", hwndTo );
|
||||
return;
|
||||
}
|
||||
while (wndPtr->parent)
|
||||
|
@ -789,7 +789,7 @@ HWND WINAPI GetActiveWindow(void)
|
|||
/* Get the messageQ for the current thread */
|
||||
if (!(pCurMsgQ = (MESSAGEQUEUE *)QUEUE_Lock( GetFastQueue16() )))
|
||||
{
|
||||
WARN( win, "\tCurrent message queue not found. Exiting!\n" );
|
||||
WARN("\tCurrent message queue not found. Exiting!\n" );
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@ -839,7 +839,7 @@ HWND WINAPI SetActiveWindow( HWND hwnd )
|
|||
/* Get the messageQ for the current thread */
|
||||
if (!(pCurMsgQ = (MESSAGEQUEUE *)QUEUE_Lock( GetFastQueue16() )))
|
||||
{
|
||||
WARN( win, "\tCurrent message queue not found. Exiting!\n" );
|
||||
WARN("\tCurrent message queue not found. Exiting!\n" );
|
||||
goto CLEANUP;
|
||||
}
|
||||
|
||||
|
@ -847,7 +847,7 @@ HWND WINAPI SetActiveWindow( HWND hwnd )
|
|||
pMsgQ = (MESSAGEQUEUE *)QUEUE_Lock( wndPtr->hmemTaskQ );
|
||||
if ( !pMsgQ )
|
||||
{
|
||||
WARN( win, "\tWindow message queue not found. Exiting!\n" );
|
||||
WARN("\tWindow message queue not found. Exiting!\n" );
|
||||
goto CLEANUP;
|
||||
}
|
||||
|
||||
|
@ -935,7 +935,7 @@ HWND16 WINAPI GetShellWindow16(void)
|
|||
* SetShellWindow (USER32.504)
|
||||
*/
|
||||
HWND WINAPI SetShellWindow(HWND hwndshell)
|
||||
{ WARN(win, "(hWnd=%08x) semi stub\n",hwndshell );
|
||||
{ WARN("(hWnd=%08x) semi stub\n",hwndshell );
|
||||
|
||||
hGlobalShellWindow = hwndshell;
|
||||
return hGlobalShellWindow;
|
||||
|
@ -946,7 +946,7 @@ HWND WINAPI SetShellWindow(HWND hwndshell)
|
|||
* GetShellWindow (USER32.287)
|
||||
*/
|
||||
HWND WINAPI GetShellWindow(void)
|
||||
{ WARN(win, "(hWnd=%x) semi stub\n",hGlobalShellWindow );
|
||||
{ WARN("(hWnd=%x) semi stub\n",hGlobalShellWindow );
|
||||
|
||||
return hGlobalShellWindow;
|
||||
}
|
||||
|
@ -988,7 +988,7 @@ BOOL WINAPI MoveWindow( HWND hwnd, INT x, INT y, INT cx, INT cy,
|
|||
{
|
||||
int flags = SWP_NOZORDER | SWP_NOACTIVATE;
|
||||
if (!repaint) flags |= SWP_NOREDRAW;
|
||||
TRACE(win, "%04x %d,%d %dx%d %d\n",
|
||||
TRACE("%04x %d,%d %dx%d %d\n",
|
||||
hwnd, x, y, cx, cy, repaint );
|
||||
return SetWindowPos( hwnd, 0, x, y, cx, cy, flags );
|
||||
}
|
||||
|
@ -1054,7 +1054,7 @@ BOOL WINPOS_ShowIconTitle( WND* pWnd, BOOL bShow )
|
|||
{
|
||||
HWND16 hWnd = lpPos->hwndIconTitle;
|
||||
|
||||
TRACE(win,"0x%04x %i\n", pWnd->hwndSelf, (bShow != 0) );
|
||||
TRACE("0x%04x %i\n", pWnd->hwndSelf, (bShow != 0) );
|
||||
|
||||
if( !hWnd )
|
||||
lpPos->hwndIconTitle = hWnd = ICONTITLE_Create( pWnd );
|
||||
|
@ -1133,7 +1133,7 @@ void WINPOS_GetMinMaxInfo( WND *wndPtr, POINT *maxSize, POINT *maxPos,
|
|||
|
||||
/* Some sanity checks */
|
||||
|
||||
TRACE(win,"%ld %ld / %ld %ld / %ld %ld / %ld %ld\n",
|
||||
TRACE("%ld %ld / %ld %ld / %ld %ld / %ld %ld\n",
|
||||
MinMax.ptMaxSize.x, MinMax.ptMaxSize.y,
|
||||
MinMax.ptMaxPosition.x, MinMax.ptMaxPosition.y,
|
||||
MinMax.ptMaxTrackSize.x, MinMax.ptMaxTrackSize.y,
|
||||
|
@ -1162,7 +1162,7 @@ UINT WINPOS_MinMaximize( WND* wndPtr, UINT16 cmd, LPRECT16 lpRect )
|
|||
POINT pt, size;
|
||||
LPINTERNALPOS lpPos;
|
||||
|
||||
TRACE(win,"0x%04x %u\n", wndPtr->hwndSelf, cmd );
|
||||
TRACE("0x%04x %u\n", wndPtr->hwndSelf, cmd );
|
||||
|
||||
size.x = wndPtr->rectWindow.left; size.y = wndPtr->rectWindow.top;
|
||||
lpPos = WINPOS_InitInternalPos( wndPtr, size, &wndPtr->rectWindow );
|
||||
|
@ -1289,7 +1289,7 @@ BOOL WINAPI ShowWindow( HWND hwnd, INT cmd )
|
|||
|
||||
if (!wndPtr) return FALSE;
|
||||
|
||||
TRACE(win,"hwnd=%04x, cmd=%d\n", hwnd, cmd);
|
||||
TRACE("hwnd=%04x, cmd=%d\n", hwnd, cmd);
|
||||
|
||||
wasVisible = (wndPtr->dwStyle & WS_VISIBLE) != 0;
|
||||
|
||||
|
@ -1653,7 +1653,7 @@ BOOL WINPOS_SetActiveWindow( HWND hWnd, BOOL fMouse, BOOL fChangeFocus)
|
|||
HWND hwndActive = 0;
|
||||
BOOL bRet = 0;
|
||||
|
||||
TRACE( win, "(%04x, %d, %d)\n", hWnd, fMouse, fChangeFocus );
|
||||
TRACE("(%04x, %d, %d)\n", hWnd, fMouse, fChangeFocus );
|
||||
|
||||
/* Get current active window from the active queue */
|
||||
if ( hActiveQueue )
|
||||
|
@ -1679,7 +1679,7 @@ BOOL WINPOS_SetActiveWindow( HWND hWnd, BOOL fMouse, BOOL fChangeFocus)
|
|||
WIN_ReleaseWndPtr(wndTemp);
|
||||
}
|
||||
else
|
||||
TRACE(win,"no current active window.\n");
|
||||
TRACE("no current active window.\n");
|
||||
|
||||
/* call CBT hook chain */
|
||||
if ((cbtStruct = SEGPTR_NEW(CBTACTIVATESTRUCT16)))
|
||||
|
@ -2011,7 +2011,7 @@ LONG WINPOS_SendNCCalcSize( HWND hwnd, BOOL calcValidRect,
|
|||
}
|
||||
result = SendMessageA( hwnd, WM_NCCALCSIZE, calcValidRect,
|
||||
(LPARAM)¶ms );
|
||||
TRACE(win, "%d,%d-%d,%d\n",
|
||||
TRACE("%d,%d-%d,%d\n",
|
||||
params.rgrc[0].left, params.rgrc[0].top,
|
||||
params.rgrc[0].right, params.rgrc[0].bottom );
|
||||
*newClientRect = params.rgrc[0];
|
||||
|
@ -2075,7 +2075,7 @@ static HWND SWP_DoOwnedPopups(WND* pDesktop, WND* wndPtr, HWND hwndInsertAfter,
|
|||
{
|
||||
WND* w = WIN_LockWndPtr(pDesktop->child);
|
||||
|
||||
WARN(win, "(%04x) hInsertAfter = %04x\n", wndPtr->hwndSelf, hwndInsertAfter );
|
||||
WARN("(%04x) hInsertAfter = %04x\n", wndPtr->hwndSelf, hwndInsertAfter );
|
||||
|
||||
if( (wndPtr->dwStyle & WS_POPUP) && wndPtr->owner )
|
||||
{
|
||||
|
@ -2138,12 +2138,12 @@ static UINT SWP_CopyValidBits( WND* Wnd, HRGN* pVisRgn,
|
|||
HRGN newVisRgn, dirtyRgn;
|
||||
INT my = COMPLEXREGION;
|
||||
|
||||
TRACE(win,"\tnew wnd=(%i %i-%i %i) old wnd=(%i %i-%i %i), %04x\n",
|
||||
TRACE("\tnew wnd=(%i %i-%i %i) old wnd=(%i %i-%i %i), %04x\n",
|
||||
Wnd->rectWindow.left, Wnd->rectWindow.top,
|
||||
Wnd->rectWindow.right, Wnd->rectWindow.bottom,
|
||||
lpOldWndRect->left, lpOldWndRect->top,
|
||||
lpOldWndRect->right, lpOldWndRect->bottom, *pVisRgn);
|
||||
TRACE(win,"\tnew client=(%i %i-%i %i) old client=(%i %i-%i %i)\n",
|
||||
TRACE("\tnew client=(%i %i-%i %i) old client=(%i %i-%i %i)\n",
|
||||
Wnd->rectClient.left, Wnd->rectClient.top,
|
||||
Wnd->rectClient.right, Wnd->rectClient.bottom,
|
||||
lpOldClientRect->left, lpOldClientRect->top,
|
||||
|
@ -2162,7 +2162,7 @@ static UINT SWP_CopyValidBits( WND* Wnd, HRGN* pVisRgn,
|
|||
{
|
||||
nocopy:
|
||||
|
||||
TRACE(win,"\twon't copy anything!\n");
|
||||
TRACE("\twon't copy anything!\n");
|
||||
|
||||
/* set dirtyRgn to the sum of old and new visible regions
|
||||
* in parent client coordinates */
|
||||
|
@ -2237,7 +2237,7 @@ nocopy:
|
|||
else
|
||||
OffsetRect( &r, -lpOldWndRect->left, -lpOldWndRect->top );
|
||||
|
||||
TRACE(win,"\tcomputing dirty region!\n");
|
||||
TRACE("\tcomputing dirty region!\n");
|
||||
|
||||
/* Compute combined dirty region (old + new - valid) */
|
||||
CombineRgn( *pVisRgn, *pVisRgn, newVisRgn, RGN_OR);
|
||||
|
@ -2471,7 +2471,7 @@ BOOL WINAPI SetWindowPos( HWND hwnd, HWND hwndInsertAfter,
|
|||
}
|
||||
}
|
||||
|
||||
TRACE(win,"hwnd %04x, swp (%i,%i)-(%i,%i) flags %08x\n",
|
||||
TRACE("hwnd %04x, swp (%i,%i)-(%i,%i) flags %08x\n",
|
||||
hwnd, x, y, x+cx, y+cy, flags);
|
||||
|
||||
bChangePos = !(flags & SWP_WINE_NOHOSTMOVE);
|
||||
|
@ -2485,7 +2485,7 @@ BOOL WINAPI SetWindowPos( HWND hwnd, HWND hwndInsertAfter,
|
|||
if (hwnd == GetDesktopWindow()) return FALSE;
|
||||
if (!(wndPtr = WIN_FindWndPtr( hwnd ))) return FALSE;
|
||||
|
||||
TRACE(win,"\tcurrent (%i,%i)-(%i,%i), style %08x\n", wndPtr->rectWindow.left, wndPtr->rectWindow.top,
|
||||
TRACE("\tcurrent (%i,%i)-(%i,%i), style %08x\n", wndPtr->rectWindow.left, wndPtr->rectWindow.top,
|
||||
wndPtr->rectWindow.right, wndPtr->rectWindow.bottom, (unsigned)wndPtr->dwStyle );
|
||||
|
||||
/* Fix redundant flags */
|
||||
|
@ -2870,7 +2870,7 @@ Pos: /* -----------------------------------------------------------------------
|
|||
|
||||
/* And last, send the WM_WINDOWPOSCHANGED message */
|
||||
|
||||
TRACE(win,"\tstatus flags = %04x\n", winpos.flags & SWP_AGG_STATUSFLAGS);
|
||||
TRACE("\tstatus flags = %04x\n", winpos.flags & SWP_AGG_STATUSFLAGS);
|
||||
|
||||
if ( resync ||
|
||||
(((winpos.flags & SWP_AGG_STATUSFLAGS) != SWP_AGG_NOPOSCHANGE) &&
|
||||
|
@ -3060,7 +3060,7 @@ BOOL WINAPI EndDeferWindowPos( HDWP hdwp )
|
|||
*/
|
||||
void WINAPI TileChildWindows16( HWND16 parent, WORD action )
|
||||
{
|
||||
FIXME(win, "(%04x, %d): stub\n", parent, action);
|
||||
FIXME("(%04x, %d): stub\n", parent, action);
|
||||
}
|
||||
|
||||
/***********************************************************************
|
||||
|
@ -3068,7 +3068,7 @@ void WINAPI TileChildWindows16( HWND16 parent, WORD action )
|
|||
*/
|
||||
void WINAPI CascadeChildWindows16( HWND16 parent, WORD action )
|
||||
{
|
||||
FIXME(win, "(%04x, %d): stub\n", parent, action);
|
||||
FIXME("(%04x, %d): stub\n", parent, action);
|
||||
}
|
||||
|
||||
/***********************************************************************
|
||||
|
@ -3101,7 +3101,7 @@ HRESULT WINAPI GetProgmanWindow ( )
|
|||
*/
|
||||
HRESULT WINAPI SetShellWindowEx ( HWND hwndProgman, HWND hwndListView )
|
||||
{
|
||||
FIXME(win,"0x%08x 0x%08x stub\n",hwndProgman ,hwndListView );
|
||||
FIXME("0x%08x 0x%08x stub\n",hwndProgman ,hwndListView );
|
||||
hGlobalShellWindow = hwndProgman;
|
||||
return hGlobalShellWindow;
|
||||
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
|
||||
#include "wine/winuser16.h"
|
||||
#include "clipboard.h"
|
||||
#include "debug.h"
|
||||
#include "debugtools.h"
|
||||
#include "message.h"
|
||||
#include "win.h"
|
||||
#include "windef.h"
|
||||
|
@ -38,7 +38,7 @@ static Window selectionPrevWindow = None;
|
|||
*/
|
||||
static void X11DRV_CLIPBOARD_CheckSelection(WND* pWnd)
|
||||
{
|
||||
TRACE(clipboard,"\tchecking %08x\n",
|
||||
TRACE("\tchecking %08x\n",
|
||||
(unsigned) X11DRV_WND_GetXWindow(pWnd)
|
||||
);
|
||||
|
||||
|
@ -54,7 +54,7 @@ static void X11DRV_CLIPBOARD_CheckSelection(WND* pWnd)
|
|||
if( pWnd->parent->child != pWnd )
|
||||
selectionWindow = X11DRV_WND_GetXWindow(pWnd->parent->child);
|
||||
|
||||
TRACE(clipboard,"\tswitching selection from %08x to %08x\n",
|
||||
TRACE("\tswitching selection from %08x to %08x\n",
|
||||
(unsigned)selectionPrevWindow, (unsigned)selectionWindow);
|
||||
|
||||
if( selectionWindow != None )
|
||||
|
@ -74,7 +74,7 @@ static void X11DRV_CLIPBOARD_ReadSelection(Window w, Atom prop)
|
|||
HANDLE hText = 0;
|
||||
LPWINE_CLIPFORMAT lpFormat = ClipFormats;
|
||||
|
||||
TRACE(clipboard,"Reading X selection...\n");
|
||||
TRACE("Reading X selection...\n");
|
||||
|
||||
if(prop != None)
|
||||
{
|
||||
|
@ -83,16 +83,16 @@ static void X11DRV_CLIPBOARD_ReadSelection(Window w, Atom prop)
|
|||
unsigned long nitems,remain;
|
||||
unsigned char* val=NULL;
|
||||
|
||||
TRACE(clipboard,"\tgot property %s\n",TSXGetAtomName(display,prop));
|
||||
TRACE("\tgot property %s\n",TSXGetAtomName(display,prop));
|
||||
|
||||
/* TODO: Properties longer than 64K */
|
||||
|
||||
if(TSXGetWindowProperty(display,w,prop,0,0x3FFF,True,XA_STRING,
|
||||
&atype, &aformat, &nitems, &remain, &val) != Success)
|
||||
WARN(clipboard, "\tcouldn't read property\n");
|
||||
WARN("\tcouldn't read property\n");
|
||||
else
|
||||
{
|
||||
TRACE(clipboard,"\tType %s,Format %d,nitems %ld,value %s\n",
|
||||
TRACE("\tType %s,Format %d,nitems %ld,value %s\n",
|
||||
TSXGetAtomName(display,atype),aformat,nitems,val);
|
||||
|
||||
if(atype == XA_STRING && aformat == 8)
|
||||
|
@ -100,7 +100,7 @@ static void X11DRV_CLIPBOARD_ReadSelection(Window w, Atom prop)
|
|||
int i,inlcount = 0;
|
||||
char* lpstr;
|
||||
|
||||
TRACE(clipboard,"\tselection is '%s'\n",val);
|
||||
TRACE("\tselection is '%s'\n",val);
|
||||
|
||||
for(i=0; i <= nitems; i++)
|
||||
if( val[i] == '\n' ) inlcount++;
|
||||
|
@ -150,7 +150,7 @@ void X11DRV_CLIPBOARD_ReleaseSelection(Window w, HWND hwnd)
|
|||
* selectionPrevWindow is nonzero if CheckSelection() was called.
|
||||
*/
|
||||
|
||||
TRACE(clipboard,"\tevent->window = %08x (sw = %08x, spw=%08x)\n",
|
||||
TRACE("\tevent->window = %08x (sw = %08x, spw=%08x)\n",
|
||||
(unsigned)w, (unsigned)selectionWindow, (unsigned)selectionPrevWindow );
|
||||
|
||||
if( selectionAcquired )
|
||||
|
@ -188,7 +188,7 @@ void X11DRV_CLIPBOARD_Empty()
|
|||
selectionPrevWindow = selectionWindow;
|
||||
selectionWindow = None;
|
||||
|
||||
TRACE(clipboard, "\tgiving up selection (spw = %08x)\n",
|
||||
TRACE("\tgiving up selection (spw = %08x)\n",
|
||||
(unsigned)selectionPrevWindow);
|
||||
|
||||
EnterCriticalSection(&X11DRV_CritSection);
|
||||
|
@ -222,7 +222,7 @@ void X11DRV_CLIPBOARD_SetData(UINT wFormat)
|
|||
selectionAcquired = True;
|
||||
selectionWindow = owner;
|
||||
|
||||
TRACE(clipboard,"Grabbed X selection, owner=(%08x)\n",
|
||||
TRACE("Grabbed X selection, owner=(%08x)\n",
|
||||
(unsigned) owner);
|
||||
}
|
||||
WIN_ReleaseWndPtr(tmpWnd);
|
||||
|
@ -248,7 +248,7 @@ BOOL X11DRV_CLIPBOARD_GetData(UINT wFormat)
|
|||
XEvent xe;
|
||||
Window w = X11DRV_WND_FindXWindow(wnd);
|
||||
|
||||
TRACE(clipboard, "Requesting XA_STRING selection...\n");
|
||||
TRACE("Requesting XA_STRING selection...\n");
|
||||
|
||||
EnterCriticalSection( &X11DRV_CritSection );
|
||||
XConvertSelection(display, XA_PRIMARY, XA_STRING,
|
||||
|
@ -275,7 +275,7 @@ BOOL X11DRV_CLIPBOARD_GetData(UINT wFormat)
|
|||
|
||||
bRet = (BOOL)ClipFormats[CF_OEMTEXT-1].wDataPresent;
|
||||
|
||||
TRACE(clipboard,"\tpresent CF_OEMTEXT = %i\n", bRet );
|
||||
TRACE("\tpresent CF_OEMTEXT = %i\n", bRet );
|
||||
WIN_ReleaseWndPtr(wnd);
|
||||
}
|
||||
return bRet;
|
||||
|
@ -296,7 +296,7 @@ void X11DRV_CLIPBOARD_ResetOwner(WND *pWnd, BOOL bFooBar)
|
|||
if(!bFooBar && !X11DRV_WND_GetXWindow(pWnd))
|
||||
return;
|
||||
|
||||
TRACE(clipboard,"clipboard owner = %04x, selection = %08x\n",
|
||||
TRACE("clipboard owner = %04x, selection = %08x\n",
|
||||
hWndClipOwner, (unsigned)selectionWindow);
|
||||
|
||||
if( pWnd->hwndSelf == hWndClipOwner)
|
||||
|
@ -309,7 +309,7 @@ void X11DRV_CLIPBOARD_ResetOwner(WND *pWnd, BOOL bFooBar)
|
|||
{
|
||||
if( lpFormat->wDataPresent && !lpFormat->hData16 && !lpFormat->hData32 )
|
||||
{
|
||||
TRACE(clipboard,"\tdata missing for clipboard format %i\n",
|
||||
TRACE("\tdata missing for clipboard format %i\n",
|
||||
lpFormat->wFormatID);
|
||||
lpFormat->wDataPresent = 0;
|
||||
}
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
|
||||
#ifndef X_DISPLAY_MISSING
|
||||
|
||||
#include "debug.h"
|
||||
#include "debugtools.h"
|
||||
#include "desktop.h"
|
||||
#include "monitor.h"
|
||||
#include "options.h"
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
|
||||
#include "clipboard.h"
|
||||
#include "console.h"
|
||||
#include "debug.h"
|
||||
#include "debugtools.h"
|
||||
#include "desktop.h"
|
||||
#include "keyboard.h"
|
||||
#include "main.h"
|
||||
|
@ -203,7 +203,7 @@ void X11DRV_USER_ParseOptions(int *argc, char *argv[])
|
|||
|
||||
if (!(display = TSXOpenDisplay( display_name )))
|
||||
{
|
||||
MSG( "%s: Can't open display: %s\n",
|
||||
MESSAGE( "%s: Can't open display: %s\n",
|
||||
argv[0], display_name ? display_name : "(none specified)" );
|
||||
exit(1);
|
||||
}
|
||||
|
@ -259,7 +259,7 @@ void X11DRV_USER_ParseOptions(int *argc, char *argv[])
|
|||
if (X11DRV_USER_GetResource( db, ".debugmsg", &value))
|
||||
{
|
||||
#ifndef DEBUG_RUNTIME
|
||||
MSG("%s: Option \"-debugmsg\" not implemented.\n" \
|
||||
MESSAGE("%s: Option \"-debugmsg\" not implemented.\n" \
|
||||
" Recompile with DEBUG_RUNTIME in include/debugtools.h defined.\n",
|
||||
argv[0]);
|
||||
exit(1);
|
||||
|
@ -275,7 +275,7 @@ void X11DRV_USER_ParseOptions(int *argc, char *argv[])
|
|||
/* don't overwrite previous value. Should we
|
||||
* automatically add the ',' between multiple DLLs ?
|
||||
*/
|
||||
MSG("Only one -dll flag is allowed. Use ',' between multiple DLLs\n");
|
||||
MESSAGE("Only one -dll flag is allowed. Use ',' between multiple DLLs\n");
|
||||
}
|
||||
else Options.dllFlags = xstrdup((char *)value.addr);
|
||||
}
|
||||
|
@ -313,7 +313,7 @@ void X11DRV_USER_Create()
|
|||
if (Options.desktopGeometry && Options.managed)
|
||||
{
|
||||
#if 0
|
||||
MSG( "%s: -managed and -desktop options cannot be used together\n",
|
||||
MESSAGE( "%s: -managed and -desktop options cannot be used together\n",
|
||||
Options.programName );
|
||||
exit(1);
|
||||
#else
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
#include "ts_xlib.h"
|
||||
#include "ts_xutil.h"
|
||||
|
||||
#include "debug.h"
|
||||
#include "debugtools.h"
|
||||
#include "heap.h"
|
||||
#include "monitor.h"
|
||||
#include "options.h"
|
||||
|
@ -101,7 +101,7 @@ static void X11DRV_MONITOR_CreateDesktop(MONITOR *pMonitor)
|
|||
class_hints = TSXAllocClassHint();
|
||||
if (!size_hints || !wm_hints || !class_hints)
|
||||
{
|
||||
MSG("Not enough memory for window manager hints.\n" );
|
||||
MESSAGE("Not enough memory for window manager hints.\n" );
|
||||
exit(1);
|
||||
}
|
||||
size_hints->min_width = size_hints->max_width = width;
|
||||
|
@ -158,7 +158,7 @@ void X11DRV_MONITOR_Initialize(MONITOR *pMonitor)
|
|||
TSXFree( depth_list );
|
||||
if (i >= depth_count)
|
||||
{
|
||||
MSG( "%s: Depth %d not supported on this screen.\n",
|
||||
MESSAGE( "%s: Depth %d not supported on this screen.\n",
|
||||
Options.programName, pX11Monitor->depth );
|
||||
exit(1);
|
||||
}
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
#include "ts_xlib.h"
|
||||
|
||||
#include "callback.h"
|
||||
#include "debug.h"
|
||||
#include "debugtools.h"
|
||||
#include "mouse.h"
|
||||
#include "win.h"
|
||||
#include "windef.h"
|
||||
|
@ -53,7 +53,7 @@ static BOOL X11DRV_MOUSE_DoSetCursor( CURSORICONINFO *ptr )
|
|||
|
||||
if (ptr->bPlanes * ptr->bBitsPerPixel != 1)
|
||||
{
|
||||
WARN(cursor, "Cursor has more than 1 bpp!\n" );
|
||||
WARN("Cursor has more than 1 bpp!\n" );
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
|
@ -220,7 +220,7 @@ void X11DRV_MOUSE_MoveCursor(WORD wAbsX, WORD wAbsY)
|
|||
if ( winX == wAbsX && winY == wAbsY )
|
||||
return;
|
||||
|
||||
TRACE( cursor, "(%d,%d): moving from (%d,%d)\n", wAbsX, wAbsY, winX, winY );
|
||||
TRACE("(%d,%d): moving from (%d,%d)\n", wAbsX, wAbsY, winX, winY );
|
||||
|
||||
TSXWarpPointer( display, X11DRV_GetXRootWindow(), X11DRV_GetXRootWindow(),
|
||||
0, 0, 0, 0, wAbsX, wAbsY );
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
#include <string.h>
|
||||
#include "bitmap.h"
|
||||
#include "color.h"
|
||||
#include "debug.h"
|
||||
#include "debugtools.h"
|
||||
#include "display.h"
|
||||
#include "dce.h"
|
||||
#include "options.h"
|
||||
|
@ -132,12 +132,12 @@ void X11DRV_WND_Finalize(WND *wndPtr)
|
|||
(X11DRV_WND_DATA *) wndPtr->pDriverData;
|
||||
|
||||
if (!wndPtr->pDriverData) {
|
||||
ERR(win,"Trying to destroy window again. Not good.\n");
|
||||
ERR("Trying to destroy window again. Not good.\n");
|
||||
return;
|
||||
}
|
||||
if(pWndDriverData->window)
|
||||
{
|
||||
ERR(win,
|
||||
ERR(
|
||||
"WND destroyed without destroying "
|
||||
"the associated X Window (%ld)\n",
|
||||
pWndDriverData->window
|
||||
|
|
Loading…
Reference in New Issue