Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
06a8c120
Commit
06a8c120
authored
Apr 01, 2003
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Portability fixes.
parent
c45bbad3
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
24 additions
and
30 deletions
+24
-30
driver.c
dlls/gdi/driver.c
+10
-11
int1a.c
dlls/winedos/int1a.c
+9
-13
vga.c
dlls/winedos/vga.c
+3
-4
winsock16.h
include/wine/winsock16.h
+1
-1
dbg.y
programs/winedbg/dbg.y
+1
-1
No files found.
dlls/gdi/driver.c
View file @
06a8c120
...
...
@@ -24,7 +24,6 @@
#include <string.h>
#include "winbase.h"
#include "winreg.h"
#include "winternl.h"
#include "gdi.h"
#include "wine/debug.h"
...
...
@@ -235,13 +234,13 @@ const DC_FUNCTIONS *DRIVER_load_driver( LPCSTR name )
HMODULE
module
;
struct
graphics_driver
*
driver
;
Rtl
EnterCriticalSection
(
&
driver_section
);
EnterCriticalSection
(
&
driver_section
);
/* display driver is a special case */
if
(
!
strcasecmp
(
name
,
"display"
))
{
driver
=
load_display_driver
();
Rtl
LeaveCriticalSection
(
&
driver_section
);
LeaveCriticalSection
(
&
driver_section
);
return
&
driver
->
funcs
;
}
...
...
@@ -252,7 +251,7 @@ const DC_FUNCTIONS *DRIVER_load_driver( LPCSTR name )
if
(
driver
->
module
==
module
)
{
driver
->
count
++
;
Rtl
LeaveCriticalSection
(
&
driver_section
);
LeaveCriticalSection
(
&
driver_section
);
return
&
driver
->
funcs
;
}
}
...
...
@@ -260,19 +259,19 @@ const DC_FUNCTIONS *DRIVER_load_driver( LPCSTR name )
if
(
!
(
module
=
LoadLibraryA
(
name
)))
{
Rtl
LeaveCriticalSection
(
&
driver_section
);
LeaveCriticalSection
(
&
driver_section
);
return
NULL
;
}
if
(
!
(
driver
=
create_driver
(
module
)))
{
FreeLibrary
(
module
);
Rtl
LeaveCriticalSection
(
&
driver_section
);
LeaveCriticalSection
(
&
driver_section
);
return
NULL
;
}
TRACE
(
"loaded driver %p for %s
\n
"
,
driver
,
name
);
Rtl
LeaveCriticalSection
(
&
driver_section
);
LeaveCriticalSection
(
&
driver_section
);
return
&
driver
->
funcs
;
}
...
...
@@ -286,12 +285,12 @@ const DC_FUNCTIONS *DRIVER_get_driver( const DC_FUNCTIONS *funcs )
{
struct
graphics_driver
*
driver
;
Rtl
EnterCriticalSection
(
&
driver_section
);
EnterCriticalSection
(
&
driver_section
);
for
(
driver
=
first_driver
;
driver
;
driver
=
driver
->
next
)
if
(
&
driver
->
funcs
==
funcs
)
break
;
if
(
!
driver
)
ERR
(
"driver not found, trouble ahead
\n
"
);
driver
->
count
++
;
Rtl
LeaveCriticalSection
(
&
driver_section
);
LeaveCriticalSection
(
&
driver_section
);
return
funcs
;
}
...
...
@@ -305,7 +304,7 @@ void DRIVER_release_driver( const DC_FUNCTIONS *funcs )
{
struct
graphics_driver
*
driver
;
Rtl
EnterCriticalSection
(
&
driver_section
);
EnterCriticalSection
(
&
driver_section
);
for
(
driver
=
first_driver
;
driver
;
driver
=
driver
->
next
)
if
(
&
driver
->
funcs
==
funcs
)
break
;
...
...
@@ -322,7 +321,7 @@ void DRIVER_release_driver( const DC_FUNCTIONS *funcs )
FreeLibrary
(
driver
->
module
);
HeapFree
(
GetProcessHeap
(),
0
,
driver
);
done:
Rtl
LeaveCriticalSection
(
&
driver_section
);
LeaveCriticalSection
(
&
driver_section
);
}
...
...
dlls/winedos/int1a.c
View file @
06a8c120
...
...
@@ -26,6 +26,7 @@
# include <sys/time.h>
#endif
#include <stdlib.h>
#include "winternl.h"
#include "miscemu.h"
#include "wine/debug.h"
...
...
@@ -42,19 +43,14 @@ WINE_DEFAULT_DEBUG_CHANNEL(int);
*/
DWORD
INT1A_GetTicksSinceMidnight
(
void
)
{
struct
tm
*
bdtime
;
struct
timeval
tvs
;
time_t
seconds
;
/* This should give us the (approximately) correct
* 18.206 clock ticks per second since midnight.
*/
gettimeofday
(
&
tvs
,
NULL
);
seconds
=
tvs
.
tv_sec
;
bdtime
=
localtime
(
&
seconds
);
return
(((
bdtime
->
tm_hour
*
3600
+
bdtime
->
tm_min
*
60
+
bdtime
->
tm_sec
)
*
18206
)
/
1000
)
+
(
tvs
.
tv_usec
/
54927
);
LARGE_INTEGER
time
;
TIME_FIELDS
tf
;
NtQuerySystemTime
(
&
time
);
RtlSystemTimeToLocalTime
(
&
time
,
&
time
);
RtlTimeToTimeFields
(
&
time
,
&
tf
);
return
((
tf
.
Hour
*
3600
+
tf
.
Minute
*
60
+
tf
.
Second
)
*
18206
/
1000
+
tf
.
Milliseconds
*
1000
/
54927
);
}
...
...
dlls/winedos/vga.c
View file @
06a8c120
...
...
@@ -518,8 +518,8 @@ void VGA_Set16Palette(char *Table)
int
c
;
if
(
!
lpddraw
)
return
;
/* return if we're in text only mode */
bcopy
((
void
*
)
&
vga_16_palette
,(
void
*
)
Table
,
17
);
/* copy the entries into the table */
memcpy
(
Table
,
&
vga_16_palette
,
17
);
/* copy the entries into the table */
for
(
c
=
0
;
c
<
17
;
c
++
)
{
/* 17 entries */
pal
=
&
vga_def64_palette
[(
int
)
vga_16_palette
[
c
]];
/* get color */
IDirectDrawPalette_SetEntries
(
lpddpal
,
0
,
c
,
1
,
pal
);
/* set entry */
...
...
@@ -532,8 +532,7 @@ void VGA_Get16Palette(char *Table)
{
if
(
!
lpddraw
)
return
;
/* return if we're in text only mode */
bcopy
((
void
*
)
Table
,(
void
*
)
&
vga_16_palette
,
17
);
/* copy the entries into the table */
memcpy
(
&
vga_16_palette
,
Table
,
17
);
/* copy the entries into the table */
}
void
VGA_SetQuadPalette
(
RGBQUAD
*
color
,
int
start
,
int
len
)
...
...
include/wine/winsock16.h
View file @
06a8c120
...
...
@@ -27,7 +27,7 @@ typedef UINT16 SOCKET16;
typedef
struct
{
UINT16
fd_count
;
/* how many are SET? */
SOCKET16
fd_array
[
FD_SETSIZE
];
/* an array of SOCKETs */
SOCKET16
fd_array
[
WS_
FD_SETSIZE
];
/* an array of SOCKETs */
}
ws_fd_set16
;
/* ws_hostent16, ws_protoent16, ws_servent16, ws_netent16
...
...
programs/winedbg/dbg.y
View file @
06a8c120
...
...
@@ -121,7 +121,7 @@ command:
| tNEXTI tEOL { DEBUG_WaitNextException(DBG_CONTINUE, 1, EXEC_STEPI_OVER); }
| tNEXTI tNUM tEOL { DEBUG_WaitNextException(DBG_CONTINUE, $2, EXEC_STEPI_OVER); }
| tFINISH tEOL { DEBUG_WaitNextException(DBG_CONTINUE, 0, EXEC_FINISH); }
| tABORT tEOL {
kill(getpid(), SIGABRT
); }
| tABORT tEOL {
abort(
); }
| tMODE tNUM tEOL { mode_command($2); }
| tMODE tVM86 tEOL { DEBUG_CurrThread->dbg_mode = MODE_VM86; }
| tENABLE tNUM tEOL { DEBUG_EnableBreakpoint( $2, TRUE ); }
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment