Skip to content
Snippets Groups Projects
Commit 007997c4 authored by Alexandre Julliard's avatar Alexandre Julliard
Browse files

sti: Build with msvcrt.

parent bb12daf2
No related branches found
No related tags found
No related merge requests found
......@@ -2,6 +2,8 @@ MODULE = sti.dll
IMPORTLIB = sti
IMPORTS = uuid ole32 oleaut32 rpcrt4 advapi32
EXTRADLLFLAGS = -mno-cygwin
C_SRCS = \
sti.c \
sti_main.c
......
......@@ -29,7 +29,6 @@
#include "sti.h"
#include "wine/debug.h"
#include "wine/unicode.h"
WINE_DEFAULT_DEBUG_CHANNEL(sti);
......@@ -149,11 +148,11 @@ static HRESULT WINAPI stillimagew_RegisterLaunchApplication(IStillImageW *iface,
ret = RegCreateKeyW(HKEY_LOCAL_MACHINE, registeredAppsLaunchPath, &registeredAppsKey);
if (ret == ERROR_SUCCESS)
{
WCHAR *value = HeapAlloc(GetProcessHeap(), 0,
(lstrlenW(pwszCommandLine) + 1 + lstrlenW(commandLineSuffix) + 1) * sizeof(WCHAR));
size_t len = lstrlenW(pwszCommandLine) + 1 + lstrlenW(commandLineSuffix) + 1;
WCHAR *value = HeapAlloc(GetProcessHeap(), 0, len * sizeof(WCHAR));
if (value)
{
sprintfW(value, format, pwszCommandLine, commandLineSuffix);
swprintf(value, len, format, pwszCommandLine, commandLineSuffix);
ret = RegSetValueExW(registeredAppsKey, pwszAppName, 0,
REG_SZ, (BYTE*)value, (lstrlenW(value)+1)*sizeof(WCHAR));
if (ret != ERROR_SUCCESS)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment