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
0ee98cc3
Commit
0ee98cc3
authored
Feb 26, 2000
by
Patrik Stridvall
Committed by
Alexandre Julliard
Feb 26, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed ANSI C violations.
parent
0e06d623
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
55 additions
and
53 deletions
+55
-53
filedlg95.c
dlls/commdlg/filedlg95.c
+1
-1
dplobby.c
dlls/dplayx/dplobby.c
+14
-14
icmp_main.c
dlls/icmp/icmp_main.c
+3
-3
reg.c
dlls/ntdll/reg.c
+4
-4
proxyodbc.c
dlls/odbc32/proxyodbc.c
+1
-1
typelib.c
dlls/oleaut32/typelib.c
+1
-1
changenotify.c
dlls/shell32/changenotify.c
+3
-2
shellord.c
dlls/shell32/shellord.c
+5
-5
dib.c
graphics/x11drv/dib.c
+0
-0
builtin.c
if1632/builtin.c
+1
-1
dplobby.h
include/dplobby.h
+10
-10
windef16.h
include/wine/windef16.h
+1
-1
wingdi.h
include/wingdi.h
+3
-3
resource.c
loader/ne/resource.c
+1
-1
registry.c
misc/registry.c
+2
-2
dib.c
objects/dib.c
+1
-1
ole2nls.c
ole/ole2nls.c
+1
-1
winclock.c
programs/clock/winclock.c
+1
-0
process.c
scheduler/process.c
+1
-1
bin2res.c
tools/bin2res.c
+1
-1
No files found.
dlls/commdlg/filedlg95.c
View file @
0ee98cc3
...
...
@@ -1362,7 +1362,7 @@ BOOL FILEDLG95_OnOpen(HWND hwnd)
iExt
=
CBGetCurSel
(
fodInfos
->
DlgInfos
.
hwndFileTypeCB
);
lpOrg
=
(
LPSTR
)
CBGetItemDataPtr
(
fodInfos
->
DlgInfos
.
hwndFileTypeCB
,
iExt
);
if
((
int
)
lpOrg
==
-
1
)
lpOrg
=
NULL
;
/
/ we get -1 if the filetype LB is empty
lpOrg
=
NULL
;
/
* we get -1 if the filetype LB is empty */
lpstrExt
=
lpOrg
;
...
...
dlls/dplayx/dplobby.c
View file @
0ee98cc3
...
...
@@ -740,7 +740,7 @@ HRESULT DPL_CreateAddress(
BOOL
bAnsiInterface
)
{
const
DWORD
dwNumAddElements
=
2
;
/* Service Provide & address data type */
DPCOMPOUNDADDRESSELEMENT
addressElements
[
dwNumAddElements
];
DPCOMPOUNDADDRESSELEMENT
addressElements
[
2
/* dwNumAddElements */
];
TRACE
(
"(%p)->(%p,%p,0x%08lx,%p,%p,%d)
\n
"
,
guidSP
,
guidDataType
,
lpData
,
dwDataSize
,
lpAddress
,
lpdwAddressSize
,
bAnsiInterface
);
...
...
@@ -817,7 +817,7 @@ static HRESULT DPL_EnumAddress( LPDPENUMADDRESSCALLBACK lpEnumAddressCallback, L
}
dwSizeThisEnumeration
=
sizeof
(
DPADDRESS
)
+
lpElements
->
dwDataSize
;
lpAddress
+=
dwSizeThisEnumeration
;
lpAddress
=
(
char
*
)
lpAddress
+
dwSizeThisEnumeration
;
dwTotalSizeEnumerated
+=
dwSizeThisEnumeration
;
}
...
...
@@ -1589,10 +1589,10 @@ HRESULT DPL_CreateCompoundAddress
lpdpAddress
->
guidDataType
=
DPAID_TotalSize
;
lpdpAddress
->
dwDataSize
=
sizeof
(
DWORD
);
lpAddress
+=
sizeof
(
DPADDRESS
);
lpAddress
=
(
char
*
)
lpAddress
+
sizeof
(
DPADDRESS
);
*
(
LPDWORD
)
lpAddress
=
dwSizeRequired
;
lpAddress
+=
sizeof
(
DWORD
);
lpAddress
=
(
char
*
)
lpAddress
+
sizeof
(
DWORD
);
}
/* Calculate the size of the buffer required */
...
...
@@ -1608,10 +1608,10 @@ HRESULT DPL_CreateCompoundAddress
lpdpAddress
->
guidDataType
=
lpElements
->
guidDataType
;
lpdpAddress
->
dwDataSize
=
sizeof
(
GUID
);
lpAddress
+=
sizeof
(
DPADDRESS
);
lpAddress
=
(
char
*
)
lpAddress
+
sizeof
(
DPADDRESS
);
*
((
LPGUID
)
lpAddress
)
=
*
((
LPGUID
)
lpElements
->
lpData
);
lpAddress
+=
sizeof
(
GUID
);
lpAddress
=
(
char
*
)
lpAddress
+
sizeof
(
GUID
);
}
else
if
(
(
IsEqualGUID
(
&
lpElements
->
guidDataType
,
&
DPAID_Phone
)
)
||
(
IsEqualGUID
(
&
lpElements
->
guidDataType
,
&
DPAID_Modem
)
)
||
...
...
@@ -1622,12 +1622,12 @@ HRESULT DPL_CreateCompoundAddress
lpdpAddress
->
guidDataType
=
lpElements
->
guidDataType
;
lpdpAddress
->
dwDataSize
=
lpElements
->
dwDataSize
;
lpAddress
+=
sizeof
(
DPADDRESS
);
lpAddress
=
(
char
*
)
lpAddress
+
sizeof
(
DPADDRESS
);
lstrcpynA
(
(
LPSTR
)
lpAddress
,
(
LPCSTR
)
lpElements
->
lpData
,
lpElements
->
dwDataSize
);
lpAddress
+=
lpElements
->
dwDataSize
;
lpAddress
=
(
char
*
)
lpAddress
+
lpElements
->
dwDataSize
;
}
else
if
(
(
IsEqualGUID
(
&
lpElements
->
guidDataType
,
&
DPAID_PhoneW
)
)
||
(
IsEqualGUID
(
&
lpElements
->
guidDataType
,
&
DPAID_ModemW
)
)
||
...
...
@@ -1638,12 +1638,12 @@ HRESULT DPL_CreateCompoundAddress
lpdpAddress
->
guidDataType
=
lpElements
->
guidDataType
;
lpdpAddress
->
dwDataSize
=
lpElements
->
dwDataSize
;
lpAddress
+=
sizeof
(
DPADDRESS
);
lpAddress
=
(
char
*
)
lpAddress
+
sizeof
(
DPADDRESS
);
lstrcpynW
(
(
LPWSTR
)
lpAddress
,
(
LPCWSTR
)
lpElements
->
lpData
,
lpElements
->
dwDataSize
);
lpAddress
+=
lpElements
->
dwDataSize
*
sizeof
(
WCHAR
);
lpAddress
=
(
char
*
)
lpAddress
+
lpElements
->
dwDataSize
*
sizeof
(
WCHAR
);
}
else
if
(
IsEqualGUID
(
&
lpElements
->
guidDataType
,
&
DPAID_INetPort
)
)
{
...
...
@@ -1651,10 +1651,10 @@ HRESULT DPL_CreateCompoundAddress
lpdpAddress
->
guidDataType
=
lpElements
->
guidDataType
;
lpdpAddress
->
dwDataSize
=
lpElements
->
dwDataSize
;
lpAddress
+=
sizeof
(
DPADDRESS
);
lpAddress
=
(
char
*
)
lpAddress
+
sizeof
(
DPADDRESS
);
*
((
LPWORD
)
lpAddress
)
=
*
((
LPWORD
)
lpElements
->
lpData
);
lpAddress
+=
sizeof
(
WORD
);
lpAddress
=
(
char
*
)
lpAddress
+
sizeof
(
WORD
);
}
else
if
(
IsEqualGUID
(
&
lpElements
->
guidDataType
,
&
DPAID_ComPort
)
)
{
...
...
@@ -1662,10 +1662,10 @@ HRESULT DPL_CreateCompoundAddress
lpdpAddress
->
guidDataType
=
lpElements
->
guidDataType
;
lpdpAddress
->
dwDataSize
=
lpElements
->
dwDataSize
;
lpAddress
+=
sizeof
(
DPADDRESS
);
lpAddress
=
(
char
*
)
lpAddress
+
sizeof
(
DPADDRESS
);
memcpy
(
lpAddress
,
lpElements
->
lpData
,
sizeof
(
DPADDRESS
)
);
lpAddress
+=
sizeof
(
DPADDRESS
);
lpAddress
=
(
char
*
)
lpAddress
+
sizeof
(
DPADDRESS
);
}
}
...
...
dlls/icmp/icmp_main.c
View file @
0ee98cc3
...
...
@@ -302,8 +302,8 @@ DWORD WINAPI IcmpSendEcho(
timeout
.
tv_usec
=
(
Timeout
%
1000
)
*
1000
;
addrlen
=
sizeof
(
addr
);
ier
=
ReplyBuffer
;
ip_header
=
ReplyBuffer
+
sizeof
(
ICMP_ECHO_REPLY
);
endbuf
=
ReplyBuffer
+
ReplySize
;
ip_header
=
(
struct
ip
*
)
((
char
*
)
ReplyBuffer
+
sizeof
(
ICMP_ECHO_REPLY
)
);
endbuf
=
(
char
*
)
ReplyBuffer
+
ReplySize
;
maxlen
=
ReplySize
-
sizeof
(
ICMP_ECHO_REPLY
);
/* Send the packet */
...
...
@@ -457,7 +457,7 @@ DWORD WINAPI IcmpSendEcho(
ier
->
Options
.
Flags
=
ip_header
->
ip_off
>>
13
;
ier
->
Options
.
OptionsSize
=
ip_header_len
-
sizeof
(
struct
ip
);
if
(
ier
->
Options
.
OptionsSize
!=
0
)
{
ier
->
Options
.
OptionsData
=
ier
->
Data
-
ier
->
Options
.
OptionsSize
;
ier
->
Options
.
OptionsData
=
(
unsigned
char
*
)
ier
->
Data
-
ier
->
Options
.
OptionsSize
;
/* FIXME: We are supposed to rearrange the option's 'source route' data */
memmove
(
ier
->
Options
.
OptionsData
,((
char
*
)
ip_header
)
+
ip_header_len
,
ier
->
Options
.
OptionsSize
);
endbuf
=
ier
->
Options
.
OptionsData
;
...
...
dlls/ntdll/reg.c
View file @
0ee98cc3
...
...
@@ -283,7 +283,7 @@ NTSTATUS WINAPI NtEnumerateKey(
DOSFS_UnixTimeToFileTime
(
req
->
modif
,
&
kni
->
LastWriteTime
,
0
);
kni
->
TitleIndex
=
0
;
memcpy
(
kni
->
Name
,
req
->
name
,
kni
->
NameLength
);
if
(
kni
->
ClassLength
)
memcpy
(
KeyInformation
+
kni
->
ClassOffset
,
req
->
class
,
kni
->
ClassLength
);
if
(
kni
->
ClassLength
)
memcpy
(
(
char
*
)
KeyInformation
+
kni
->
ClassOffset
,
req
->
class
,
kni
->
ClassLength
);
}
break
;
default:
...
...
@@ -347,7 +347,7 @@ NTSTATUS WINAPI NtQueryKey(
kfi
->
Values
=
req
->
values
;
kfi
->
MaxValueNameLen
=
req
->
max_value
;
kfi
->
MaxValueDataLen
=
req
->
max_data
;
if
(
kfi
->
ClassLength
)
memcpy
(
KeyInformation
+
kfi
->
ClassOffset
,
req
->
class
,
kfi
->
ClassLength
);
if
(
kfi
->
ClassLength
)
memcpy
(
(
char
*
)
KeyInformation
+
kfi
->
ClassOffset
,
req
->
class
,
kfi
->
ClassLength
);
}
break
;
case
KeyNodeInformation
:
...
...
@@ -364,7 +364,7 @@ NTSTATUS WINAPI NtQueryKey(
DOSFS_UnixTimeToFileTime
(
req
->
modif
,
&
kni
->
LastWriteTime
,
0
);
kni
->
TitleIndex
=
0
;
memcpy
(
kni
->
Name
,
req
->
name
,
kni
->
NameLength
);
if
(
kni
->
ClassLength
)
memcpy
(
KeyInformation
+
kni
->
ClassOffset
,
req
->
class
,
kni
->
ClassLength
);
if
(
kni
->
ClassLength
)
memcpy
(
(
char
*
)
KeyInformation
+
kni
->
ClassOffset
,
req
->
class
,
kni
->
ClassLength
);
}
break
;
default:
...
...
@@ -568,7 +568,7 @@ NTSTATUS WINAPI NtQueryValueKey(
kfi
->
NameLength
=
0
;
kfi
->
DataOffset
=
DataOffset
;
kfi
->
DataLength
=
req
->
len
;
memcpy
(
KeyValueInformation
+
DataOffset
,
req
->
data
,
req
->
len
);
memcpy
(
(
char
*
)
KeyValueInformation
+
DataOffset
,
req
->
data
,
req
->
len
);
}
break
;
case
KeyValuePartialInformation
:
...
...
dlls/odbc32/proxyodbc.c
View file @
0ee98cc3
...
...
@@ -21,7 +21,7 @@
#define _WINDOWS
#endif
typedef
char
*
GUID
;
/
/This definition is in sqltypes.h, but if _WINDOWS is defined, this is skipped.
typedef
char
*
GUID
;
/
* This definition is in sqltypes.h, but if _WINDOWS is defined, this is skipped. */
#include "sql.h"
#include "sqltypes.h"
...
...
dlls/oleaut32/typelib.c
View file @
0ee98cc3
...
...
@@ -531,7 +531,7 @@ static TYPEDESC stndTypeDesc[VT_LPWSTR+1]={/* VT_LPWSTR is largest type that */
static
void
TLB_abort
()
{
*
((
int
*
)
0
)
=
0
;
DebugBreak
()
;
}
static
void
*
TLB_Alloc
(
unsigned
size
)
{
...
...
dlls/shell32/changenotify.c
View file @
0ee98cc3
...
...
@@ -195,8 +195,9 @@ void WINAPI SHChangeNotifyA (LONG wEventId, UINT uFlags, LPCVOID dwItem1, LPCVO
void
WINAPI
SHChangeNotifyAW
(
LONG
wEventId
,
UINT
uFlags
,
LPCVOID
dwItem1
,
LPCVOID
dwItem2
)
{
if
(
VERSION_OsIsUnicode
())
return
SHChangeNotifyW
(
wEventId
,
uFlags
,
dwItem1
,
dwItem2
);
return
SHChangeNotifyA
(
wEventId
,
uFlags
,
dwItem1
,
dwItem2
);
SHChangeNotifyW
(
wEventId
,
uFlags
,
dwItem1
,
dwItem2
);
else
SHChangeNotifyA
(
wEventId
,
uFlags
,
dwItem1
,
dwItem2
);
}
/*************************************************************************
...
...
dlls/shell32/shellord.c
View file @
0ee98cc3
...
...
@@ -422,19 +422,19 @@ DWORD WINAPI SHCreateDirectory(LPSECURITY_ATTRIBUTES sec,LPCSTR path) {
DWORD
WINAPI
SHFree
(
LPVOID
x
)
{
#if MEM_DEBUG
WORD
len
=
*
(
LPWORD
)(
x
-
2
);
WORD
len
=
*
(
LPWORD
)(
(
LPBYTE
)
x
-
2
);
if
(
*
(
LPWORD
)(
x
+
len
)
!=
0x7384
)
if
(
*
(
LPWORD
)(
(
LPBYTE
)
x
+
len
)
!=
0x7384
)
ERR
(
"MAGIC2!
\n
"
);
if
(
(
*
(
LPWORD
)(
x
-
4
))
!=
0x8271
)
if
(
(
*
(
LPWORD
)(
(
LPBYTE
)
x
-
4
))
!=
0x8271
)
ERR
(
"MAGIC1!
\n
"
);
else
memset
(
x
-
4
,
0xde
,
len
+
6
);
memset
(
(
LPBYTE
)
x
-
4
,
0xde
,
len
+
6
);
TRACE
(
"%p len=%u
\n
"
,
x
,
len
);
x
-=
4
;
x
=
(
LPBYTE
)
x
-
4
;
#else
TRACE
(
"%p
\n
"
,
x
);
#endif
...
...
graphics/x11drv/dib.c
View file @
0ee98cc3
This diff is collapsed.
Click to expand it.
if1632/builtin.c
View file @
0ee98cc3
...
...
@@ -92,7 +92,7 @@ static HMODULE16 BUILTIN_DoLoadModule16( const BUILTIN16_DESCRIPTOR *descr )
memcpy
(
(
LPBYTE
)
pModule
,
descr
->
module_start
,
res_off
);
memcpy
(
(
LPBYTE
)
pModule
+
res_off
,
rsrc
->
res_start
,
rsrc
->
res_size
);
memcpy
(
(
LPBYTE
)
pModule
+
res_off
+
rsrc
->
res_size
,
descr
->
module_start
+
res_off
,
descr
->
module_size
-
res_off
);
(
LPBYTE
)
descr
->
module_start
+
res_off
,
descr
->
module_size
-
res_off
);
/* Have to fix up various pModule-based near pointers. Ugh! */
pModule
->
name_table
+=
rsrc
->
res_size
;
...
...
include/dplobby.h
View file @
0ee98cc3
...
...
@@ -244,19 +244,19 @@ typedef struct tagDPADDRESS
/* Used for specification of a communication port. Baud rate, stop bits and
* parity bits can be found in winbase.h. These are flow control constants only.
*/
#define DPCPA_NOFLOW 0 /
/ no flow control
#define DPCPA_XONXOFFFLOW 1 /
/ software flow control
#define DPCPA_RTSFLOW 2 /
/ hardware flow control with RTS
#define DPCPA_DTRFLOW 3 /
/ hardware flow control with DTR
#define DPCPA_RTSDTRFLOW 4 /
/ hardware flow control with RTS and DTR
#define DPCPA_NOFLOW 0
/
* no flow control */
#define DPCPA_XONXOFFFLOW 1
/
* software flow control */
#define DPCPA_RTSFLOW 2
/
* hardware flow control with RTS */
#define DPCPA_DTRFLOW 3
/
* hardware flow control with DTR */
#define DPCPA_RTSDTRFLOW 4
/
* hardware flow control with RTS and DTR */
typedef
struct
tagDPCOMPORTADDRESS
{
DWORD
dwComPort
;
/
/ COM port to use (1-4)
DWORD
dwBaudRate
;
/
/ baud rate (100-256k)
DWORD
dwStopBits
;
/
/ no. stop bits (1-2)
DWORD
dwParity
;
/
/ parity (none, odd, even, mark)
DWORD
dwFlowControl
;
/
/ flow control (none, xon/xoff, rts, dtr)
DWORD
dwComPort
;
/
* COM port to use (1-4) */
DWORD
dwBaudRate
;
/
* baud rate (100-256k) */
DWORD
dwStopBits
;
/
* no. stop bits (1-2) */
DWORD
dwParity
;
/
* parity (none, odd, even, mark) */
DWORD
dwFlowControl
;
/
* flow control (none, xon/xoff, rts, dtr) */
}
DPCOMPORTADDRESS
,
*
LPDPCOMPORTADDRESS
;
...
...
include/wine/windef16.h
View file @
0ee98cc3
...
...
@@ -24,7 +24,7 @@ typedef UINT16 *LPUINT16;
typedef HANDLE16 a##16; \
typedef a##16 *P##a##16; \
typedef a##16 *NP##a##16; \
typedef a##16 *LP##a##16
;
typedef a##16 *LP##a##16
DECLARE_HANDLE16
(
HACMDRIVERID
);
DECLARE_HANDLE16
(
HACMDRIVER
);
...
...
include/wingdi.h
View file @
0ee98cc3
...
...
@@ -3038,9 +3038,9 @@ typedef struct {
WCHAR
DeviceString
[
128
];
DWORD
StateFlags
;
}
DISPLAY_DEVICEW
,
*
PDISPLAY_DEVICEW
,
*
LPDISPLAY_DEVICEW
;
DECL_WINELIB_TYPE_AW
(
DISPLAY_DEVICE
)
;
DECL_WINELIB_TYPE_AW
(
PDISPLAY_DEVICE
)
;
DECL_WINELIB_TYPE_AW
(
LPDISPLAY_DEVICE
)
;
DECL_WINELIB_TYPE_AW
(
DISPLAY_DEVICE
)
DECL_WINELIB_TYPE_AW
(
PDISPLAY_DEVICE
)
DECL_WINELIB_TYPE_AW
(
LPDISPLAY_DEVICE
)
/* DISPLAY_DEVICE.StateFlags (?)*/
#define DISPLAY_DEVICE_ATTACHED_TO_DESKTOP 0x00000001
...
...
loader/ne/resource.c
View file @
0ee98cc3
...
...
@@ -203,7 +203,7 @@ HGLOBAL16 WINAPI NE_DefResourceHandler( HGLOBAL16 hMemObj, HMODULE16 hModule,
{
/* NOTE: hRsrcMap points to start of built-in resource data */
memcpy
(
GlobalLock16
(
handle
),
pModule
->
hRsrcMap
+
(
pNameInfo
->
offset
<<
sizeShift
),
(
char
*
)
pModule
->
hRsrcMap
+
(
pNameInfo
->
offset
<<
sizeShift
),
pNameInfo
->
length
<<
sizeShift
);
}
return
handle
;
...
...
misc/registry.c
View file @
0ee98cc3
...
...
@@ -1290,7 +1290,7 @@ static int NativeRegLoadKey( HKEY hkey, char* fn, int level )
regf
=
base
;
/* hbin block */
hbin
=
base
+
0x1000
;
hbin
=
(
char
*
)
base
+
0x1000
;
if
(
hbin
->
id
!=
NT_REG_POOL_BLOCK_ID
)
{
ERR_
(
reg
)(
"%s hbin block invalid
\n
"
,
fn
);
...
...
@@ -1313,7 +1313,7 @@ static int NativeRegLoadKey( HKEY hkey, char* fn, int level )
goto
error1
;
}
ret
=
_nt_parse_nk
(
hkey
,
base
+
0x1000
,
nk
,
level
);
ret
=
_nt_parse_nk
(
hkey
,
(
char
*
)
base
+
0x1000
,
nk
,
level
);
}
break
;
default:
...
...
objects/dib.c
View file @
0ee98cc3
...
...
@@ -541,7 +541,7 @@ INT WINAPI GetDIBits(
/*FIXME: Only RGB dibs supported for now */
int
srcwidth
=
bmp
->
dib
->
dsBm
.
bmWidth
,
srcwidthb
=
bmp
->
dib
->
dsBm
.
bmWidthBytes
;
int
dstwidthb
=
DIB_GetDIBWidthBytes
(
info
->
bmiHeader
.
biWidth
,
info
->
bmiHeader
.
biBitCount
);
LPBYTE
dbits
=
bits
,
sbits
=
bmp
->
dib
->
dsBm
.
bmBits
+
(
startscan
*
srcwidthb
);
LPBYTE
dbits
=
bits
,
sbits
=
(
LPBYTE
)
bmp
->
dib
->
dsBm
.
bmBits
+
(
startscan
*
srcwidthb
);
int
x
,
y
;
if
((
info
->
bmiHeader
.
biHeight
<
0
)
^
(
bmp
->
dib
->
dsBmih
.
biHeight
<
0
))
...
...
ole/ole2nls.c
View file @
0ee98cc3
...
...
@@ -3407,7 +3407,7 @@ INT WINAPI GetNumberFormatA(LCID locale, DWORD dwflags,
}
for
(
i
=
1
;
*
sptr
==
'0'
;
i
++
,
sptr
++
)
;
/* Ignore leading zeros from source*/
if
(
intsize
==
0
&&
(
decsize
==
0
||
thisleadingzero
))
/
/ Insert one leading zero into destination if required
if
(
intsize
==
0
&&
(
decsize
==
0
||
thisleadingzero
))
/
* Insert one leading zero into destination if required */
*
(
dptr
++
)
=
digits_buf
[
0
];
for
(
i
=
1
;
i
<=
intsize
;
i
++
)
{
...
...
programs/clock/winclock.c
View file @
0ee98cc3
...
...
@@ -24,6 +24,7 @@
*/
#include <math.h>
#include <stdlib.h>
#include <string.h>
#include "winclock.h"
#include "windows.h"
...
...
scheduler/process.c
View file @
0ee98cc3
...
...
@@ -1171,7 +1171,7 @@ BOOL WINAPI WriteProcessMemory( HANDLE process, LPVOID addr, LPVOID buffer, DWOR
req
->
addr
=
(
char
*
)
addr
+
pos
;
req
->
len
=
(
max
+
sizeof
(
int
)
-
1
)
/
sizeof
(
int
);
req
->
first_mask
=
~
0
;
memcpy
(
req
->
data
,
buffer
+
pos
,
max
);
memcpy
(
req
->
data
,
(
char
*
)
buffer
+
pos
,
max
);
if
(
server_call
(
REQ_WRITE_PROCESS_MEMORY
))
goto
error
;
pos
+=
max
;
size
-=
max
;
...
...
tools/bin2res.c
View file @
0ee98cc3
...
...
@@ -264,7 +264,7 @@ int convert_to_bin()
{
printf
(
"[%s:s]"
,
outfile
);
}
end_of_resource:
end_of_resource:
;
}
}
...
...
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