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
fa4d3bec
Commit
fa4d3bec
authored
May 19, 2010
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winecfg: Don't crash when DllOverrides contain invalid values.
parent
00eaa929
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
libraries.c
programs/winecfg/libraries.c
+3
-3
No files found.
programs/winecfg/libraries.c
View file @
fa4d3bec
...
...
@@ -136,7 +136,7 @@ static const char* mode_to_string(enum dllmode mode)
case
NATIVE_BUILTIN
:
return
"native,builtin"
;
case
BUILTIN_NATIVE
:
return
"builtin,native"
;
case
DISABLE
:
return
""
;
default:
assert
(
FALSE
);
return
""
;
default:
return
""
;
}
}
...
...
@@ -153,7 +153,7 @@ static const char* mode_to_label(enum dllmode mode)
case
NATIVE_BUILTIN
:
id
=
IDS_DLL_NATIVE_BUILTIN
;
break
;
case
BUILTIN_NATIVE
:
id
=
IDS_DLL_BUILTIN_NATIVE
;
break
;
case
DISABLE
:
id
=
IDS_DLL_DISABLED
;
break
;
default:
assert
(
FALSE
)
;
default:
return
"??"
;
}
if
(
!
LoadStringA
(
GetModuleHandleA
(
NULL
),
id
,
buffer
,
sizeof
(
buffer
)
))
buffer
[
0
]
=
0
;
return
buffer
;
...
...
@@ -183,7 +183,7 @@ static DWORD mode_to_id(enum dllmode mode)
case
NATIVE_BUILTIN
:
return
IDC_RAD_NATIVE_BUILTIN
;
case
BUILTIN_NATIVE
:
return
IDC_RAD_BUILTIN_NATIVE
;
case
DISABLE
:
return
IDC_RAD_DISABLE
;
default:
assert
(
FALSE
);
return
0
;
/* should not be reached */
default:
return
IDC_RAD_BUILTIN_NATIVE
;
}
}
...
...
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