| commit | b65d13605c44acea95b5e6fd222c9a7aecaccc00 | [log] [tgz] |
|---|---|---|
| author | Alexandre Julliard <julliard@winehq.org> | Wed Feb 25 01:35:01 2004 +0000 |
| committer | Alexandre Julliard <julliard@winehq.org> | Wed Feb 25 01:35:01 2004 +0000 |
| tree | d23fff75fbed31b34467b57484124896d7b3eccb | |
| parent | f39be9ff4899bd3c077ea1034ebc131a23566508 [diff] [blame] |
Fixed callers of GetLocaleInfoW to use the correct buffer size.
diff --git a/dlls/wineps/init.c b/dlls/wineps/init.c index 9eea5e6..a2f917a 100644 --- a/dlls/wineps/init.c +++ b/dlls/wineps/init.c
@@ -652,7 +652,7 @@ DWORD papersize; if(GetLocaleInfoW(LOCALE_USER_DEFAULT, LOCALE_IPAPERSIZE | LOCALE_RETURN_NUMBER, - (LPWSTR)&papersize, sizeof(papersize))) { + (LPWSTR)&papersize, sizeof(papersize)/sizeof(WCHAR))) { PSDRV_DEVMODEA dm; memset(&dm, 0, sizeof(dm)); dm.dmPublic.dmFields = DM_PAPERSIZE;