Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
264360fc
Commit
264360fc
authored
May 08, 1999
by
Marcus Meissner
Committed by
Alexandre Julliard
May 08, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Return the correct value from GetPrivateProfileSectionA.
Copy/convert back the buffer in GetPrivateProfileSectionW. Replace some output pointers str/wstr->ptr in kernel32.spec.
parent
1c971e33
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
5 deletions
+7
-5
profile.c
files/profile.c
+3
-1
kernel32.spec
relay32/kernel32.spec
+4
-4
No files found.
files/profile.c
View file @
264360fc
...
...
@@ -14,6 +14,7 @@
#include "winbase.h"
#include "wine/winbase16.h"
#include "winuser.h"
#include "winnls.h"
#include "file.h"
#include "heap.h"
#include "debug.h"
...
...
@@ -1170,7 +1171,7 @@ INT WINAPI GetPrivateProfileSectionA( LPCSTR section, LPSTR buffer,
LeaveCriticalSection
(
&
PROFILE_CritSect
);
return
0
;
return
ret
;
}
/***********************************************************************
...
...
@@ -1186,6 +1187,7 @@ INT WINAPI GetPrivateProfileSectionW (LPCWSTR section, LPWSTR buffer,
LPSTR
bufferA
=
HeapAlloc
(
GetProcessHeap
(),
0
,
len
);
INT
ret
=
GetPrivateProfileSectionA
(
sectionA
,
bufferA
,
len
,
filenameA
);
MultiByteToWideChar
(
CP_ACP
,
0
,
bufferA
,
ret
,
buffer
,
len
);
HeapFree
(
GetProcessHeap
(),
0
,
sectionA
);
HeapFree
(
GetProcessHeap
(),
0
,
filenameA
);
HeapFree
(
GetProcessHeap
(),
0
,
bufferA
);
...
...
relay32/kernel32.spec
View file @
264360fc
...
...
@@ -379,10 +379,10 @@ init MAIN_KernelInit
361 stdcall GetPriorityClass(long) GetPriorityClass
362 stdcall GetPrivateProfileIntA(str str long str) GetPrivateProfileIntA
363 stdcall GetPrivateProfileIntW(wstr wstr long wstr) GetPrivateProfileIntW
364 stdcall GetPrivateProfileSectionA(str
s
tr long str) GetPrivateProfileSectionA
364 stdcall GetPrivateProfileSectionA(str
p
tr long str) GetPrivateProfileSectionA
365 stdcall GetPrivateProfileSectionNamesA(ptr long str) GetPrivateProfileSectionNamesA
366 stdcall GetPrivateProfileSectionNamesW(ptr long wstr) GetPrivateProfileSectionNamesW
367 stdcall GetPrivateProfileSectionW(wstr
ws
tr long wstr) GetPrivateProfileSectionW
367 stdcall GetPrivateProfileSectionW(wstr
p
tr long wstr) GetPrivateProfileSectionW
368 stdcall GetPrivateProfileStringA(str str str ptr long str) GetPrivateProfileStringA
369 stdcall GetPrivateProfileStringW(wstr wstr wstr ptr long wstr) GetPrivateProfileStringW
370 stdcall GetPrivateProfileStructA (str str ptr long str) GetPrivateProfileStructA
...
...
@@ -399,8 +399,8 @@ init MAIN_KernelInit
381 stub GetProductName
382 stdcall GetProfileIntA(str str long) GetProfileIntA
383 stdcall GetProfileIntW(wstr wstr long) GetProfileIntW
384 stdcall GetProfileSectionA(str
s
tr long) GetProfileSectionA
385 stdcall GetProfileSectionW(wstr
ws
tr long) GetProfileSectionW
384 stdcall GetProfileSectionA(str
p
tr long) GetProfileSectionA
385 stdcall GetProfileSectionW(wstr
p
tr long) GetProfileSectionW
386 stdcall GetProfileStringA(str str str ptr long) GetProfileStringA
387 stdcall GetProfileStringW(wstr wstr wstr ptr long) GetProfileStringW
388 stub GetQueuedCompletionStatus
...
...
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