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
722ee099
Commit
722ee099
authored
Aug 16, 2006
by
Frank Richter
Committed by
Alexandre Julliard
Aug 16, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winecfg: Make load_string public.
parent
acdae153
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
15 deletions
+18
-15
main.c
programs/winecfg/main.c
+0
-15
winecfg.c
programs/winecfg/winecfg.c
+15
-0
winecfg.h
programs/winecfg/winecfg.h
+3
-0
No files found.
programs/winecfg/main.c
View file @
722ee099
...
...
@@ -78,21 +78,6 @@ AboutDlgProc (HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
return
FALSE
;
}
static
WCHAR
*
load_string
(
UINT
id
)
{
WCHAR
buf
[
100
];
int
len
;
WCHAR
*
newStr
;
LoadStringW
(
GetModuleHandle
(
NULL
),
id
,
buf
,
sizeof
(
buf
)
/
sizeof
(
buf
[
0
]));
len
=
lstrlenW
(
buf
);
newStr
=
HeapAlloc
(
GetProcessHeap
(),
0
,
(
len
+
1
)
*
sizeof
(
WCHAR
));
memcpy
(
newStr
,
buf
,
len
*
sizeof
(
WCHAR
));
newStr
[
len
]
=
0
;
return
newStr
;
}
#define NUM_PROPERTY_PAGES 7
static
INT_PTR
...
...
programs/winecfg/winecfg.c
View file @
722ee099
...
...
@@ -72,6 +72,21 @@ void set_window_title(HWND dialog)
}
WCHAR
*
load_string
(
UINT
id
)
{
WCHAR
buf
[
100
];
int
len
;
WCHAR
*
newStr
;
LoadStringW
(
GetModuleHandle
(
NULL
),
id
,
buf
,
sizeof
(
buf
)
/
sizeof
(
buf
[
0
]));
len
=
lstrlenW
(
buf
);
newStr
=
HeapAlloc
(
GetProcessHeap
(),
0
,
(
len
+
1
)
*
sizeof
(
WCHAR
));
memcpy
(
newStr
,
buf
,
len
*
sizeof
(
WCHAR
));
newStr
[
len
]
=
0
;
return
newStr
;
}
/**
* get_config_key: Retrieves a configuration value from the registry
*
...
...
programs/winecfg/winecfg.h
View file @
722ee099
...
...
@@ -58,6 +58,9 @@ BOOL reg_key_exists(HKEY root, const char *path, const char *name);
void
apply
(
void
);
char
**
enumerate_values
(
HKEY
root
,
char
*
path
);
/* Load a string from the resources. Allocated with HeapAlloc (GetProcessHeap()) */
WCHAR
*
load_string
(
UINT
id
);
/* returns a string of the form "AppDefaults\\appname.exe\\section", or just "section" if
the user is editing the global settings.
...
...
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