Changeset 21755
- Timestamp:
- Oct 28, 2011, 2:04:25 AM (14 years ago)
- Location:
- branches/gcc-kmk
- Files:
-
- 33 edited
-
include/_ras.h (modified) (2 diffs)
-
include/custombuild.h (modified) (3 diffs)
-
include/exceptions.h (modified) (6 diffs)
-
include/memmap.h (modified) (2 diffs)
-
include/odinbuild.h (modified) (2 diffs)
-
include/odincrt.h (modified) (2 diffs)
-
include/win/shellapi.h (modified) (3 diffs)
-
include/win/winnls.h (modified) (2 diffs)
-
include/win/winprocess.h (modified) (2 diffs)
-
include/win/winreg.h (modified) (2 diffs)
-
include/wprocess.h (modified) (2 diffs)
-
src/kernel32/_ras.cpp (modified) (2 diffs)
-
src/kernel32/async.cpp (modified) (2 diffs)
-
src/kernel32/atom.cpp (modified) (2 diffs)
-
src/kernel32/console.cpp (modified) (2 diffs)
-
src/kernel32/critsection.cpp (modified) (4 diffs)
-
src/kernel32/dbgwrap.cpp (modified) (2 diffs)
-
src/kernel32/exceptions.cpp (modified) (5 diffs)
-
src/kernel32/exceptutil.asm (modified) (2 diffs)
-
src/kernel32/exceptutil.h (modified) (1 diff)
-
src/kernel32/heap.cpp (modified) (2 diffs)
-
src/kernel32/network.cpp (modified) (2 diffs)
-
src/kernel32/ordinals.cpp (modified) (2 diffs)
-
src/kernel32/oslibwps.cpp (modified) (8 diffs)
-
src/kernel32/process.cpp (modified) (2 diffs)
-
src/kernel32/profile.cpp (modified) (4 diffs)
-
src/kernel32/registry.cpp (modified) (19 diffs)
-
src/kernel32/stubs.cpp (modified) (2 diffs)
-
src/kernel32/thunk.cpp (modified) (2 diffs)
-
src/kernel32/time.cpp (modified) (2 diffs)
-
src/kernel32/windllpe2lx.cpp (modified) (2 diffs)
-
src/kernel32/winexepe2lx.cpp (modified) (2 diffs)
-
src/kernel32/wprocess.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/gcc-kmk/include/_ras.h
r21739 r21755 14 14 15 15 #ifdef RAS 16 17 #ifdef __cplusplus 18 extern "C" { 19 #endif 16 20 17 21 /* The RAS subsystem initialization/deinitialization */ … … 241 245 ); 242 246 247 #ifdef __cplusplus 248 } // extern "C" 249 #endif 243 250 244 251 /* RAS entries that are passed to plugin to use -
branches/gcc-kmk/include/custombuild.h
r21733 r21755 142 142 143 143 } CUSTOMBUILD_COMMON; 144 145 #ifdef __cplusplus 146 extern "C" { 147 #endif 144 148 145 149 BOOL WIN32API LoadCustomEnvironment(CUSTOMBUILD_COMMON *CustomBuild); … … 512 516 513 517 //PE headers of system dlls 514 #ifdef __cplusplus515 extern "C" {516 #endif517 518 extern IMAGE_FILE_HEADER nt_ntdll_header; 518 519 extern IMAGE_FILE_HEADER nt_gdi32_header; … … 555 556 extern IMAGE_FILE_HEADER nt_winscard_header; 556 557 extern IMAGE_FILE_HEADER nt_shdocvw_header; 558 557 559 #ifdef __cplusplus 558 } 560 } // extern "C" 559 561 #endif 560 562 -
branches/gcc-kmk/include/exceptions.h
r3124 r21755 18 18 * Exception codes 19 19 */ 20 20 21 21 #define STATUS_SUCCESS 0x00000000 22 22 #define STATUS_WAIT_0 0x00000000 … … 25 25 #define STATUS_TIMEOUT 0x00000102 26 26 #define STATUS_PENDING 0x00000103 27 #define STATUS_GUARD_PAGE_VIOLATION 0x80000001 27 #define STATUS_GUARD_PAGE_VIOLATION 0x80000001 28 28 #define STATUS_DATATYPE_MISALIGNMENT 0x80000002 29 29 #define STATUS_BREAKPOINT 0x80000003 … … 89 89 #define WINCONTEXT_i386 0x00010000 90 90 #define WINCONTEXT_i486 WINCONTEXT_i386 91 #define WINCONTEXT_CONTROL (WINCONTEXT_i386 | 0x0001) 92 #define WINCONTEXT_INTEGER (WINCONTEXT_i386 | 0x0002) 93 #define WINCONTEXT_SEGMENTS (WINCONTEXT_i386 | 0x0004) 94 #define WINCONTEXT_FLOATING_POINT (WINCONTEXT_i386 | 0x0008L) 95 #define WINCONTEXT_DEBUG_REGISTERS (WINCONTEXT_i386 | 0x0010L) 91 #define WINCONTEXT_CONTROL (WINCONTEXT_i386 | 0x0001) 92 #define WINCONTEXT_INTEGER (WINCONTEXT_i386 | 0x0002) 93 #define WINCONTEXT_SEGMENTS (WINCONTEXT_i386 | 0x0004) 94 #define WINCONTEXT_FLOATING_POINT (WINCONTEXT_i386 | 0x0008L) 95 #define WINCONTEXT_DEBUG_REGISTERS (WINCONTEXT_i386 | 0x0010L) 96 96 #define WINCONTEXT_FULL (WINCONTEXT_CONTROL | WINCONTEXT_INTEGER | WINCONTEXT_SEGMENTS) 97 97 … … 145 145 146 146 147 #define WINEXCEPTION_NONCONTINUABLE 0x1 148 #define WINEXCEPTION_MAXIMUM_PARAMETERS 15 147 #define WINEXCEPTION_NONCONTINUABLE 0x1 148 #define WINEXCEPTION_MAXIMUM_PARAMETERS 15 149 149 150 150 typedef struct _WINEXCEPTION_RECORD { … … 197 197 * Return values from filters in except() and from UnhandledExceptionFilter 198 198 */ 199 199 200 200 #define WINEXCEPTION_EXECUTE_HANDLER 1 201 201 #define WINEXCEPTION_CONTINUE_SEARCH 0 … … 206 206 #pragma pack() 207 207 208 #ifdef __cplusplus 209 extern "C" { 210 #endif 211 208 212 DWORD RtlDispatchException(WINEXCEPTION_RECORD *pRecord, WINCONTEXT *pContext); 209 213 214 #ifdef __cplusplus 215 } // extern "C" 210 216 #endif 217 218 #endif -
branches/gcc-kmk/include/memmap.h
r10376 r21755 1 1 #ifndef __MEMMAP_H 2 2 #define __MEMMAP_H 3 4 #ifdef __cplusplus 5 extern "C" { 6 #endif 3 7 4 8 #ifndef _DEF_PFNEXCEPTIONNOTIFY … … 10 14 BOOL WIN32API MMAP_UnregisterMemoryRange(LPVOID lpViewAddr); 11 15 16 #ifdef __cplusplus 17 } // extern "C" 18 #endif 19 12 20 #endif /*__MEMMAP_H */ 13 21 -
branches/gcc-kmk/include/odinbuild.h
r21685 r21755 12 12 #define _ODINBUILD_H_ 13 13 14 #ifdef __cplusplus 15 extern "C" { 16 #endif 17 14 18 /* 15 19 * API for querying the build number of Odin32. Well.. Kernel32 really... … … 17 21 #ifdef WIN32API 18 22 int WIN32API Odin32GetBuildNumber(void); 23 #endif 24 25 #ifdef __cplusplus 26 } // extern "C" 19 27 #endif 20 28 -
branches/gcc-kmk/include/odincrt.h
r21732 r21755 21 21 #endif 22 22 23 #ifdef __cplusplus 24 extern "C" { 25 #endif 26 23 27 ULONG WIN32API DosValidateCriticalSection (CRITICAL_SECTION_OS2 *crit); 24 28 ULONG WIN32API DosDeleteCriticalSection(CRITICAL_SECTION_OS2 *); … … 38 42 #endif 39 43 44 #ifdef __cplusplus 45 } // extern "C" 46 #endif 47 40 48 #endif //__ODINCRT_H__ -
branches/gcc-kmk/include/win/shellapi.h
r21510 r21755 3 3 4 4 #include "windef.h" 5 6 #ifdef __cplusplus 7 extern "C" { 8 #endif 5 9 6 10 #pragma pack(1) … … 166 170 typedef WORD PRINTEROP_FLAGS; 167 171 168 typedef struct _SHNAMEMAPPINGW { 169 LPWSTR pszOldPath; 170 LPWSTR pszNewPath; 171 int cchOldPath; 172 int cchNewPath; 173 } SHNAMEMAPPINGW, *LPSHNAMEMAPPINGW; 172 typedef struct _SHNAMEMAPPINGW { 173 LPWSTR pszOldPath; 174 LPWSTR pszNewPath; 175 int cchOldPath; 176 int cchNewPath; 177 } SHNAMEMAPPINGW, *LPSHNAMEMAPPINGW; 174 178 175 179 typedef struct _SHFILEOPSTRUCTA … … 292 296 #pragma pack(4) 293 297 298 #ifdef __cplusplus 299 } // extern "C" 300 #endif 301 294 302 #endif /* _WINE_SHELLAPI_H */ -
branches/gcc-kmk/include/win/winnls.h
r21360 r21755 560 560 */ 561 561 562 #ifdef __cplusplus 563 extern "C" { 564 #endif 565 562 566 UINT WINAPI CompareStringA(LCID,DWORD,LPCSTR,DWORD,LPCSTR,DWORD); 563 567 UINT WINAPI CompareStringW(LCID,DWORD,LPCWSTR,DWORD,LPCWSTR,DWORD); … … 633 637 INT WINAPI WideCharToMultiByte(UINT,DWORD,LPCWSTR,INT,LPSTR,INT,LPCSTR,LPBOOL); 634 638 639 #ifdef __cplusplus 640 } // extern "C" 641 #endif 642 635 643 #endif //#ifndef OS2_INCLUDED 636 644 -
branches/gcc-kmk/include/win/winprocess.h
r8771 r21755 186 186 #define GPD_USERDATA ( 0) 187 187 188 #ifdef __cplusplus 189 extern "C" { 190 #endif 191 188 192 extern DWORD WINAPI GetProcessDword( DWORD dwProcessID, INT offset ); 189 193 void WINAPI SetProcessDword( DWORD dwProcessID, INT offset, DWORD value ); … … 214 218 extern DWORD DEBUG_SendUnloadDLLEvent( HMODULE module ); 215 219 220 #ifdef __cplusplus 221 } // extern "C" 222 #endif 223 216 224 #include <wprocess.h> 217 225 -
branches/gcc-kmk/include/win/winreg.h
r21327 r21755 124 124 DWORD ve_type; 125 125 } VALENTW, *PVALENTW; 126 127 #ifdef __cplusplus 128 extern "C" { 129 #endif 126 130 127 131 BOOL WINAPI LookupPrivilegeValueA(LPCSTR,LPCSTR,LPVOID); … … 227 231 #define RegQueryMultipleValues WINELIB_NAME_AW(RegQueryMultipleValues) 228 232 233 #ifdef __cplusplus 234 } // extern "C" 235 #endif 236 229 237 #endif /* __WINE_WINREG_H */ -
branches/gcc-kmk/include/wprocess.h
r21381 r21755 29 29 #define ODIN_GetCurrentThreadId() MAKE_THREADID(fibGetPid(), fibGetTid()) 30 30 #define ODIN_GetCurrentProcessId() fibGetPid() 31 32 #ifdef __cplusplus 33 extern "C" { 34 #endif 31 35 32 36 TEB *WIN32API CreateTEB(HANDLE hThread, DWORD dwThreadId); … … 84 88 UINT WIN32API GetProcModuleFileNameA(ULONG lpvAddress, LPSTR lpszFileName, UINT cchFileNameMax); 85 89 90 #ifdef __cplusplus 91 } // extern "C" 86 92 #endif 93 94 #endif -
branches/gcc-kmk/src/kernel32/_ras.cpp
r21739 r21755 167 167 } RASCONTEXT_I; 168 168 169 extern "C" { 170 169 171 void rasSaveContext(RASCONTEXT_I *pcontext) 170 172 { … … 2195 2197 } 2196 2198 2199 } // extern "C" 2200 -
branches/gcc-kmk/src/kernel32/async.cpp
r7549 r21755 74 74 static GLOBALS Globals; 75 75 76 extern "C" { 76 77 77 78 /***************************************************************************** … … 108 109 } 109 110 111 } // extern "C" 112 -
branches/gcc-kmk/src/kernel32/atom.cpp
r21737 r21755 34 34 #define LOOKUP_NOCASE 0x80000000 35 35 36 extern "C" { 37 36 38 ATOM APIENTRY LookupAtom(HATOMTBL hAtomTbl, PSZ psz, ULONG actionMask); 37 39 … … 359 361 //****************************************************************************** 360 362 //****************************************************************************** 363 364 } // extern "C" -
branches/gcc-kmk/src/kernel32/console.cpp
r21426 r21755 2308 2308 } 2309 2309 2310 extern "C" { 2310 2311 2311 2312 /***************************************************************************** … … 3772 3773 return fResult; 3773 3774 } 3775 3776 } // extern "C" -
branches/gcc-kmk/src/kernel32/critsection.cpp
r21302 r21755 2 2 /* 3 3 * Win32 critical sections 4 * 4 * 5 5 * 6 6 * … … 238 238 return ret; 239 239 } 240 241 extern "C" { 240 242 241 243 /*********************************************************************** … … 416 418 } 417 419 #endif 418 420 419 421 if (--crit->RecursionCount) 420 422 { … … 470 472 } 471 473 474 } // extern "C" 475 -
branches/gcc-kmk/src/kernel32/dbgwrap.cpp
r21567 r21755 18 18 #include <dbgwrap.h> 19 19 20 extern "C" { 20 21 21 22 BOOL WINAPI TryEnterCriticalSection( CRITICAL_SECTION *crit ); … … 950 951 DEBUGWRAP_LVL2_12(OemToCharBuffW) 951 952 DEBUGWRAP_LVL2_8(OemToCharW) 953 954 } // extern "C" -
branches/gcc-kmk/src/kernel32/exceptions.cpp
r21717 r21755 109 109 static PEXCEPTION_HANDLER StartupCodeHandler = NULL; 110 110 111 extern "C" PWINEXCEPTION_FRAME GetExceptionRecord(ULONG offset, ULONG segment); 111 extern "C" { 112 113 PWINEXCEPTION_FRAME GetExceptionRecord(ULONG offset, ULONG segment); 112 114 113 115 LONG WIN32API UnhandledExceptionFilter(PWINEXCEPTION_POINTERS lpexpExceptionInfo); … … 118 120 PCONTEXTRECORD pCtxRec, PVOID p, PSZ szTrapDump); 119 121 120 extern "C"121 122 int __cdecl __seh_handler(PWINEXCEPTION_RECORD pRec, 122 123 PWINEXCEPTION_FRAME pFrame, 123 124 PCONTEXTRECORD pContext, PVOID pVoid); 124 125 125 extern "C"126 126 PWINEXCEPTION_FRAME __cdecl __seh_get_prev_frame(PWINEXCEPTION_FRAME pFrame); 127 127 … … 1791 1791 * Author : Sander van Leeuwen [Sun, 1999/08/21 12:16] 1792 1792 *****************************************************************************/ 1793 void OS2SetExceptionHandler(void *exceptframe)1793 void SYSTEM OS2SetExceptionHandler(void *exceptframe) 1794 1794 { 1795 1795 PEXCEPTIONREGISTRATIONRECORD pExceptRec = (PEXCEPTIONREGISTRATIONRECORD)exceptframe; … … 1954 1954 * Author : Sander van Leeuwen [Sun, 1999/08/21 12:16] 1955 1955 *****************************************************************************/ 1956 void OS2UnsetExceptionHandler(void *exceptframe)1956 void SYSTEM OS2UnsetExceptionHandler(void *exceptframe) 1957 1957 { 1958 1958 PEXCEPTIONREGISTRATIONRECORD pExceptRec = (PEXCEPTIONREGISTRATIONRECORD)exceptframe; … … 1986 1986 //***************************************************************************** 1987 1987 1988 } // extern "C" 1989 -
branches/gcc-kmk/src/kernel32/exceptutil.asm
r10409 r21755 71 71 72 72 public _RtlUnwind@16 73 extrn OS2R TLUNWIND: near73 extrn OS2RtlUnwind : near 74 74 75 75 _RtlUnwind@16 proc near … … 102 102 mov eax, ss 103 103 push eax 104 call OS2R TLUNWIND104 call OS2RtlUnwind 105 105 106 106 ret 16 ;__stdcall -
branches/gcc-kmk/src/kernel32/exceptutil.h
r21619 r21755 20 20 void __cdecl SetExceptionChain(DWORD); 21 21 22 extern "C"PVOID QueryExceptionChain();22 PVOID QueryExceptionChain(); 23 23 24 void OS2SetExceptionHandler(void *exceptframe);25 void OS2UnsetExceptionHandler(void *exceptframe);24 void SYSTEM OS2SetExceptionHandler(void *exceptframe); 25 void SYSTEM OS2UnsetExceptionHandler(void *exceptframe); 26 26 27 27 #ifdef DEBUG -
branches/gcc-kmk/src/kernel32/heap.cpp
r21435 r21755 998 998 } 999 999 1000 extern "C" { 1001 1000 1002 /************************************************************************* 1001 1003 * EncodePointer … … 1013 1015 } 1014 1016 1017 } // extern "C" 1018 -
branches/gcc-kmk/src/kernel32/network.cpp
r7603 r21755 19 19 #define DBG_LOCALLOG DBG_network 20 20 #include "dbglocal.h" 21 22 extern "C" { 21 23 22 24 //****************************************************************************** … … 67 69 //****************************************************************************** 68 70 //****************************************************************************** 71 72 } // extern "C" -
branches/gcc-kmk/src/kernel32/ordinals.cpp
r21737 r21755 32 32 *****************************************************************************/ 33 33 34 35 36 34 /***************************************************************************** 37 35 * Prototypes * 38 36 *****************************************************************************/ 37 38 extern "C" { 39 39 40 40 /***************************************************************************** … … 142 142 arg3)); 143 143 } 144 145 } // extern "C" -
branches/gcc-kmk/src/kernel32/oslibwps.cpp
r9889 r21755 37 37 *pszFilename1 = 0; 38 38 } 39 40 extern "C" { 41 39 42 //****************************************************************************** 40 43 // ODIN_DisableFolderShellLink 41 44 // 42 // Disable object creation in Odin folder. Desktop shortcuts will still be 45 // Disable object creation in Odin folder. Desktop shortcuts will still be 43 46 // created as WPS objects on the desktop. 44 47 // … … 84 87 } 85 88 } 86 else { 89 else { 87 90 dprintf(("OSLibWinCreateObject: pszLink == NULL!!")); 88 91 goto fail; … … 115 118 116 119 fWin32App = ODIN_IsWin32App(pszPath); 117 if(!fWin32App) 120 if(!fWin32App) 118 121 {//don't use the PE loader; use the program path directly 119 122 sprintf(pszSetupString, "PROGTYPE=PM;OBJECTID=<%s%s>;EXENAME=%s;SET BEGINLIBPATH=%s;STARTUPDIR=%s;ICONFILE=%s;PARAMETERS=", (fDesktop) ? WPS_SHELLLINK_DESKTOP : "", pszName, pszPath, szSystemDir, szWorkDir, pszIcoPath); … … 182 185 strcpy(szLinkFile, lpszLink); 183 186 strupr(szLinkFile); 184 if(strstr(szLinkFile, ".LNK")) 187 if(strstr(szLinkFile, ".LNK")) 185 188 {//could be a shelllink file, check for magic string at start of the file 186 189 FILE *lnkfile; … … 190 193 191 194 char szMagic[sizeof(WPS_SHELLLINK_MAGIC)]; 192 195 193 196 memset(szMagic, 0, sizeof(szMagic)); 194 197 fread(szMagic, sizeof(szMagic)-1, 1, lnkfile); … … 203 206 //****************************************************************************** 204 207 // OSLibWinDeleteObject 205 // 208 // 206 209 // Delete object with object id stored in the file 207 210 // 208 211 // Parameters: 209 // 212 // 210 213 // LPSTR lpszLink - shelllink file 211 214 // … … 226 229 227 230 char szMagic[sizeof(WPS_SHELLLINK_MAGIC)]; 228 231 229 232 memset(szMagic, 0, sizeof(szMagic)); 230 233 fread(szMagic, sizeof(szMagic)-1, 1, lnkfile); 231 234 232 if(!strcmp(szMagic, WPS_SHELLLINK_MAGIC)) 235 if(!strcmp(szMagic, WPS_SHELLLINK_MAGIC)) 233 236 { 234 237 fseek(lnkfile, 0, SEEK_END); 235 238 wpsobjectidsize = ftell(lnkfile) - sizeof(WPS_SHELLLINK_MAGIC) + 2; 236 239 fseek(lnkfile, sizeof(WPS_SHELLLINK_MAGIC)-1, SEEK_SET); 237 240 238 241 memset(szObjectId, 0, sizeof(szObjectId)); 239 242 szObjectId[0] = '<'; … … 251 254 //****************************************************************************** 252 255 //****************************************************************************** 256 257 } // extern "C" -
branches/gcc-kmk/src/kernel32/process.cpp
r21720 r21755 40 40 static DWORD ProcessAffinityMask = 1; 41 41 static PDB *PROCESS_First = &ProcessPDB; 42 43 extern "C" { 42 44 43 45 /*********************************************************************** … … 515 517 //****************************************************************************** 516 518 //****************************************************************************** 519 520 } // extern "C" 521 -
branches/gcc-kmk/src/kernel32/profile.cpp
r21355 r21755 772 772 } 773 773 774 extern "C" { 775 774 776 int WIN32API PROFILE_SetOdinIniString(LPCSTR section_name, LPCSTR key_name, 775 777 LPCSTR value) … … 1408 1410 *p='\0'; 1409 1411 ret = PROFILE_SetString( section, buf, p+1 ); 1410 1412 1411 1413 } 1412 1414 HeapFree( GetProcessHeap(), 0, buf ); … … 1637 1639 * CloseProfileUserMapping (KERNEL.138) 1638 1640 */ 1639 BOOL WINAPI CloseProfileUserMapping(void) 1641 BOOL WINAPI CloseProfileUserMapping(void) 1640 1642 { 1641 1643 dprintf(("CloseProfileUserMapping: STUB")); … … 1649 1651 } 1650 1652 1653 } // extern "C" 1654 -
branches/gcc-kmk/src/kernel32/registry.cpp
r21302 r21755 79 79 } 80 80 81 extern "C" { 82 81 83 void WIN32API SetRegistryRootKey(HKEY hRootkey, HKEY hKey) 82 84 { 83 85 switch((DWORD)hRootkey) 84 86 { 85 case HKEY_CLASSES_ROOT: 87 case HKEY_CLASSES_ROOT: 86 88 hKeyClassesRoot = hKey; 87 89 break; … … 112 114 LONG WIN32API RegCloseKey(HKEY hKey) 113 115 { 114 switch(hKey) 116 switch(hKey) 115 117 {//Closing a root key should just return success (matters for custom builds) 116 118 case HKEY_CLASSES_ROOT: … … 166 168 astring, 167 169 phkResult); 168 170 169 171 if (NULL != astring) 170 172 FreeAsciiString(astring); 171 173 172 174 return(rc); 173 175 } … … 247 249 phkResult, 248 250 lpdwDisposition); 249 251 250 252 if (NULL != astring1) 251 253 FreeAsciiString(astring1); 252 254 253 255 if (NULL != astring2) 254 256 FreeAsciiString(astring2); 255 257 256 258 return(rc); 257 259 } … … 278 280 rc = O32_RegDeleteKey(ConvertKey(hKey), 279 281 astring); 280 282 281 283 if (NULL != astring) 282 284 FreeAsciiString(astring); 283 285 284 286 return(rc); 285 287 } … … 343 345 rc = O32_RegDeleteValue(ConvertKey(hKey), 344 346 astring); 345 347 346 348 if (NULL != astring) 347 349 FreeAsciiString(astring); 348 350 349 351 return(rc); 350 352 } … … 385 387 *****************************************************************************/ 386 388 387 LONG WIN32API RegEnumKeyW(HKEY hKey, DWORD iSubKey, LPWSTR lpszName, 389 LONG WIN32API RegEnumKeyW(HKEY hKey, DWORD iSubKey, LPWSTR lpszName, 388 390 DWORD cchName) 389 391 { … … 529 531 * Author : Patrick Haller [Tue, 1998/06/16 23:00] 530 532 *****************************************************************************/ 531 533 532 534 LONG WIN32API RegEnumValueW(HKEY hkey, 533 535 DWORD iValue, … … 638 640 if(rc) 639 641 *arg3 = 0; 640 642 641 643 if (NULL != astring) 642 644 FreeAsciiString(astring); 643 645 644 646 return(rc); 645 647 } … … 705 707 if(rc) 706 708 *arg5 = 0; 707 709 708 710 if (NULL != astring) 709 711 FreeAsciiString(astring); 710 712 711 713 return(rc); 712 714 } … … 741 743 lpcchClass, lpdwReserved, lpcSubKeys, 742 744 lpcchMaxSubKey, lpcchMaxClass, lpcValues, 743 lpcchMaxValueName, lpcbMaxValueData, 745 lpcchMaxValueName, lpcbMaxValueData, 744 746 lpcbSecurityDescriptor,lpftLastWriteTime); 745 747 } … … 776 778 lpcchClass, lpdwReserved, lpcSubKeys, 777 779 lpcchMaxSubKey, lpcchMaxClass, lpcValues, 778 lpcchMaxValueName, lpcbMaxValueData, 780 lpcchMaxValueName, lpcbMaxValueData, 779 781 lpcbSecurityDescriptor,lpftLastWriteTime); 780 782 if(rc == ERROR_SUCCESS) … … 786 788 free(astring); 787 789 } 788 else 790 else 789 791 if(lpszClass) *lpszClass = 0; 790 792 } … … 852 854 } 853 855 854 if((rc == ERROR_SUCCESS || rc == ERROR_MORE_DATA) && 855 pcbValue) 856 if((rc == ERROR_SUCCESS || rc == ERROR_MORE_DATA) && 857 pcbValue) 856 858 { 857 859 *pcbValue = *pcbValue * sizeof(WCHAR); //size in bytes!! 858 860 } 859 861 860 862 if (NULL != astring1) 861 863 FreeAsciiString(astring1); 862 864 863 865 return(rc); 864 866 } … … 986 988 } 987 989 988 if((rc == ERROR_SUCCESS || rc == ERROR_MORE_DATA) && 989 lpcbData) 990 if((rc == ERROR_SUCCESS || rc == ERROR_MORE_DATA) && 991 lpcbData) 990 992 { 991 993 switch(*lpdwType) { … … 1001 1003 if (NULL != astring) 1002 1004 FreeAsciiString(astring); 1003 1005 1004 1006 if(akeydata) 1005 1007 free(akeydata); … … 1073 1075 1074 1076 rc = RegSetValueA(hkey, astring1, dwType, astring2, cbData); 1075 1077 1076 1078 if (NULL != astring1) 1077 1079 FreeAsciiString(astring1); 1078 1080 1079 1081 if (NULL != astring2) 1080 1082 FreeAsciiString(astring2); 1081 1083 1082 1084 return(rc); 1083 1085 } … … 1184 1186 } 1185 1187 rc = RegSetValueExA(hkey, astring, dwReserved, fdwType, lpbData, cbData); 1186 1188 1187 1189 if(akeydata) 1188 1190 FreeAsciiString(akeydata); 1189 1191 1190 1192 if (NULL != astring) 1191 1193 FreeAsciiString(astring); 1192 1194 1193 1195 return(rc); 1194 1196 } … … 1715 1717 } 1716 1718 1719 } // extern "C" 1720 -
branches/gcc-kmk/src/kernel32/stubs.cpp
r21737 r21755 149 149 typedef DWORD CALID; 150 150 151 extern "C" { 151 152 152 153 /***************************************************************************** … … 1579 1580 } 1580 1581 1581 1582 } // extern "C" 1583 -
branches/gcc-kmk/src/kernel32/thunk.cpp
r8449 r21755 23 23 #define DBG_LOCALLOG DBG_thunk 24 24 #include "dbglocal.h" 25 26 extern "C" { 25 27 26 28 /************************************************************************ … … 405 407 void WINAPI SUnMapLS_IP_EBP_40(CONTEXT86 *context) { x_SUnMapLS_IP_EBP_x(context,40); } 406 408 409 } // extern "C" 410 -
branches/gcc-kmk/src/kernel32/time.cpp
r21732 r21755 36 36 #include "dbglocal.h" 37 37 38 extern "C" { 38 39 39 40 //****************************************************************************** … … 370 371 //****************************************************************************** 371 372 372 373 } // extern "C" 374 -
branches/gcc-kmk/src/kernel32/windllpe2lx.cpp
r21716 r21755 43 43 *******************************************************************************/ 44 44 extern BOOL fPeLoader; 45 46 extern "C" { 45 47 46 48 /** … … 134 136 } 135 137 138 } // extern "C" 136 139 137 140 /** -
branches/gcc-kmk/src/kernel32/winexepe2lx.cpp
r10397 r21755 49 49 BOOL Win32Pe2LxExe::fEarlyInit = FALSE; 50 50 51 extern "C" { 51 52 52 53 /** … … 235 236 //****************************************************************************** 236 237 //****************************************************************************** 238 239 } // extern "C" -
branches/gcc-kmk/src/kernel32/wprocess.cpp
r21730 r21755 109 109 PFNLXDLLLOAD pfnLxDllLoadCallback = NULL; 110 110 111 extern "C" { 111 112 112 113 //****************************************************************************** … … 3058 3059 } 3059 3060 3061 } // extern "C" 3062
Note:
See TracChangeset
for help on using the changeset viewer.
