mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-14 20:53:35 +00:00
Cosmetics.
This commit is contained in:
parent
baa9bf9a23
commit
81ee21ddff
|
@ -118,7 +118,7 @@ static DM_FUNC template_func[] =
|
||||||
|
|
||||||
static PROXYHANDLE gProxyHandle = {NULL, FALSE, FALSE, FALSE, ERROR_LIBRARY_NOT_FOUND};
|
static PROXYHANDLE gProxyHandle = {NULL, FALSE, FALSE, FALSE, ERROR_LIBRARY_NOT_FOUND};
|
||||||
|
|
||||||
SQLRETURNTYPE SQLDummyFunc()
|
SQLRETURN SQLDummyFunc()
|
||||||
{
|
{
|
||||||
TRACE("SQLDummyFunc: \n");
|
TRACE("SQLDummyFunc: \n");
|
||||||
return SQL_SUCCESS;
|
return SQL_SUCCESS;
|
||||||
|
|
|
@ -142,7 +142,7 @@ ULONG WINAPI BindCtxImpl_Release(IBindCtx* iface)
|
||||||
|
|
||||||
if (This->ref==0){
|
if (This->ref==0){
|
||||||
|
|
||||||
/* release all registred objects */
|
/* release all registered objects */
|
||||||
BindCtxImpl_ReleaseBoundObjects((IBindCtx*)This);
|
BindCtxImpl_ReleaseBoundObjects((IBindCtx*)This);
|
||||||
|
|
||||||
BindCtxImpl_Destroy(This);
|
BindCtxImpl_Destroy(This);
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
* HGLOBAL Stream implementation
|
* HGLOBAL Stream implementation
|
||||||
*
|
*
|
||||||
* This file contains the implementation of the stream interface
|
* This file contains the implementation of the stream interface
|
||||||
* for streams contained suported by an HGLOBAL pointer.
|
* for streams contained supported by an HGLOBAL pointer.
|
||||||
*
|
*
|
||||||
* Copyright 1999 Francis Beaudet
|
* Copyright 1999 Francis Beaudet
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -131,15 +131,15 @@ HBITMAP TTYDRV_DC_BITMAP_SelectObject(DC *dc, HBITMAP hbitmap, BITMAPOBJ *bitmap
|
||||||
TRACE("(%p, 0x%04x, %p)\n", dc, hbitmap, bitmap);
|
TRACE("(%p, 0x%04x, %p)\n", dc, hbitmap, bitmap);
|
||||||
|
|
||||||
if(!(dc->w.flags & DC_MEMORY))
|
if(!(dc->w.flags & DC_MEMORY))
|
||||||
return NULL;
|
return 0;
|
||||||
|
|
||||||
/* Assure that the bitmap device dependent */
|
/* Assure that the bitmap device dependent */
|
||||||
if(!bitmap->DDBitmap && !TTYDRV_DC_CreateBitmap(hbitmap))
|
if(!bitmap->DDBitmap && !TTYDRV_DC_CreateBitmap(hbitmap))
|
||||||
return NULL;
|
return 0;
|
||||||
|
|
||||||
if(bitmap->DDBitmap->funcs != dc->funcs) {
|
if(bitmap->DDBitmap->funcs != dc->funcs) {
|
||||||
ERR("Trying to select a non-TTY DDB into a TTY DC\n");
|
ERR("Trying to select a non-TTY DDB into a TTY DC\n");
|
||||||
return NULL;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
dc->w.totalExtent.left = 0;
|
dc->w.totalExtent.left = 0;
|
||||||
|
@ -155,7 +155,7 @@ HBITMAP TTYDRV_DC_BITMAP_SelectObject(DC *dc, HBITMAP hbitmap, BITMAPOBJ *bitmap
|
||||||
HRGN hrgn;
|
HRGN hrgn;
|
||||||
|
|
||||||
if(!(hrgn = CreateRectRgn(0, 0, bitmap->bitmap.bmWidth, bitmap->bitmap.bmHeight)))
|
if(!(hrgn = CreateRectRgn(0, 0, bitmap->bitmap.bmWidth, bitmap->bitmap.bmHeight)))
|
||||||
return NULL;
|
return 0;
|
||||||
|
|
||||||
dc->w.hVisRgn = hrgn;
|
dc->w.hVisRgn = hrgn;
|
||||||
}
|
}
|
||||||
|
|
|
@ -541,7 +541,7 @@ UINT WINAPI DdeInitializeW( LPDWORD pidInst, PFNCALLBACK pfnCallback,
|
||||||
DWORD afCmd, DWORD ulRes )
|
DWORD afCmd, DWORD ulRes )
|
||||||
{
|
{
|
||||||
|
|
||||||
/* probably not really capable of handling mutliple processes, but should handle
|
/* probably not really capable of handling multiple processes, but should handle
|
||||||
* multiple instances within one process */
|
* multiple instances within one process */
|
||||||
|
|
||||||
SECURITY_ATTRIBUTES *s_att= NULL;
|
SECURITY_ATTRIBUTES *s_att= NULL;
|
||||||
|
|
|
@ -242,7 +242,7 @@ DWORD VERSION_GetLinkedDllVersion(PDB *pdb)
|
||||||
WinVersion = DllVersion;
|
WinVersion = DllVersion;
|
||||||
else {
|
else {
|
||||||
if (WinVersion != DllVersion) {
|
if (WinVersion != DllVersion) {
|
||||||
ERR("You mixed system dlls from different windows versions! Expect a chrash!\n");
|
ERR("You mixed system dlls from different windows versions! Expect a crash!\n");
|
||||||
return WIN31; /* this may let the exe exiting */
|
return WIN31; /* this may let the exe exiting */
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -32,7 +32,7 @@ DEFAULT_DEBUG_CHANNEL(win32)
|
||||||
* no need in offset correction, like in UnixTimeToFileTime
|
* no need in offset correction, like in UnixTimeToFileTime
|
||||||
* FIXME: This function should be moved to a more appropriate .c file
|
* FIXME: This function should be moved to a more appropriate .c file
|
||||||
* FIXME: On floating point operations, it is assumed that
|
* FIXME: On floating point operations, it is assumed that
|
||||||
* floating values are truncated on convertion to integer.
|
* floating values are truncated on conversion to integer.
|
||||||
*/
|
*/
|
||||||
void Process_ClockTimeToFileTime( clock_t unix_time, LPFILETIME filetime )
|
void Process_ClockTimeToFileTime( clock_t unix_time, LPFILETIME filetime )
|
||||||
{
|
{
|
||||||
|
|
|
@ -690,7 +690,7 @@ void X11DRV_WND_SurfaceCopy(WND* wndPtr, DC *dcPtr, INT dx, INT dy,
|
||||||
void X11DRV_WND_SetDrawable(WND *wndPtr, DC *dc, WORD flags, BOOL bSetClipOrigin)
|
void X11DRV_WND_SetDrawable(WND *wndPtr, DC *dc, WORD flags, BOOL bSetClipOrigin)
|
||||||
{
|
{
|
||||||
X11DRV_PDEVICE *physDev = (X11DRV_PDEVICE *)dc->physDev;
|
X11DRV_PDEVICE *physDev = (X11DRV_PDEVICE *)dc->physDev;
|
||||||
INT dcOrgXCopy, dcOrgYCopy;
|
INT dcOrgXCopy = 0, dcOrgYCopy = 0;
|
||||||
BOOL offsetClipRgn = FALSE;
|
BOOL offsetClipRgn = FALSE;
|
||||||
|
|
||||||
if (!wndPtr) /* Get a DC for the whole screen */
|
if (!wndPtr) /* Get a DC for the whole screen */
|
||||||
|
|
Loading…
Reference in a new issue