Module: wine Branch: master Commit: a07e3341252580ca1e5c288755945834479024df URL: https://source.winehq.org/git/wine.git/?a=commit;h=a07e3341252580ca1e5c28875...
Author: Alex Henrie alexhenrie24@gmail.com Date: Fri Nov 30 00:14:09 2018 -0700
mscms: Turn variables 'slash' and 'spec' into static constants.
Signed-off-by: Alex Henrie alexhenrie24@gmail.com Signed-off-by: Alexandre Julliard julliard@winehq.org
---
dlls/mscms/profile.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/dlls/mscms/profile.c b/dlls/mscms/profile.c index 039a271..a0b9d41 100644 --- a/dlls/mscms/profile.c +++ b/dlls/mscms/profile.c @@ -668,9 +668,10 @@ BOOL WINAPI GetStandardColorSpaceProfileW( PCWSTR machine, DWORD id, PWSTR profi
static BOOL header_from_file( LPCWSTR file, PPROFILEHEADER header ) { + static const WCHAR slash[] = {'\',0}; BOOL ret; PROFILE profile; - WCHAR path[MAX_PATH], slash[] = {'\',0}; + WCHAR path[MAX_PATH]; DWORD size = sizeof(path); HANDLE handle;
@@ -953,8 +954,8 @@ exit: BOOL WINAPI EnumColorProfilesW( PCWSTR machine, PENUMTYPEW record, PBYTE buffer, PDWORD size, PDWORD number ) { + static const WCHAR spec[] = {'\','*','i','c','m',0}; BOOL match, ret = FALSE; - WCHAR spec[] = {'\','*','i','c','m',0}; WCHAR colordir[MAX_PATH], glob[MAX_PATH], **profiles = NULL; DWORD i, len = sizeof(colordir), count = 0, totalsize = 0; PROFILEHEADER header;