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
a96a700c
Commit
a96a700c
authored
Nov 28, 2004
by
Huw Davies
Committed by
Alexandre Julliard
Nov 28, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Protect sscanfs with a "C" locale so that they still work with new
glibcs in a locale doesn't use a '.' as a decimal separator.
parent
e04da6bb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
ppd.c
dlls/wineps/ppd.c
+5
-0
No files found.
dlls/wineps/ppd.c
View file @
a96a700c
...
@@ -23,6 +23,7 @@
...
@@ -23,6 +23,7 @@
#include <stdarg.h>
#include <stdarg.h>
#include <stdio.h>
#include <stdio.h>
#include <ctype.h>
#include <ctype.h>
#include <locale.h>
#include "windef.h"
#include "windef.h"
#include "winbase.h"
#include "winbase.h"
#include "wine/debug.h"
#include "wine/debug.h"
...
@@ -710,8 +711,10 @@ PPD *PSDRV_ParsePPD(char *fname)
...
@@ -710,8 +711,10 @@ PPD *PSDRV_ParsePPD(char *fname)
#define PIA page->ImageableArea
#define PIA page->ImageableArea
if
(
!
PIA
)
{
if
(
!
PIA
)
{
PIA
=
HeapAlloc
(
PSDRV_Heap
,
0
,
sizeof
(
*
PIA
)
);
PIA
=
HeapAlloc
(
PSDRV_Heap
,
0
,
sizeof
(
*
PIA
)
);
push_lc_numeric
(
"C"
);
sscanf
(
tuple
.
value
,
"%f%f%f%f"
,
&
PIA
->
llx
,
&
PIA
->
lly
,
sscanf
(
tuple
.
value
,
"%f%f%f%f"
,
&
PIA
->
llx
,
&
PIA
->
lly
,
&
PIA
->
urx
,
&
PIA
->
ury
);
&
PIA
->
urx
,
&
PIA
->
ury
);
pop_lc_numeric
();
}
}
#undef PIA
#undef PIA
}
}
...
@@ -733,7 +736,9 @@ PPD *PSDRV_ParsePPD(char *fname)
...
@@ -733,7 +736,9 @@ PPD *PSDRV_ParsePPD(char *fname)
#define PD page->PaperDimension
#define PD page->PaperDimension
if
(
!
PD
)
{
if
(
!
PD
)
{
PD
=
HeapAlloc
(
PSDRV_Heap
,
0
,
sizeof
(
*
PD
)
);
PD
=
HeapAlloc
(
PSDRV_Heap
,
0
,
sizeof
(
*
PD
)
);
push_lc_numeric
(
"C"
);
sscanf
(
tuple
.
value
,
"%f%f"
,
&
PD
->
x
,
&
PD
->
y
);
sscanf
(
tuple
.
value
,
"%f%f"
,
&
PD
->
x
,
&
PD
->
y
);
pop_lc_numeric
();
}
}
#undef PD
#undef PD
}
}
...
...
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